Invoices
List Invoiceable Purchase Orders
The 'Ready to invoice' queue: your purchase orders with received (or, for dropship, shipped) units not yet invoiced and a value left to invoice above zero. A fully invoiced or canceled order leaves the queue. Sorted oldest receipt first. The dashboard's ready-to-invoice count and total use this same query.
Get Purchase Order Invoice Draft
What the 'Create invoice' form needs for one purchase order: every product line with ordered, received/shipped (`basis_quantity`), already invoiced and still invoiceable quantities and the PO unit cost, plus the payment terms and the pay date the terms give an invoice dated today.
Create Purchase Order Invoice
Submit an invoice against one of your purchase orders — from its lines (`flip`) or as your own PDF without lines (`upload`). The invoice goes to the buyer's accounts-payable review and is never approved automatically. Send as JSON, or multipart/form-data when attaching a file.
List Invoices
Every invoice the buyer holds for your supplier — ones you submitted here and ones the buyer entered — newest invoice date first.
Get Invoice
One invoice with its lines and match flags, the five-step payment timeline (submitted → under review → approved → scheduled → paid), history, payments, deposits applied, your attachments and — when it can still be edited — the resubmit form (`edit.lines` with each line's cap excluding this invoice).
Update Invoice
Edit and resubmit an invoice you submitted here while it is submitted, under review or rejected (unpaid). Replaces its lines, number, date and stated total, clears the rejection and puts it back in the buyer's review. Caps are re-checked against the order's current received/shipped state, excluding this invoice. A new `attachment` is added. With a file, send POST multipart with `_method=PUT`.
Download Invoice Attachment
Download a file you attached to an invoice. Returns the file (Content-Disposition: attachment).