Credits
Grant credit
Grant credit
post/credits
Request body
Example request
{
"creditRequests": [
{
"accountId": "ACC001",
"purpose": "PREPAID_CREDIT",
"effectiveFrom": "2020-07-04",
"effectiveUntil": "2021-07-04",
"creditAmount": 1000,
"priority": 1
}
]
}Response
Response for List credits request
Example response
{
"credits": [
{
"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
}
]
}