Create Sub-account
This endpoint helps to create sub-accounts for a customer. The endpoint requires the main account ID to create a sub-account under it.
Authorizations
Requires authentication via API key and HMAC signature.
x-api-key: Your API key generated from your Onboard Business dashboard.x-timestamp: Unix epoch timestamp (seconds) used in signature, allowed skew is 30 secondsx-signature: SHA256 HMAC HEX signature calculated overt={x-timestamp}&{requestBody}using your API Secret.
Body
Sub-account creation request
Request to create a sub-account under a main account.
The main account ID under which the sub-account will be created.
A unique reference for the sub-account. This must be unique across all sub-accounts.
6 - 36^[a-zA-Z0-9_-]{6,36}$An optional name for the sub-account.
Response
Sub-account created Successfully
Unique sub-account ID
The main account ID to which this sub-account belongs.
A unique reference for the sub-account.
Currency of the sub-account
"USD"
Account balance details
Indicates if the sub-account is frozen (locked) or not.
The date the sub-account was created.
An optional name for the sub-account.