Accounts & Subaccounts
Learn how to create and management sub-accounts
Last updated
Learn how to create and management sub-accounts
Last updated
Once you sign up on VeendHQ Business, you automatically have an account created for you.
Each user on VeendHQ can have multiple Sub-accounts for different use cases.
POST
{{BASE_URL}}/v1/accounts/{{ACCOUNT_ID}}/subaccount?accountId={{ID}}
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
GET
{{BASE_URL}}/v1/accounts/{{ACCOUNT_ID}}?accountId={{ACCOUNT_ID}}&populate=users
Get the statement of a sub-account which returns information about all transactions on that sub-account.
GET
{{BASE_URL}}/payments?accountId={{ACCOUNT_ID}}&populate=Purchases&desc=true&limit=5&sort=-_id
PATCH
{{BASE_URL}}/v1/accounts/{{ACCOUNT_ID}}?accountId={{ACCOUNT_ID}}
You can send fund from one sub-account to another on VeendHQ Business Account.
POST
{{BASE_URL}}/v1/accounts/{{SENDER_ACCOUNT_ID}}/transfer/{{RECEIVER_ACCOUNT_ID}}?accountId={{ID}}
A sub-account balance can be locked or unlocked. Locking a sub-account will prevent disbursement of funds from that sub-account.
BALANCE_ID
The BALANCE_ID can be gotten from the response to a GET call for a sub-account detail.
PATCH
https://test.veendhq.com/v1/balances/{{BALANCE_ID}}?accountId={{ACCOUNT_ID}}
Set blocked on the body of the request to true to lock the subaccount balance, otherwise set to false to unblock the account balance.
Get balance for an account or a sub-account.
GET
https://test.veendhq.com/v1/balances/?account={{ACCOUNT_ID}}&accountId={{ACCOUNT_ID}}
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
accountId*
String
name*
John Doe
A name for the sub account
user*
62bff....e6f
userId returned from the sign up or login.
webhookurl
String
A webhook url endpoint to be triggered when certain event occur
currency*
NGN
The currency to be used for the sub account. This should be same as the main account.
accountId*
626...44b
populate
users
populate
Purchases
limit
10
limit the returned response to a collection of 10 transactions
sort
String
a field to sort the response by
name*
Peter Pan
amount*
400000
description*
Fund for Airtime
accountId*
5d6c3...53d30d
blocked*
true
Boolean value to set lock and unlock a sub-account balance