Invoices
POST/v1/invoices/{invoice_id}/finalize

Gives a draft its number and payment link, and opens it for payment. Its content is then fixed. The total must be between UGX 500 and UGX 5,000,000.

Permissioninvoices:write

Headers#

Idempotency-Keystringheader

8–80 letters, digits, - or _. Lets you retry safely: the same key and body return the first answer and never move money twice. See Idempotency.

Path parameters#

invoice_idstringrequired

The invoice, such as inv_UfwyBh1W4Jfa6iG2u2AVT3.

Returns#

The invoice, now open, with number, hosted_invoice_url and invoice_pdf.

Errors#

StatusCodeWhen
409INVOICE_NOT_DRAFTIt’s already finalized.
422INVALID_TOTALThe total is outside UGX 500–5,000,000.

The common codes, such as UNAUTHENTICATED and RATE_LIMITED, can come from any endpoint. See Errors.