POST
/
credit_grants
/
{id}
/
reverse
curl --request POST \
  --url https://sandbox-api.billingrails.com/v1/credit_grants/{id}/reverse \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "credit_usage_id": "<string>"
}'
{
  "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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Reverse credit grant payload

The body is of type object.

Response

200 - application/json

Credit grant usage reversed

The response is of type object.