Skip to main content

Mark PO Cost Line Not Billed

POST 

/api/purchase-orders/:purchaseOrder/financial-lines/:financialLine/settle-billing

Mark a cost line on a purchase order as not billed on that order's supplier invoices, for example when a freight forwarder bills the freight separately or the supplier dropped a fee. The line stops holding the order out of "fully invoiced"; it keeps its amount and its landed-cost allocation, and no bill is created or changed.

Required scope: purchase-orders:write

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

A purchase order counts as fully invoiced only when every product line is invoiced (or settled) and every non-zero cost line on it (shipping, freight, duties, fees) is on one of its supplier invoices. Purchase order responses list the cost lines still waiting for an invoice in unbilled_financial_line_ids.

Authentication: Requires Bearer token. Requires the purchase_orders.update permission.

Request body fields:

  • reason (required, string, max 500): why the cost line will not be on this order's invoices. Recorded on the line.

Adding the cost line to a supplier invoice later clears the mark automatically.

Errors (422): missing reason; the cost line belongs to a different purchase order; it is already marked; or it is already on a supplier invoice or has no amount to bill.

Returns the cost line and the purchase order's recomputed invoice_status, fully_invoiced and remaining unbilled_financial_lines.

Request​

Responses​

Created

Response Headers
    Content-Type