{
id: "00000000-0000-0000-0000-00000000",
remoteId: "272",
vendorId: "4f34014f-ef0f-4d3a-8fee-d128e818568d",
billNumber: null,
issueDate: "2022-07-09",
dueDate: "2022-07-09",
paidOnDate: null,
memo: null,
companyId: null,
currency: "USD",
exchangeRate: 1,
totalDiscount: null,
subTotal: null,
billStatus: null,
totalTaxAmount: null,
totalAmount: 1,
balance: 1,
trackingCategories: [],
lineItems: [
{
totalAmount: 1,
accountId: "00000000-0000-0000-0000-00000000",
remoteId: "1"
}
],
purchaseOrders: [],
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.
vendorId
String
The ID of the vendor associated with the bill.
billNumber
Number
A unique number or code assigned to the bill for easy reference.
issueDate
Date
The date when the bill was generated or provided. Format: YYYY-MM-DD
dueDate
Date
The date by which the payment for the bill is expected. Format: YYYY-MM-DD
paidOnDate
Date
The date when the bill was settled or paid. Format: YYYY-MM-DD
memo
String
Any additional notes, comments, or details about the bill.
companyId
Number
ID of the company the bill belongs to.
currency
Enum
The type of currency in which the bill is denominated. 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 used if transactions involve foreign currency.
totalDiscount
String
Cumulative reductions or markdowns applied to the bill.
subTotal
Number
The total amount before any taxes, discounts, or additional fees are applied.
billStatus
String
The current state of the bill. Possible values: PAID, DRAFT, SUBMITTED, PARTIALLY_PAID, OPEN, VOID
totalTaxAmount
Number
Total amount of taxes applied to the bill.
totalAmount
Number
The complete sum due, including all charges, taxes, and minus any discounts.
balance
Number
The total tax amount of the invoice.
trackingCategories
String[]
An array of tracking category IDs.
lineItems
BillLineItem[]
Detailed breakdown of all the goods or services listed in the bill, typically including descriptions, quantities, and prices.
purchaseOrders
String[]
An array of purchase order IDs.
remoteCreatedAt
DateTime
The exact date and time when the item 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 item'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.
Bill Line Item
{
remoteId: "1",
description: "Line Item",
unitPrice: 2,
quantity: 10,
totalAmount: 20,
currency: null,
exchangeRate: null,
accountingItemId: null,
accountId: "00000000-0000-0000-0000-00000000",
trackingCategoryId: null,
trackingCategoryIds: [],
companyId: null
}
Bill Line Properties
remoteId
String
The ID of the object in the third-party application.
description
String
A brief overview or detail of the specific good or service listed in the line item.
unitPrice
Number
The cost per individual unit of the good or service.
quantity
Number
The number of units of the particular good or service being billed.
totalAmount
Number
The overall sum for the line item, typically calculated as unitPrice * quantity.
currency
Enum
The type of currency in which the line item's amount is denominated. 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 used if the line item involves a foreign currency.
accountingItemId
String
The ID of the item associated with the bill line item.
accountId
String
The ID of the account associated with the bill line item.
trackingCategoryId
String
The ID of the tracking category associated with the bill line item.
trackingCategoryIds
String[]
An array of tracking category IDs associated with the bill line item.
companyId
String
ID of the company the bill line item belongs to.