GET Bills.
Retrieve a paginated list of the vendor bills created by the calling API key, ordered by ID (compared as text), each with
its items. Credit memos are included (negative amount).
Bills have no last-modified signal. Send the same filters
alongside cursor on every page.
query Parameters
vendorOptional vendor code to filter by.
invoiceDateFromOptional inclusive lower bound on the invoice date (yyyy-MM-dd).
invoiceDateToOptional inclusive upper bound on the invoice date (yyyy-MM-dd).
takeMaximum number of bills to return (default 20, max 100).
cursorOptional pagination cursor from a previous response.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
GET Bills. › Responses
Returns the list of bills.
Gets the array of results.
hasMoreGets a value indicating whether there are more results available.
cursorOpaque pagination cursor from the previous page. Omit on the first request.
totalGets or sets the total number of results available. Only included on the first page (when no cursor is provided).
POST Bill.
Create a vendor bill. Without items it is an expense, fee, or credit memo (negative amount). With
items, each item is received into stock and cost the way the back office does, the bill amount is
computed from the items, and amount in the request is the control total from the vendor's paper
invoice. A negative item quantity is a return: it reduces stock and never changes cost. Payment terms
are termsCode when given, otherwise the vendor's; the bill starts OnHold until approved in the back office.
externalBillId makes a retry safe: an ID that is already used returns 409 Conflict and creates nothing,
so a client that lost the response finds its bill with GET /bills/invoice-number. External IDs are shared
with orders and invoices. A vendor can't have two bills with the same invoiceNumber (also 409). When the store has a closing
date set, an invoiceDate on or before it is rejected with 400.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
POST Bill. › Request Body
externalBillIdYour own unique ID for this bill. Re-submitting an ID already in use returns 409.
vendorCodeCode of the vendor the bill is from.
invoiceNumberThe vendor's invoice number. Must be unique for the vendor.
invoiceDateDate on the vendor's invoice.
amountBill amount. Negative for a credit memo.
termsCodePayment terms code for this bill (see GET /payment-terms). Defaults to the vendor's terms.
dueDateDate payment is due. Optional: when omitted none is stored (the back office then works it out
from the vendor's payment terms), and the bill's dueDate is returned empty.
descriptionShort description.
notesFree-form notes of any length.
Received line items. When present, the bill's amount is computed from the lines and
amount is the control total from the vendor's paper invoice, which must match before
the bill can be released.
POST Bill. › Responses
Bill created; the body is the bill.
idUnique bill identifier.
vendorCodeCode of the vendor this bill is from.
invoiceNumberThe vendor's own invoice number.
invoiceDateDate on the vendor's invoice.
enteredDateDate the bill was entered.
dueDateDate payment is due, when one was entered. Empty otherwise; the back office then works it out from the vendor's payment terms.
amountBill amount. Negative for credit memos. For a bill with items it is the sum of the item subtotals plus the vendor markup.
controlTotalThe total from the vendor's paper invoice, keyed in to check the entry. The bill can only be
approved when it equals amount.
amountCreditedVendor credits applied against this bill.
amountPaidAmount paid so far.
discountTakenDiscount taken on this bill.
balanceOutstanding balance (Amount − AmountPaid − AmountCredited − DiscountTaken). Zero means fully settled.
A vendor's payment terms: when a bill is due and the early-payment discount, as set up in the back office.
statusWhether a bill may be paid yet.
descriptionShort one-line description (up to 30 characters), shown in the back office's bill lists.
notesFree-form notes of any length.
Items received on this bill. Empty for a bill without items (an expense, fee or credit memo).
GET Bill by id.
Looks up a vendor bill by its transaction ID, returning the header and its line items. Only bills created by the calling API key are visible.
path Parameters
idThe vendor transaction ID of the bill.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
GET Bill by id. › Responses
Returns the bill.
idUnique bill identifier.
vendorCodeCode of the vendor this bill is from.
invoiceNumberThe vendor's own invoice number.
invoiceDateDate on the vendor's invoice.
enteredDateDate the bill was entered.
dueDateDate payment is due, when one was entered. Empty otherwise; the back office then works it out from the vendor's payment terms.
amountBill amount. Negative for credit memos. For a bill with items it is the sum of the item subtotals plus the vendor markup.
controlTotalThe total from the vendor's paper invoice, keyed in to check the entry. The bill can only be
approved when it equals amount.
amountCreditedVendor credits applied against this bill.
amountPaidAmount paid so far.
discountTakenDiscount taken on this bill.
balanceOutstanding balance (Amount − AmountPaid − AmountCredited − DiscountTaken). Zero means fully settled.
A vendor's payment terms: when a bill is due and the early-payment discount, as set up in the back office.
statusWhether a bill may be paid yet.
descriptionShort one-line description (up to 30 characters), shown in the back office's bill lists.
notesFree-form notes of any length.
Items received on this bill. Empty for a bill without items (an expense, fee or credit memo).
GET Bills by vendor + invoice number.
Looks up vendor bills by vendor code plus the vendor's own invoice number, with their items. An invoice number is not guaranteed unique per vendor, so every match is returned. Only bills created by the calling API key are visible.
query Parameters
vendorThe vendor code.
invoiceNumberThe vendor's invoice number.
Headers
x-api-keyThe x-api-key header is used to authenticate with the API using your API key. Value is of the format YOUR_KEY_HERE.
GET Bills by vendor + invoice number. › Responses
Returns the matching bills.
Gets the array of results.
hasMoreGets a value indicating whether there are more results available.
cursorOpaque pagination cursor from the previous page. Omit on the first request.
totalGets or sets the total number of results available. Only included on the first page (when no cursor is provided).