Invoices
POST/v1/invoices/{invoice_id}

Changes a draft. Send only the fields you want to change; they take the same values as in Create an invoice. Once an invoice is finalized, only metadata can change: to change anything else, void it and create a new one.

Permissioninvoices:write

Path parameters#

invoice_idstringrequired

The invoice, such as inv_UfwyBh1W4Jfa6iG2u2AVT3.

Body#

JSON, with Content-Type: application/json.

customerobject

Replaces the customer.

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.

itemsarray

Replaces all the lines.

Show child attributes
descriptionstringrequired

What the line is for.

quantityintegerrequired

How many.

unit_amountintegerrequired

The price of one, in whole UGX.

tax_percentnumber
due_datestring
days_until_dueinteger
wallet_idstring
fee_bearerstring
memostring
footerstring
referencestring
metadataobject

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

Returns#

The updated invoice.

Errors#

StatusCodeWhen
409INVOICE_NOT_DRAFTOnly drafts can be edited (except metadata).

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