Update an invoice
Patches descriptive metadata on an existing invoice (description, purchase order number). Line items are managed through the dedicated line item endpoints.
Authorizations
Headers
A unique string that makes a retried write safe. If you send the same request with the same key within 24 hours, the API returns the stored response and does not run the request again. A 5xx or 429 response is not stored, so a retry with that key runs the request again.
255"ik_a1b2c3d4e5f6"
Body
When auto-pay charges the invoice. on_issue: when the invoice is issued. on_due_date: on the invoice's due date. Allowed while the invoice is draft, upcoming, pending_approval, issued, or overdue. On an issued or overdue invoice, the next auto-pay run uses the new value. Ignored when clear_autopay_timing is true.
on_issue, on_due_date "on_due_date"
Response
Success
When auto-pay charges the invoice. Before issue, it is null when the invoice inherits the value of its subscription or customer. At issue, the resolved value is saved on the invoice. Invoices issued without a value are charged when they are issued.
on_issue, on_due_date "on_due_date"