Replace the invoice's allocation set
PUT/invoices/:code/allocations
Submit the full intended allocation set: target POs (same supplier), per-PO line assignments, and the buyer-entered shares of shared VAT, charges, and allowances. Validates same-supplier scope, complete line assignment, and per-bucket coverage against the document totals before persisting atomically
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 422
- 429
- 500
OK
Bad request - malformed body
Unauthorized
Forbidden - no access to this invoice or to a target purchase order
Invoice not found or not accessible
Invoice progressed into accounting, carries a collective allocation, or a target purchase order is canceled (type purchase-order-canceled) or completed (type purchase-order-completed, credit notes exempt)
Allocation invariant violated (supplier, lines, or coverage)
Too many requests - rate limited by the API firewall; wait out the Retry-After delay before retrying
Response Headers
Delay in seconds a client must wait before retrying the request
Internal server error