{
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
id
String
The Alloy-generated unique ID
remoteId
String
The ID of the object in the third-party application.
salesOrderStatus
Enum
The current standing or condition of the sales order. Possible values: OPEN, DRAFT, SUBMITTED, AUTHORIZED, BILLED, CLOSED, DELETED
Quickbooks Online: OPEN, CLOSED
issueDate
Date
The date when the purchase order was created and issued to the vendor. Format: YYYY-MM-DD
salesOrderNumber
String
A unique number or code assigned to the purchase order for tracking and reference purposes.
deliveryDate
Date
The expected or scheduled date when the goods or services will be delivered.
deliveryAddress
AccountingAddress
The physical address where the ordered items are to be delivered.
customerId
String
Identifier for the customer or supplier from whom the goods or services are being ordered.
accountId
String
Identifier for the account where the expenses related to the sales order will be recorded.
memo
String
Additional notes, comments, or details pertinent to the sales order.
companyId
String
ID of the company the sales order belongs to.
totalAmount
Number
The full sum of the sales order, considering all line items and any other charges.
totalTaxAmount
Number
Overall amount of taxes charged on the sales order.
currency
Enum
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
exchangeRate
Number
The conversion rate applied if the sales order involves transactions in a foreign currency.
lineItems
PurchaseOrderLineItem[]
Detailed list of all goods or services ordered, typically including descriptions, quantities, and prices.
trackingCategoryIds
String[]
An array of tracking category IDs associated with the bill line item.
remoteCreatedAt
DateTime
The exact date and time when the record was first added or created in the third-party application.
remoteUpdatedAt
DateTime
The latest date and time when any modifications or updates were made to the record’s details in the third-party application.
remoteDeleted
Boolean
Flag to indicate that the record has been deleted in the third-party application.
createdAt
DateTime
Date and time the record has been synced into the data cache.
updatedAt
DateTime
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
remoteId
String
The ID of the object in the third-party application.
trackingCategoryIds
String[]
An array of tracking category IDs associated with the sales order line item.
description
String
A concise detail or overview of the specific good or service listed in the line item.
unitPrice
Number
The cost assigned per individual unit of the item or service.
quantity
Number
The number of units of the specific good or service being ordered.
accountingItemId
String
The ID of the item associated with the sales order line item.
accountId
String
The ID of the account associated with the sales order line item.
trackingCategoryId
String
The ID of the tracking category associated with the sales order line item.
taxAmount
Number
The amount of tax applied to this specific line item.
totalLineAmount
Number
The cumulative sum for the line item, typically calculated as unitPrice * quantity plus any tax.
currency
Enum
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