cURL
curl --request POST \ --url https://sandbox-api.billingrails.com/v1/credit_grants/{id}/expire \ --header 'Authorization: Bearer <token>'
{ "credit_grant": { "object": "credit_grant", "id": "cgr_IhMUl3rrZ3", "created_at": "2025-02-14T17:33:40.843Z", "account_id": "acc_IhMUl3rrZ3", "type": "promotional", "status": "granted", "payment_status": "comped", "currency": "NGN", "grant_amount": 5000, "available_amount": 3000, "expires_at": "2025-03-14T17:33:40.843Z", "effective_at": "2025-02-14T17:33:40.843Z" } }
Expires a credit grant.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Credit grant expired
The response is of type object.
object