Reference
/- Create a new account (wallet) for the business
List user accounts
Create a new account
Get business wallet references/currencies
Provision a new business currency
Get cashflow report for accounts
Get account by ID
Update account details
Get account balance
Get account transactions
Suspend account
Activate account
Create a new account (wal...
Creates a wallet for the business in the requested currency. If the currency does not yet exist for the business it is provisioned first. Wallets are unique per (currency, walletType).
Security
oauth2ClientCredentials(Required scopes: accounts:write)
Wallet type to create
Enum:"PETTYCASH""MAIN""SUBSCRIPTION-WALLET"
Example:"PETTYCASH"
Optional account description (max 200 characters). Falls back to walletType when omitted.
Example:"Daily operating expenses"
- Mock serverhttps://developer.boyahq.com/_mock/v2/openapi/accounts/add-new-account
- Productionhttps://api.boyahq.com/v2/accounts/add-new-account
- Sandboxhttps://sandbox.api.boyahq.com/v2/accounts/add-new-account
curl -i -X POST \
https://developer.boyahq.com/_mock/v2/openapi/accounts/add-new-account \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'business_id: string' \
-H 'org_wallet_ref: string' \
-d '{
"currency": "USD",
"walletType": "PETTYCASH",
"name": "KES Petty Cash",
"description": "Daily operating expenses",
"owners": [
"string"
]
}'Account created successfully
Whether a new currency record was provisioned as part of this request
Example:false
Response
{ "status": true, "message": "Account created successfully", "currencyCreated": false, "wallet": { "_id": "64f1c2a5e2e2a9001f3b8e7c", "walletId": "123456", "wallet_type": "PETTYCASH", "currency": "USD", "org_wallet_ref": "2", "description": "Daily operating expenses" } }