Reserved Accounts
Reserved accounts create dedicated collection accounts for existing customers. The business must have reserved account access enabled.
Create Reserved Account
Create or fetch a customer first, then use the returned customer_code:
const account = await client.reservedAccounts.create({
customer_code: 'CUS_...',
provider: 'netbank'
});Request fields:
| Field | Required | Notes |
|---|---|---|
customer_code | Yes | Must belong to the authenticated business. |
provider | No | Defaults to netbank when omitted. |
otp | No | Six digits when a provider flow requires OTP. |
If the customer code is invalid, the API returns HTTP 401 with:
{
"status": false,
"message": "Invalid Customer Code"
}List Reserved Accounts
const accounts = await client.reservedAccounts.retrieveAll({ page: 1, limit: 20 });Supported query fields: page and limit.
Retrieve One Reserved Account
const account = await client.reservedAccounts.retrieveOne('reserved_account_id');Retrieve Reserved Account Transactions
const transactions = await client.reservedAccounts.transactions('reserved_account_id', 0);Get Providers
const providers = await client.reservedAccounts.accountProviders();Recommended Flow
- Create or fetch the customer.
- Create the reserved account using
customer_code. - Store the returned account ID and account number.
- Listen for collection webhooks.
- Verify related transactions before crediting the customer in your own system.
Last updated on