Idempotency Supported
Imports one or more unbilled charges into an existing subscription. Use this operation to add usage-based or other unbilled charges recorded in external systems to the subscription.
Prerequisites & Constraints
If you are trying to use this operation on your live site, ensure you have requested Support to enable it, otherwise the API will return an "API not enabled" error.
Impacts
Invoicing
- Unbilled charges on the subscription are automatically invoiced on the next renewal.
- You can also invoice unbilled charges on-demand using the Create an invoice for unbilled charges API.
Accounting Integrations
Imported unbilled charges will not sync with your accounting integration until they are invoiced.
Sample Request
Sample Result[JSON]
URL Format
POST https://[site].chargebee.com/api/v2/subscriptions/{subscription-id}/import_unbilled_charges
Input Parameters
Returns
always returned
Resource object representing unbilled_charge