Skip to main content

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.

Required scope: purchase-orders:write

Grant 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​

OK