This is the endpoint that credits wallet from a debit card.
Request Message Description
Field# | Field name | Data type | Required | Max Length | Description | Options |
---|---|---|---|---|---|---|
1 | txnRef | String | yes | transaction reference | ||
2 | walletIdType | String | yes | wallet identifier type | ||
3 | walletId | String | yes | wallet identifier | ||
4 | amount | String | yes | |||
5 | channel | String | yes | 30 | channel sending request | “WEB” or “USSD” or “SERVICE” or “MOBILE” |
6 | cardDetails | String | yes | details of the debit card | ||
7 | domain | String | no | wallet domain |
Endpoint
Base URL : https://api-gateway.interswitchng.com
Request: POST
/generic-wallet/api/v1/transaction/credit
Header
Content-Type: application/json
Authorization: {passport generated bearer token}
Sample Request
{
"txnRef":"70039802",
"walletIdType": "phone",
"walletId": "08039609278",
"domain": "VER",
"channel":"SERVICE",
"amount":"42.16",
"cardDetails": "MCFi+eVtOlVQmKYHMMmhBkqhRoWuDdpyCB0+nxIQyoUTd5NXjKOxWJ32x8Ia9F2lE2yj09lHfVM+Rv9aqDTPTxsfojiTWLhk0G4Lgw3C107JnpubQCVZkNN10NpaCZxYtHBvAuUbgrGxIEFRD0XRiJNHarQIosgdSEmDvL3twzgopwfVge8oV7DAYC+SyqySgeIGwDRCXoD6FQuaayDCXLfU83ZIqO22IjmOUC/XBOrEZKGtKENMdMltEw1QNLF6P1LAPKF+lcOMaH7lbxgHrKwKaxe8PDsZy3veT3Ldad9iHtWryVjJisQbVnz0eImMvbm0CZeefoipXrATuwKyAA=="
}
Sample Response (success)
{
"statusCode": "200",
"responseCode": "00",
"responseMessage": "Successful",
"errors": null,
"modelList": null,
"count": 0
}