Prerequisites
Before you begin, make sure you have:
- An active sandbox account
- API keys (
x-client-idandx-api-key)
Entity types
When creating a subaccount, you specify the entity type:Onboarding flow
1
Create the subaccount
Call Create SubAccount with the entity data and entity type. You do not select a business line in this request.A successful response returns the new account details:Key fields in the response:
2
Handle the initial response
The account does not become active immediately. After creation:
statusisPROCESSING— the account is created but not yet usable.verification_statusisPENDING— identity or business verification is in progress.
account_id for later use. You do not need to poll — use webhooks to receive status updates.3
Listen for webhook notifications
UQPAY sends webhook events as the account moves through verification:
Configure your webhook endpoint in the dashboard. See Webhooks Setting for setup instructions.
Account status lifecycle
After creation, a subaccount moves through two parallel status dimensions:status
Tracks whether the account is operational:
verification_status
Tracks the outcome of identity or business verification:
The
accountStatus webhook delivers the rejected and returned states as REJECTED
and RETURNED (rather than REJECT / RETURN). See
Account Status webhook.Next steps
Connected Accounts
Make API requests on behalf of your subaccounts using the
x-on-behalf-of header.Create SubAccount API
Full parameter reference for the Create SubAccount endpoint.
Account Status webhook
Event payload reference for
onboarding.account.create and onboarding.account.update.
