Invoices
POST/v1/invoices

Creates an invoice. By default it’s a draft: finalize it to give it a number and a payment link, or send it straight away with send: true. Your customer pays on the hosted page with MTN Mobile Money or Airtel Money and gets a receipt.

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.

Body#

JSON, with Content-Type: application/json.

customerobjectrequired

Who you are billing.

Show child attributes
namestringrequired

The customer’s name.

emailstring

Needed to email the invoice and the receipt.

phonestring

Needed to text the invoice. It also fills in the payment page.

addressstring

Printed on the invoice.

itemsarrayrequired

Up to 50 lines.

Show child attributes
descriptionstringrequired

What the line is for.

quantityintegerrequired

How many.

unit_amountintegerrequired

The price of one, in whole UGX.

tax_percentnumber

Tax on the subtotal, such as 18 for VAT. Rounded to the nearest shilling.

due_datestring

A date such as 2026-11-30. Or use days_until_due.

days_until_dueinteger

Days from today. Defaults to your invoice settings (14 days unless you changed it).

wallet_idstring

Where payments land. Defaults to your main wallet.

fee_bearerstring

wallet or customer. With customer, the collection fee is added on the payment page and the wallet receives the full total.

memostring

A note on the invoice, up to 1,000 characters.

footerstring

Small print at the bottom, up to 500 characters.

referencestring

Your own unique id for the invoice, up to 64 characters.

metadataobject

Up to 20 keys of your own, with simple values. Returned on the object and in webhooks.

finalizeboolean

true gives it a number and payment link now.

sendboolean

true finalizes it and sends it.

send_viaarraydefault: ["email"]

["email"], ["sms"] or both.

Returns#

The invoice. Once finalized, hosted_invoice_url is the payment link: share it anywhere. invoice_pdf downloads the PDF without a key. With send, delivery says what was sent.

Errors#

StatusCodeWhen
422INVALID_TOTALThe total must be between UGX 500 and UGX 5,000,000 to be paid with mobile money.
422NO_CUSTOMER_EMAILYou asked to email it, but there’s no customer.email.
422NO_CUSTOMER_PHONEYou asked to text it, but there’s no customer.phone.
409DUPLICATE_REFERENCEAnother invoice already has this reference.

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