Confirm Purchase Invoice Number
POST/api/purchase-invoices/:purchaseInvoice/confirm-invoice-number
Confirm that a purchase invoice's supplier invoice number is the supplier's real number.
purchase-orders:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
A bill created from a PDF starts with the file name as its number until the real one is read. While the number still equals an attached PDF's file name (for example 5148 with 5148.pdf) and nobody has confirmed it, the bill is held back from your accounting system, because the provider keeps the number a bill is created with. Confirming lifts that hold, and the bill syncs on the next run.
Editing supplier_invoice_number through Update Purchase Invoice also confirms it. Confirming a number that is already confirmed changes nothing.
No request body.
Authentication: Requires Bearer token.
The response is the full purchase invoice, the same shape as Get Purchase Invoice; invoice_number_confirmed_at is set and has_placeholder_invoice_number is false.
Request
Responses
- 200
- 401
- 403
- 404
- 422
- 429
OK
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
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
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.