Creates an invoice for charge-items and one-time charges. The item prices must belong to items of type charge.
One-time charges are represented in an invoice as line_items with entity_type adhoc.
Sample Request
URL Format
Input Parameters
Unique ID of the customer this invoice should be created for. Either this or subscription_id must be provided.
Note
The invoice is linked to the same business entity as this customer.
Unique ID of the subscription this invoice should be created for. Either this or customer_id must be provided.
Note
The invoice is linked to the same business entity as this subscription.
The currency code (ISO 4217 format) of the invoice amount.
A note for this particular invoice. This, and all other notes for the invoice are displayed on the PDF invoice sent to the customer.
Set as true
to remove the general note
from this invoice.
If specified, the customer level auto collection will be overridden.
Whenever an invoice is created, an automatic attempt will be made to charge.
Whenever an invoice is created as payment due.
The document date displayed on the invoice PDF. By default, it is the date of creation of the invoice or, when Metered Billing is enabled, it can be the date of closing the invoice. Provide this value to backdate the invoice (set the invoice date to a value in the past). Backdating an invoice is done for reasons such as booking revenue for a previous date or when the non-recurring charge is effective as of a past date.
taxes
and
line_item_taxes
are computed based on the tax configuration as of this date. The date should not be more than one calendar month into the past. For example, if today is 13th January, then you cannot pass a value that is earlier than 13th December.
Token generated by Chargebee JS representing payment method details.
Indicates whether the primary payment source should be replaced with this payment source. In case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.
Indicates whether the payment source should be retained for the customer.
The type of initiator to be used for the payment request triggered by this operation.
Pass this value to indicate that the request is initiated by the customer
Pass this value to indicate that the request is initiated by the merchant
Returns
Resource object representing invoice