How to create invoices for credit grants
Last updated: September 20, 2024
How to create an invoice for a credit grant via the UI
Navigate to the customer's page in Orb:
Click on “Adjust Credits”.
Add Credits:
Enter the amount of credits to be added, for example, 250 credits.
• Set the cost per credit, e.g., $1 per credit.
Select "Create an invoice for this purchase" :
Collect payment from the customer
How to create an invoice for a credit grant via the API
Use the create credit ledger API endpoint:
To create an invoice for the credit increment, you must specify a
per_unit_cost_basisandinvoice_settingsin the request.
Determine whether the credits should be granted before or after successful payment.
Charge the customer:
The credit increment can be automatically charged to your customer or you can send them a link to the invoice. When the invoice is paid, the credits will be granted to the customer.