Create Wallet

Endpoint to create wallets.

Request:

FieldTypeDescription
businessIdIntegerUnique identifier for business associated with wallet
currencyStringValid 3 letter ISO currency code
typeEnum(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:

FieldTypeDescription
statusBooleanStates if request was successfully executed or not
codeIntegerInternal code, success if 200
msgStringA description of the status of the request
dataWalletNewly 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"
    }
}
Language
Authorization
Header
Click Try It! to start a request and see the response here!