Invoices
Update a draft invoice
PUT/api/v1/invoices/{invoiceID}
Change a draft invoice
Authorization
Bearer sk_test_… or sk_live_…Path parameters#
invoiceIDuuidRequired
Body parameters#
kindstringRequiredIgnored when changing a draft. One of
simple,professional.amount_minorintegerOptionalA simple invoice's amount. At least 1.
customer_emailstringOptionalUp to 254 characters.
customer_first_namestringOptionalUp to 100 characters.
customer_iduuidOptionalOne of the business's customers; else give customer_email.
customer_last_namestringOptionalUp to 100 characters.
discount_minorintegerOptionalAt least 0.
draftbooleanOptionalSave without emailing the customer.
due_datedateOptionalitemsarray of objectOptionalnotestringOptionalUp to 1000 characters.
redirect_urlstringOptionalUp to 500 characters.
tax_bpsintegerOptionalFrom 0 to 10000.
Responses#
- 200OK
- 401The secret key is missing, invalid or revoked.
- 403The key is not allowed to do this, or the request came from an address that is not on its allowlist.
- 404Nothing was found for this business and mode.
- 409The request clashes with the current state, such as a reference reused with different details.
- 422A field is missing or not valid.