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.
purchase-orders:writeGrant 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
- 201
- 401
- 403
- 404
- 422
- 429
Created
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Unprocessable Content
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.