PUT
/v2/invoices/{invoice_id}
Updates an invoice by modifying fields, clearing fields, or both.
For most updates, you can use a sparse
Invoice
object to add fields or change values and use the fields_to_clear
field to specify fields to clear.
However, some restrictions apply. For example, you cannot change the order_id
or location_id
field and you
must provide the complete custom_fields
list to update a custom field. Published invoices have additional restrictions.
Guide
Update invoices
Example code
The invoice fields to update.
The current invoice version must be specified in the version
field. For more information,
see Update an Invoice.
A unique string that identifies the UpdateInvoice
request. If you do not
provide idempotency_key
(or provide an empty string as the value), the endpoint
treats each request as independent.
For more information, see Idempotency.
The list of fields to clear. For examples, see Update an Invoice.