Create customer prepaid order by usage quota
1 min
POST
https://app.amberflo.io/payments/pricing/amberflo/customer-prepaid/usage
bodyobjectPrepaid usage order configuration including customer details, usage quotas, dimensions, and recurrence settings
200Successfully created usage-based prepaid order and returns detailed quota information with usage terms
400Invalid usage quota configuration, unsupported usage dimensions, or malformed request body
401Authentication required or invalid API key provided
403Insufficient permissions to create customer usage-based prepaid orders
404Customer not found or usage-based prepaid service not configured for account
409Conflicting usage quota order or dimension configuration issues
500Internal server error occurred while creating usage-based prepaid order
curl --request POST \
--url https://app.amberflo.io/payments/pricing/amberflo/customer-prepaid/usage \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"installments": {
"prepaidInstallments": [
{
"amountPrice": "",
"scheduledPurchaseTimeInSeconds": 0
}
]
},
"type": "customer_prepaid_by_usage"
}'