Bill

{
  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


idString

The Alloy-generated unique ID


remoteIdString

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


vendorIdString

The ID of the vendor associated with the bill.


billNumberNumber

A unique number or code assigned to the bill for easy reference.


issueDateDate

The date when the bill was generated or provided. Format: YYYY-MM-DD


dueDateDate

The date by which the payment for the bill is expected. Format: YYYY-MM-DD


paidOnDateDate

The date when the bill was settled or paid. Format: YYYY-MM-DD


memoString

Any additional notes, comments, or details about the bill.


companyIdNumber

ID of the company the bill belongs to.


currencyEnum

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


exchangeRateNumber

The conversion rate used if transactions involve foreign currency.


totalDiscountString

Cumulative reductions or markdowns applied to the bill.


subTotalNumber

The total amount before any taxes, discounts, or additional fees are applied.


billStatusString

The current state of the bill. Possible values: PAID, DRAFT, SUBMITTED, PARTIALLY_PAID, OPEN, VOID


totalTaxAmountNumber

Total amount of taxes applied to the bill.


totalAmountNumber

The complete sum due, including all charges, taxes, and minus any discounts.


balanceNumber

The total tax amount of the invoice.


trackingCategoriesString[]

An array of tracking category IDs.


lineItemsBillLineItem[]

Detailed breakdown of all the goods or services listed in the bill, typically including descriptions, quantities, and prices.


purchaseOrdersString[]

An array of purchase order IDs.


remoteCreatedAtDateTime

The exact date and time when the item 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 item'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.


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


remoteIdString

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


descriptionString

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


unitPriceNumber

The cost per individual unit of the good or service.


quantityNumber

The number of units of the particular good or service being billed.


totalAmountNumber

The overall sum for the line item, typically calculated as unitPrice * quantity.


currencyEnum

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


exchangeRateNumber

The conversion rate used if the line item involves a foreign currency.


accountingItemIdString

The ID of the item associated with the bill line item.


accountIdString

The ID of the account associated with the bill line item.


trackingCategoryIdString

The ID of the tracking category associated with the bill line item.


trackingCategoryIdsString[]

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


companyIdString

ID of the company the bill line item belongs to.