Credits
Void credit
Changed onVoid credit
post/credits/{credit_id}/void
Request
- Base URLhttps://api.togai.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
credit_idstring required
Example:creds.1znQx9jiIXw.r44fc
Response
Response for Void credit request
Example response
{
"accountId": "ACC001",
"purpose": "PREPAID_CREDIT",
"effectiveFrom": "2020-07-04",
"effectiveUntil": "2021-07-04",
"creditAmount": 1000,
"priority": 1,
"id": "cred.1znqBOVcai0.0tBFz",
"customerId": "7VcRw9xZDIqsC5E",
"status": "ACTIVE",
"creditUnit": "USD",
"holdAmount": 500,
"consumedAmount": 400
}Changes
- breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
from the response with the status - info
added
subschema #2to the response bodyallOflist for the response status
- breaking
- breaking
the response property
//////became optional for the status
- breaking