API Flow for Usage-Based Billing:
- Create an Order using createOrder API.
- Create usage inputs.
- Before you rate the usage inputs, preview them using the prev iewPendingUsageInputs API.
- Rate the usage inputs using processPendingUsageInput API. For incorrectly rate usage inputs, you can use the processRatedUsageInput API to unrate them.
- Invoice your customers using createInvoicesForOrder API.
- Generate the invoice document using Creating Invoice Documents API and email it to your customers.