{
id: "00000000-0000-0000-0000-000000000000",
remoteId: "315",
purchaseOrderStatus: "Open",
issueDate: "2022-08-17",
purchaseOrderNumber: "1034",
deliveryDate: null,
deliveryAddress: {},
vendorId: "00000000-0000-0000-0000-000000000000",
accountId: "00000000-0000-0000-0000-000000000000",
memo: null,
companyId: null,
totalAmount: 1,
currency: "USD",
exchangeRate: 1,
lineItems: [
{
unitPrice: 1,
accountingItemId: "00000000-0000-0000-0000-00000000",
quantity: 1,
totalLineAmount: 1,
remoteId: "1"
}
],
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.
purchaseOrderStatus
Enum
The current standing or condition of the purchase 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
purchaseOrderNumber
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.
vendorId
String
Identifier for the vendor or supplier from whom the goods or services are being ordered.
accountId
String
Identifier for the account where the expenses related to the purchase order will be recorded.
memo
String
Additional notes, comments, or details pertinent to the purchase order.
companyId
String
ID of the company the purchase order belongs to.
totalAmount
Number
The full sum of the purchase order, considering all line items and any other charges.
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 purchase 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 purchase order 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 purchase order’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
{
remoteId: "1",
trackingCategoryIds: [],
description: "Purchase Order Line 1",
unitPrice: 10,
quantity: 10,
accountingItemId: "00000000-0000-0000-0000-00000000",
accountId: "00000000-0000-0000-0000-00000000",
trackingCategoryId: null,
taxAmount: 10,
totalLineAmount: 110,
currency: null
}
Properties
remoteId
String
The ID of the object in the third-party application.
trackingCategoryIds
String[]
An array of tracking category IDs associated with the purchase 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 purchase order line item.
accountId
String
The ID of the account associated with the purchase order line item.
trackingCategoryId
String
The ID of the tracking category associated with the purchase 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