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
Returns the line items for a warehouse transfer, including product details, quantities, shipped/received quantities, and COGS values.
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
Generates (or regenerates) the accounting transaction for this bill. Uses the bill's nominal codes and totals to create journal entries.
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.
Activity Log
Get paginated activity log for a purchase order. Covers events on the PO, its lines, and invoices.
Export Purchase Invoices
Export purchase invoices as XLSX or CSV.
List Notes
Returns a paginated list of notes for a sales credit, ordered by created_at descending. Includes the note author.
Add Note
Adds a note to a sales credit.
Toggle Note Pin
Toggle the pinned state of a note on a purchase order.
Delete Note
Deletes a note.
List Payments
Paginated list of QBO payments.
Create Payment
Creates a new accounting payment.
Get Payment
Returns a single accounting payment.
Update Payment
Updates an existing accounting payment.
Delete Payment
Deletes an accounting payment.
Download Import Template
Download the CSV import template for COGS bulk import. Headers: layer_id, cogs.
Validate Import Data
Validate mapped import data and return a grouped preview. No side effects — safe to call repeatedly.
Execute Import
Execute the product import — creates products from the validated data. Should be called after validate.