v1
latestOpenAPI 3.1.02026-07-222392081.7 MBCustomers > Credits
Purchase credits
Purchase a number of credits. This action will generate an invoice and charge the customer.
post/v1/customers/{id}/credits/{productId}/purchase
Path parameters
idstring required
productIdstring required
Request body
Example request
{
"credit_count": 32,
"expires_at": "2024-12-20T16:04:11Z"
}Response
Invoice ID and balance after purchase