Purchase Invoices
List Purchase Invoices
Get a paginated list of purchase invoices with filtering and sorting.
Create Purchase Invoice
Create a new purchase invoice linked to a purchase order.
Bulk Delete Purchase Invoices
Bulk delete purchase invoices by IDs or by applying filters.
Get Purchase Invoice
Get a single purchase invoice with full detail including lines, financial lines, payments, and accounting transaction.
Update Purchase Invoice
Update an existing purchase invoice. All fields are optional on update (uses sometimes validation).
Delete Purchase Invoice
Delete a single purchase invoice. Also unlinks any associated financial lines.
Get Line Items
Get the line items for a purchase invoice (used for expand row in the datatable).
Get Shipment Prefill (From Invoice)
Build the prefill payload used by the Create Inbound Shipment from Invoice form.
List Inbound Shipments for Invoice
List all inbound shipments that were created from this purchase invoice. Used by the Inbound Shipments traceability panel on the invoice detail page.
Print Purchase Invoice PDF
Generate and stream a PDF of the purchase order invoice.
Bulk Archive Purchase Invoices
Bulk archive purchase invoices.
Bulk Unarchive Purchase Invoices
Bulk unarchive purchase invoices.
Archive Single Purchase Invoice
Archive a single purchase invoice.
Unarchive Single Purchase Invoice
Unarchive a single purchase invoice.
Check Deletability
Check whether purchase invoices can be deleted. Invoices are always deletable.
Create Custom (Fees Received) Invoice
Create a custom purchase invoice for fees (e.g., freight, handling). Fires events to recalculate FIFO layers and product averages.
Approve Invoice
Approve a purchase invoice that requires approval.
Reject Invoice
Reject a purchase invoice that requires approval.
Resubmit Invoice for Approval
Re-submit a rejected invoice back to pending approval status.
Generate Accounting Transaction
Generate or regenerate the accounting transaction for a purchase invoice.
Sync PO Price From Invoice Line
Push the unit_price from a single invoice line up to the linked PO line's amount, then re-evaluate the invoice's approval status.
Sync PO Prices Bulk
Sync PO line prices from many invoice lines on a single invoice in one request, then re-evaluate the invoice's approval status once at the end.
Variance Report
Get paginated price variance data comparing invoice prices vs. PO prices.
Three-Way Match
Get three-way match data for an invoice: compares PO quantities/prices, received quantities, and invoice quantities/prices.
Variance Resolution Preview
Preview over-billed quantities per PO line so the UI can prefill a 'Resolve with vendor credit' dialog.
Resolve with Vendor Credit
Resolve an over-billed purchase invoice by issuing a vendor credit for the over-billed quantities and auto-allocating it against the bill.
Activity Log
Get paginated activity log entries for a purchase invoice.
Export Purchase Invoices
Export purchase invoices as XLSX or CSV.
List Notes
Get paginated notes for a purchase invoice, ordered by newest first.
Add Note
Add a note to a purchase invoice.
Toggle Note Pin
Toggle the pinned state of a note on a purchase invoice.
Delete Note
Delete a note from a purchase invoice.
List Payments
List all payments for a purchase invoice.
Create Payment
Record a payment against a purchase invoice.
Get Payment
Get a single payment for a purchase invoice.
Update Payment
Update a payment on a purchase invoice. All fields are optional on update.
Delete Payment
Delete a payment from a purchase invoice.
Download Import Template
Download an XLSX import template with headers, sample data, field guide, and reference data from the tenant's account.
Validate Import Data
Validate mapped import data and return a grouped preview. No side effects — safe to call repeatedly.
Execute Import
Execute the import — create purchase invoices from validated data.