Get All Wallets
GET /api/payments/wallets
Get all balances for a particular merchant
Query Parameters
- isVirtual boolean required
Indicates whether the account is virtual
Header Parameters
- api-key string required
- api-secret string required
Responses
- 200
- 400
Wallet information
Response Headers
x-request-id any
Request Id for traceability
- */*
- Schema
- Example (from schema)
Schema
- Array [
- 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
,INTERNAL_ERROR
,API_NOT_ACTIVATED
]Status
{
"requestId": "d4265597-5317-45fd-8d2f-8012870633d5",
"detail": "API key not valid or Internal error",
"status": "INTERNAL_ERROR"
}
Loading...