Sales Order

{
  id: "00000000-0000-0000-0000-00000000",
  remoteId: "315",
  salesOrderStatus: "Open",
  issueDate: "2022-08-17",
  salesOrderNumber: "1034",
  deliveryDate: null,
  deliveryAddress: {},
  paidOnDate: null,
  customerId: "912e0747-be0c-4e1a-9096-09f9fcce438a",
  accountId: "7f0208d7-12d6-4c97-b49f-7c4f41d82737",
  memo: null,
  companyId: null,
  totalAmount: 1,
  totalTaxAmount: 1,
  currency: "USD",
  exchangeRate: 1,
  lineItems: [
  	{
       id: "08af37c6-a223-45a2-8eae-53289ec97d5a",
       remoteId: 1,
       description: "Line Item - 1",
     	 unitPrice: 0.01,
   		 quantity: 1,
       accountingItemId: "00970a1f-719e-4800-8a53-8627292e5484",
       accountId: null,
       trackingCategoryId: null,
       taxAmount: null,
       totalAmount: 200,
       currency: null,
       trackingCategoryIds: []
  	}
  ],
  trackingCategoryIds: [],
	remoteCreatedAt: "2023-11-19T17:00:17.000Z",
	remoteUpdatedAt: "2023-11-19T17:00:17.000Z",
	remoteDeleted: false,
	createdAt: "2024-02-22T11:17:53.264Z",
	updatedAt: "2024-02-22T13:54:03.445Z"
}

Properties


idString

The Alloy-generated unique ID


remoteIdString

The ID of the object in the third-party application.


salesOrderStatusEnum

The current standing or condition of the sales order. Possible values: OPEN, DRAFT, SUBMITTED, AUTHORIZED, BILLED, CLOSED, DELETED
Quickbooks Online: OPEN, CLOSED


issueDateDate

The date when the purchase order was created and issued to the vendor. Format: YYYY-MM-DD


salesOrderNumberString

A unique number or code assigned to the purchase order for tracking and reference purposes.


deliveryDateDate

The expected or scheduled date when the goods or services will be delivered.


deliveryAddressAccountingAddress

The physical address where the ordered items are to be delivered.


customerIdString

Identifier for the customer or supplier from whom the goods or services are being ordered.


accountIdString

Identifier for the account where the expenses related to the sales order will be recorded.


memoString

Additional notes, comments, or details pertinent to the sales order.


companyIdString

ID of the company the sales order belongs to.


totalAmountNumber

The full sum of the sales order, considering all line items and any other charges.


totalTaxAmountNumber

Overall amount of taxes charged on the sales order.


currencyEnum

The type of currency in which the purchase order's amount is presented. Possible values: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, UYI, UYU, UYW, UZS, VES, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XSU, XTS, XUA, XXX, YER, ZAR, ZMW, ZWL


exchangeRateNumber

The conversion rate applied if the sales order involves transactions in a foreign currency.


lineItemsPurchaseOrderLineItem[]

Detailed list of all goods or services ordered, typically including descriptions, quantities, and prices.


trackingCategoryIdsString[]

An array of tracking category IDs associated with the bill line item.


remoteCreatedAtDateTime

The exact date and time when the record was first added or created in the third-party application.


remoteUpdatedAtDateTime

The latest date and time when any modifications or updates were made to the record’s details in the third-party application.


remoteDeletedBoolean

Flag to indicate that the record has been deleted in the third-party application.


createdAtDateTime

Date and time the record has been synced into the data cache.


updatedAtDateTime

Date and time the record has been updated in the data cache.


Purchase Order Line Item

{
     id: "08af37c6-a223-45a2-8eae-53289ec97d5a",
     remoteId: 1,
     description: "Line Item - 1",
   	 unitPrice: 0.01,
   	 quantity: 1,
     accountingItemId: "00970a1f-719e-4800-8a53-8627292e5484",
     accountId: null,
     trackingCategoryId: null,
     taxAmount: null,
     totalAmount: 200,
     currency: null,
     trackingCategoryIds: []
 }


Properties


remoteIdString

The ID of the object in the third-party application.


trackingCategoryIdsString[]

An array of tracking category IDs associated with the sales order line item.


descriptionString

A concise detail or overview of the specific good or service listed in the line item.


unitPriceNumber

The cost assigned per individual unit of the item or service.


quantityNumber

The number of units of the specific good or service being ordered.


accountingItemIdString

The ID of the item associated with the sales order line item.


accountIdString

The ID of the account associated with the sales order line item.


trackingCategoryIdString

The ID of the tracking category associated with the sales order line item.


taxAmountNumber

The amount of tax applied to this specific line item.


totalLineAmountNumber

The cumulative sum for the line item, typically calculated as unitPrice * quantity plus any tax.


currencyEnum

The type of currency in which the line item's amount is presented. Possible values: AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BOV, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHE, CHF, CHW, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ERN, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MRU, MUR, MVR, MWK, MXN, MXV, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STN, SVC, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, USN, UYI, UYU, UYW, UZS, VES, VND, VUV, WST, XAF, XAG, XAU, XBA, XBB, XBC, XBD, XCD, XDR, XOF, XPD, XPF, XPT, XSU, XTS, XUA, XXX, YER, ZAR, ZMW, ZWL