Skip to content

Latest commit

 

History

History
90 lines (85 loc) · 5.26 KB

accountinginvoiceitemsaddrequest.md

File metadata and controls

90 lines (85 loc) · 5.26 KB

AccountingInvoiceItemsAddRequest

Example Usage

import { AccountingInvoiceItemsAddRequest } from "@apideck/unify/models/operations";
import { RFCDate } from "@apideck/unify/types";

let value: AccountingInvoiceItemsAddRequest = {
  serviceId: "salesforce",
  invoiceItem: {
    name: "Model Y",
    description:
      "Model Y is a fully electric, mid-size SUV, with seating for up to seven, dual motor AWD and unparalleled protection.",
    code: "120-C",
    sold: true,
    purchased: true,
    tracked: true,
    taxable: true,
    inventoryDate: new RFCDate("2020-10-30"),
    type: "inventory",
    salesDetails: {
      unitPrice: 27500.5,
      unitOfMeasure: "pc.",
      taxInclusive: true,
      taxRate: {
        id: "123456",
        rate: 10,
      },
    },
    purchaseDetails: {
      unitPrice: 27500.5,
      unitOfMeasure: "pc.",
      taxInclusive: true,
      taxRate: {
        id: "123456",
        rate: 10,
      },
    },
    quantity: 1,
    unitPrice: 27500.5,
    assetAccount: {
      id: "123456",
      nominalCode: "N091",
      code: "453",
    },
    incomeAccount: {
      id: "123456",
      nominalCode: "N091",
      code: "453",
    },
    expenseAccount: {
      id: "123456",
      nominalCode: "N091",
      code: "453",
    },
    trackingCategories: [
      {
        id: "123456",
        name: "New York",
      },
    ],
    active: true,
    rowVersion: "1-12345",
    passThrough: [
      {
        serviceId: "<id>",
        extendPaths: [
          {
            path: "$.nested.property",
            value: {
              "TaxClassificationRef": {
                "value": "EUC-99990201-V1-00020000",
              },
            },
          },
        ],
      },
    ],
  },
};

Fields

Field Type Required Description Example
raw boolean Include raw response. Mostly used for debugging purposes
serviceId string Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. salesforce
invoiceItem components.InvoiceItemInput ✔️ N/A