Generate invoices for a non-recurring addon using this API.
Sample Request
URL Format
Input Parameters
Identifier of the customer for which this invoice needs to be created. Should be specified if 'subscription_id' is not specified.
Identifier of the subscription for which this invoice(not applicable for consolidated invoice) needs to be created. Should be specified if 'customer_id' is not specified.
The number of addon units to be charged. Mandatory for quantity based addons.
Amount that will override the Addon's default price. The unit depends on the type of currency .
The number of addon units to be charged in decimal.
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.
Returns
Resource object representing invoice