Update invoice
Update a draft invoice’s details.
Required permissions:
invoice:update
Authorizations
A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Path Parameters
The unique identifier of the invoice to update.
"inv_xxxxxxxxxxxxxx"
Body
Parameters for UpdateInvoice
The date and time when the invoice will be automatically finalized. For charge_automatically, triggers an automatic charge. For send_invoice, sends the invoice email at the specified time.
"2023-12-01T05:00:00.401Z"
Inline billing address to create or update a mailing address for this invoice.
Whether to charge the customer a buyer fee on this invoice.
How the invoice should be collected.
send_invoice, charge_automatically The name of the customer.
The date by which the invoice must be paid.
"2023-12-01T05:00:00.401Z"
The email address of the customer.
Line items that break down the invoice total.
The unique identifier of an existing mailing address to attach.
"ma_xxxxxxxxxxxxxxx"
The unique identifier of a member to assign as the customer.
"mber_xxxxxxxxxxxxx"
The unique identifier of the payment method to charge.
"pmt_xxxxxxxxxxxxxx"
Updated plan attributes.
The unique identifier of an existing product to attach to this invoice. Only allowed while the invoice is still a draft.
"prod_xxxxxxxxxxxxx"
The date that defines when the subscription billing cycle should start.
"2023-12-01T05:00:00.401Z"
Response
A successful response
An invoice represents an itemized bill sent by a company to a customer for a specific product and plan, tracking the amount owed, due date, and payment status.
The unique identifier for the invoice.
"inv_xxxxxxxxxxxxxx"
The datetime the invoice was created.
"2023-12-01T05:00:00.401Z"
The current payment status of the invoice, such as draft, open, paid, or void.
draft, open, paid, past_due, uncollectible, void The sequential invoice number for display purposes.
"#0001"
The deadline by which payment is expected. Null if the invoice is collected automatically.
"2023-12-01T05:00:00.401Z"
The email address of the customer this invoice is addressed to. Null if no email is on file.
"customer@example.com"
A signed token that allows fetching invoice data publicly without authentication.
"eyJhbGciOiJIUzI1NiJ9..."
The plan that this invoice charges for.
The user this invoice is addressed to. Null if the user account has been removed.

