Regenerates the invoice for the current term of the subscription. The subscription must have status as active or non_renewing. This operation is not allowed when any of the following conditions hold true for the subscription:
- An invoice exists for the current term and its
statusis notvoided. - There are unbilled charges for the current term.
- The subscription has an advance invoice.
Response
Returns an estimate object with one of the following components depending on the value of invoice_immediately.
- If the value is
true: aninvoice_estimateobject that corresponds to the regenerated invoice. - If the value is
false: a list ofunbilled_charge_estimateobjects corresponding to all the unbilled charges created for the current term of the subscription.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
The start date of the period being invoiced. The default value is current_term_start .
The end date of the period being invoiced. The default value is current_term_end .
Only applicable when Consolidated Invoicing
is enabled for the customer. Set to false
to leave the current term charge for the subscription as unbilled.
Once you have done this for all suitable subscriptions of the customer, call Create an invoice for unbilled charges
to invoice them.