Update a draft
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.
invoices:writePath parameters#
invoice_idstringrequiredThe invoice, such as inv_UfwyBh1W4Jfa6iG2u2AVT3.
Body#
JSON, with Content-Type: application/json.
customerobjectReplaces the customer.
Show child attributes
namestringrequiredThe customer’s name.
emailstringNeeded to email the invoice and the receipt.
phonestringNeeded to text the invoice. It also fills in the payment page.
addressstringPrinted on the invoice.
itemsarrayReplaces all the lines.
Show child attributes
descriptionstringrequiredWhat the line is for.
quantityintegerrequiredHow many.
unit_amountintegerrequiredThe price of one, in whole UGX.
tax_percentnumberdue_datestringdays_until_dueintegerwallet_idstringfee_bearerstringmemostringfooterstringreferencestringmetadataobjectUp to 20 keys of your own, with simple values. Returned on the object and in webhooks.
Returns#
The updated invoice.
Errors#
| Status | Code | When |
|---|---|---|
| 409 | INVOICE_NOT_DRAFT | Only drafts can be edited (except metadata). |
The common codes, such as UNAUTHENTICATED and RATE_LIMITED, can come from any endpoint. See Errors.