This is the endpoint that updates a wallet by replacing all the identifiers of the wallet.
Request Message Description
Field# | Field name | Data type | Required | Max Length | Description | Options |
---|---|---|---|---|---|---|
1 | name | String | yes | name of wallet | ||
2 | channel | String | yes | 30 | channel sending request | “WEB” or “USSD” or “SERVICE” or “MOBILE” |
3 | status | String | yes | Wallet Status | “ACTIVE” or “INACTIVE” | |
4 | walletIdType | String | yes | wallet Id Type | ||
5 | walletId | String | yes | wallet Id | ||
6 | newIds | Map | yes | new Id | ||
7 | domain | String | no | 200 | wallet domain |
Endpoint
Base URL : https://api-gateway.interswitchng.com
Request: POST /generic-wallet/api/v1/wallets/update/replace/id
Headers
Content-Type: application/json
Authorization: {passport generated bearer token}
Sample Request
{
"name": "TESTER",
"status": "ACTIVE",
"walletIdType": "PHONE",
"walletId": "08012345678",
"newIds": {
"PHONE": "08012345678",
"EMAIL":"tester@gmail.com"
},
"channel": "service",
"domain" : "ISW"
}
Sample Response (success)
{
"statusCode": "200",
"responseCode": "00",
"responseMessage": "Successful",
"errors": null,
"modelList": null,
"count": 0
}