get https://api.vendy.money/wallets/:businessId
Endpoint to get all wallets for a business of a client or merchant by the business Id.
Request:
Field | Type | Description |
---|---|---|
id | Integer | Unique identifier of business (Path Parameter) |
Example request
curl --location 'https://api.vendy.money/wallets/930' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqd3RpZCI6IjMwZjUzZmJlLTk0NGUtNDNmNS04YmRkLTQ4ZWVjYmVlMGQ1OCIsImlhdCI6MTY4NzQ3OTI2NSwiZXhwIjoxNjg4Njg4ODY1LCJpc3MiOiJodHRwczovL3ZlbmR5Lm1vbmV5LmNvbS8iLCJqdGkiOiIzMGY1M2ZiZS05NDRlLTQzZjUtOGJkZC00OGVlY2JlZTBkNTgifQ.CwUO_fcualczzAZ9exMr25ai2PHoR4BWSOAG-UMHRt2HyYI8Fm5HBUBb3Qt5o8GqR5JFsaxm5LkpiQTAPvltGjjO4WnRgW9iz7yYJUfu-mG0DC1sCURnlKCnTvf1gKsD5IPnN4wbMMC46M05LfPfbS7ifptnzThkYOmvMwvT4hQ'
Response:
Field | Type | Description |
---|---|---|
status | Boolean | States if request was successfully executed or not |
code | Integer | Internal code, success if 200 |
data | Array[Wallet] | List of wallets |
Example response
{
"status": true,
"code": 200,
"msg": "wallets",
"data": [
{
"id": 1749,
"ownerid": 930,
"uid": 156,
"businessId": 930,
"balance": 0,
"lockedBalance": 0,
"meta": null,
"pendingInflow": 0,
"pendingWithdrawal": 0,
"availableBalance": 0,
"status": "active",
"type": "balance",
"currency": "ngn",
"fee": 0.015,
"createdAt": "2023-06-23T00:14:45.000Z",
"updatedAt": "2023-06-23T00:14:45.000Z",
"deletedAt": null
},
{
"id": 1750,
"ownerid": 930,
"uid": 156,
"businessId": 930,
"balance": 0,
"lockedBalance": 0,
"meta": null,
"pendingInflow": 0,
"pendingWithdrawal": 0,
"availableBalance": 0,
"status": "active",
"type": "commission",
"currency": "ngn",
"fee": 0.001,
"createdAt": "2023-06-23T00:14:45.000Z",
"updatedAt": "2023-06-23T00:14:45.000Z",
"deletedAt": null
}
]
}