Skip to main content

Create Purchase Invoice

POST 

/api/purchase-invoices

Create a new purchase invoice linked to a purchase order.

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token.

Either purchase_invoice_lines or financial_lines must be provided on creation. Invoice lines must belong to the specified purchase order and must not be fully invoiced.

When financial_lines are provided, each entry requires: id (an existing financial_lines.id), quantity (numeric), and amount (numeric). A 422 is returned if any are missing.

Request

Responses

OK