Get One Wallet by Id
GET /api/payments/wallet
Wallet retrieval by id
Query Parameters
- walletId int64 required
The unique identifier of the wallet
- isVirtual boolean required
Indicates whether the account is virtual
Header Parameters
- api-key string required
- api-secret string required
- 200
- 400
Wallet information
Response Headers
x-request-id any
Request Id for traceability
- */*
- Schema
- Example (from schema)
Schema
- status string required
Possible values: [
SUCCESS
,FAILED
,API_KEYS_INVALID
,INSUFFICIENT_FUNDS
,NOT_FOUND
,MALFORMED_URL
,INTERNAL_ERROR
,NOT_SUPPORTED
,CURRENCY_NOT_SUPPORTED
,MOBILE_MONEY_NOT_WHOLE_NUMBER
,BALANCE_NOT_FOUND
,BALANCE_NOT_AUTHORISED
,BALANCE_NOT_NUMERIC
,WEB_HOOK_NOT_SPECIFIED_FOR_OTP
,TOKEN_RESENT
,CLIENT_SIDE_ERROR
]Status code
- id int64 required
Unique identifier of the balance.
- balanceName string required
Balance name.
- balanceAmount double required
Amount held for this balance.
- bankAccountNumber string
Bank Account Number
- branchCode string
Branch Code
- bankName string
Bank Name
- bankCode string
Bank Code
- active boolean
{
"status": "SUCCESS",
"id": 100121,
"balanceName": "Jamal's KES balance",
"balanceAmount": 12332.11,
"bankAccountNumber": "8000010000150",
"branchCode": "118",
"bankName": "Pesawise Bank",
"bankCode": "0001",
"active": true
}
Error occurred - bad request
- */*
- Schema
- Example (from schema)
Schema
- requestId uuid
Request Id for traceability
- detail string
Detail of the message.
- status string
Possible values: [
API_KEYS_INVALID
,NOT_FOUND
,INTERNAL_ERROR
,API_NOT_ACTIVATED
]Status
{
"requestId": "d4265597-5317-45fd-8d2f-8012870633d5",
"detail": "API key not valid or Internal error",
"status": "INTERNAL_ERROR"
}