Create invoice
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:createmember:email:read
Authorizations
An Account API key, account-scoped JWT, App API key, or user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************.
Body
- CreateInvoiceInputWithProduct
- CreateInvoiceInputWithProductId
Autogenerated input type of CreateInvoice
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 unique identifier of the company to create this invoice for.
"biz_xxxxxxxxxxxxxx"
The plan attributes defining the price, currency, and billing interval for this invoice.
The properties of the product to create for this invoice. Provide this to create a new product inline.
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 to the customer at the specified time.
"2023-12-01T05:00:00.401Z"
Inline billing address to create a new mailing address for this invoice. Cannot be used together with mailing_address_id.
Whether to charge the customer a buyer fee on this invoice.
The name of the customer. Required when creating an invoice for a customer who is not yet a member of the company.
The date by which the invoice must be paid. Required unless save_as_draft is true.
"2023-12-01T05:00:00.401Z"
The email address of the customer. Required when creating an invoice for a customer who is not yet a member of the company.
Optional line items that break down the invoice total. When provided, the sum of (quantity * unit_price) for all items must equal the plan price.
The unique identifier of an existing mailing address to attach to this invoice. Cannot be used together with billing_address.
"ma_xxxxxxxxxxxxxxx"
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 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"
When true, creates the invoice as a draft without sending or charging. Relaxes customer and due date requirements.
The date that defines when the subscription billing cycle should start. When set on a renewal plan invoice, this anchors all future billing periods to this date.
"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 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"
Whether the invoice includes a buyer processing fee on top of the plan price.
The method used to collect payment for this invoice, such as automatic charging or manual payment.
send_invoice, charge_automatically The company that issued this invoice.
The datetime the invoice was created.
"2023-12-01T05:00:00.401Z"
The plan that this invoice charges for.
The full name of the customer this invoice is addressed to. Null if no name is on file.
"Jane Doe"
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 unique identifier for the invoice.
"inv_xxxxxxxxxxxxxx"
Optional line items that break down the invoice total into individual charges.
The billing/mailing address associated with this invoice, if one was provided at creation time.
The sequential invoice number for display purposes.
"#0001"
The checkout URL where the customer can pay this invoice online, with their email address pre-filled and locked.
The product that this invoice was generated for.
The current payment status of the invoice, such as draft, open, paid, or void.
draft, open, paid, past_due, uncollectible, void The date that defines when the subscription billing cycle starts. When set on a renewal plan invoice, all future billing periods anchor to this date.
"2023-12-01T05:00:00.401Z"
The datetime the invoice was last updated.
"2023-12-01T05:00:00.401Z"
The user this invoice is addressed to. Null if the user account has been removed.

