Decide on the seller's answer to a self-billed invoice
POST/api/v1/invoices/:invoice_id/self_billed_seller_decision
Records the workspace's decision on the answer the seller side gave to a self-billed invoice the workspace issued in the seller's name. A refusal (210) from the seller freezes the invoice until a decision is taken; a rejection (213) from the seller's platform requires its cancellation.
cancelcancels the invoice in the workspace's books, after a 210 or a 213. A new invoice, if one is owed, is issued under a new number. It is refused when a deposited self-billed credit note already cancels the invoice; such a credit note is in turn refused at deposit once the invoice was cancelled this way.continuecarries on with the same invoice and the same number by agreement with the seller, after a 210 only. The invoice stays refused. It is refused when a deposited self-billed credit note already cancels the invoice.
Neither decision sends anything to the seller or to the tax administration, and the invoice's
lifecycle state does not move. The decision is recorded once: the same decision sent again is
accepted and records nothing more, a different one is refused. The response is the invoice,
whose self_billing.buyer_decision reports the decision.
Requires self-billing to be enabled for the invoice's workspace. Authorization is based on the OAuth application's write access to the invoice's workspace.
Request
Responses
- 200
- 401
- 403
- 404
- 413
- 422
- 429
The decision was recorded; the invoice, with self_billing.buyer_decision set.
The request did not include a valid OAuth 2.0 access token
The access token lacks the write scope, self-billing is not enabled for the invoice's workspace, or the invoice is not a purchase invoice
No invoice exists with the given ID, or it belongs to another workspace
Request body too large: the JSON body exceeds 4 MiB (4,194,304 bytes), or holds more than 500,000 JSON nodes (structural characters {, [, , and : outside strings) or more than 100,000 objects and arrays ({ and [ outside strings), nests them more than 16 levels deep, or holds an object key path (a key and the keys of the objects around it, summed) longer than 128 bytes or a number longer than 128 bytes, as written. The response has no body; nothing was done.
The decision was refused: invalid_argument for a missing or unknown decision, operation_failed when the seller side has not frozen the invoice, a different decision was already taken, continue follows a 213, either decision targets an invoice a self-billed credit note already cancels, or reason is missing or too long; message reports the reason
rate_limited: this OAuth application went over the partner API limit, 300 requests per minute per OAuth application, shared by every authenticated operation, every access token of the application and its calls to the MCP endpoint /mcp, which count against the same window. Nothing was done; retry after Retry-After seconds.
Response Headers
Seconds to wait before retrying.