POST
/
credits
/
{credit_id}
/
void
curl --request POST \
  --url https://api.togai.com/credits/{credit_id}/void \
  --header 'Authorization: <authorization>'
[
  {
    "id": "creds.1znQx9jiIXw.r44fc",
    "customerId": "7VcRw9xZDIqsC5E",
    "accountId": "ACC001",
    "purpose": "Prepaid Credit",
    "effectiveFrom": "2020-07-04",
    "effectiveUntil": "2021-07-04",
    "status": "ACTIVE",
    "creditAmount": 1000,
    "creditUnit": "USD",
    "holdAmount": 500,
    "consumedAmount": 400,
    "priority": 1,
    "createdAt": "2020-07-04T12:00:00.000Z"
  },
  {
    "id": "creds.1znQ46jiIXw.r24fc",
    "customerId": "7VcRw9xZDIqsC5E",
    "accountId": "ACC001",
    "purpose": "Prepaid Credit",
    "effectiveFrom": "2020-08-04",
    "effectiveUntil": "2021-08-04",
    "status": "ACTIVE",
    "creditAmount": 1000,
    "creditUnit": "USD",
    "holdAmount": 500,
    "consumedAmount": 400,
    "priority": 1,
    "createdAt": "2020-08-04T12:00:00.000Z"
  }
]

Authorizations

Authorization
string
headerrequired

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

Path Parameters

credit_id
string
required

Response

200 - application/json
credits
object[]
required