Create an invoice for a customer. The invoice can be charged automatically using a stored payment method, or sent to the customer for manual payment.
Required permissions:
invoice:createplan:basic:readA 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 ***************************
Autogenerated input type of CreateInvoice
The unique identifier of the company to create this invoice for.
"biz_xxxxxxxxxxxxxx"
The properties of the product to create for this invoice. Provide this to create a new product inline.
The unique identifier of an existing member to create this invoice for. If not provided, you must supply an email_address and customer_name.
"mber_xxxxxxxxxxxxx"
The plan attributes defining the price, currency, and billing interval for this invoice.
How the invoice should be collected. Use charge_automatically to charge a stored payment method, or send_invoice to email the customer.
send_invoice, charge_automatically The date by which the invoice must be paid.
"2023-12-01T05:00:00.401Z"
The name of the customer. Required when creating an invoice for a customer who is not yet a member of the company.
The date and time when the invoice will be automatically finalized and charged. Only valid when collection_method is charge_automatically. If not provided, the charge will be processed immediately.
"2023-12-01T05:00:00.401Z"
Whether to charge the customer a buyer fee on this invoice.
The unique identifier of the payment method to charge. Required when collection_method is charge_automatically.
"pmt_xxxxxxxxxxxxxx"
The payment token ID to use for this invoice. If using charge_automatically, you must provide a payment_token.
"payt_xxxxxxxxxxxxx"
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, 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.