Use this API to bill the unbilled charges. Available Credits and Excess Payments will automatically be applied while creating the invoice.
If the Auto Collection is turned on for the particular customer, the invoice will be created in payment_due state and the payment collection will be scheduled immediately.
During invoice creation, the PO number for the line items will be filled from the subscription's current PO number, if available.
If no recurring item is present in the created invoice, the invoice will be marked as recurring=false.
If consolidated invoicing is enabled and the parameter 'customer_id' is passed, multiple invoices can be created based on the following factors.
- Currency
- PO number if 'Group by PO number' is enabled
- Shipping address
- Auto Collection
- Payment method
Sample Request
URL Format
Input Parameters
Identifier of the subscription for which this invoice needs to be created. Should be specified if 'customer_id' is not specified.
Returns
Resource object representing invoice