post https://api.vendy.money/wallets/create-wallet
Endpoint to create wallets.
Request:
Field | Type | Description |
---|---|---|
businessId | Integer | Unique identifier for business associated with wallet |
currency | String | Valid 3 letter ISO currency code |
type | Enum(String) | Type of wallet: 'commission' or 'balance' |
Example request
curl --location 'https://api.vendy.money/webhooks/create-webhook?businessId=1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <token>' \
--data '{
"businessId":"1",
"currency":"NGN",
"type":"balance"
}'
Response:
Field | Type | Description |
---|---|---|
status | Boolean | States if request was successfully executed or not |
code | Integer | Internal code, success if 200 |
msg | String | A description of the status of the request |
data | Wallet | Newly created wallet details |
Example response
{
"status": true,
"code": 200,
"msg": "Wallet created successfully",
"data": {
"balance": "0.00",
"lockedBalance": "0.00",
"pendingInflow": "0.00",
"pendingWithdrawal": "0.00",
"status": "active",
"fee": "0.015",
"id": 50,
"uid": 1,
"type": "balance",
"currency": "NGN",
"businessId": "1",
"updatedAt": "2022-09-27T19:03:37.101Z",
"createdAt": "2022-09-27T19:03:37.101Z"
}
}