Confirm Sufficient Balance for Prepaid Cards
This API handles requests to confirm Sufficient Balance for Prepaid Cards. It returns a 'YES' if the Card Balance of the Prepaid Card is greater than or equal to the transaction amount passed in the request or return 'NO' otherwise.
Request Message description
Field # | Field name | Data type | Max length | Required | Description |
---|---|---|---|---|---|
1 | pan | string | 16 to 19 | true | Card Personal Account Number (PAN) |
2 | transactionAmount | number | true | Transaction Amount to compare card balance against. |
POST /card-management/api/v1/card/prepaid/confirm_balance
Authorization = Bearer Token
Sample Request
{
"pan": "5060990000000151002",
"transactionAmount": 25000
}
Response Message field description
Field # | Field name | Description |
---|---|---|
1 | code | Internal Response Code |
2 | description | Successful or Error Message |
3 | correlationId | Request identifier |
4 | errors | Errors array if any errors exists. |
5 | isSufficient | Returns 'YES' if balance is Sufficient else returns 'NO' |
Sample Response (success)
{
"code": "00",
"description": "Successful",
"correlationId": "5a5d0875a56645498f29643ac2d53e06",
"isSufficient": "YES"
}
Sample Response (failure)
{
"code": "10404",
"description": "Card not found",
"correlationId": "2aa197eda43540a4ad85b8d0bf570871"
}
Updated 6 months ago