This is the endpoint that debit wallet and transfer fund to domain float 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 | encryptedPin | String | yes | wallet Encrypted Pin | ||
7 | domain | String | no | wallet domain |
Endpoint
Base URL : https://api-gateway.interswitchng.com
Request: POST
/generic-wallet/api/v1/transaction/debit
Header
Content-Type: application/json
Authorization: {passport generated bearer token}
Sample Request
{
"txnRef":"70039206",
"walletIdType":"phone",
"walletId":"08012345678",
"channel":"SERVICE",
"amount":"500",
"encryptedPin": "1f5a9e3afd2d86f05f114d905106f6cd"
}
Sample Response (success)
{
"statusCode": "200",
"responseCode": "00",
"responseMessage": "Successful",
"errors": null,
"modelList": null,
"count": 0
}