Create new accounts, update existing ones, or withdraw accounts from the collection portfolio
| Environment | Base URL |
|---|---|
| Production | https://v3-api.cleargrid.ai/admin/v3 |
| Staging | https://stage-v3-api.cleargrid.ai/admin/v3 |
Bearer <access_token>accounts array. Each item represents an account or sub-account to create, update, or withdraw.
What is an accountId?
accountId represents the main account or primary contract with a debtor. For example, a mobile phone purchase from an online store would be a single accountId. All related financial obligations (installments, fees) are grouped under this identifier.What is a subAccountId?
subAccountId represents an individual obligation or installment under the main account. Each installment or fee is tracked as a unique subAccountId, enabling itemized tracking of payments and dues. For example, a 4-installment BNPL plan would have 4 sub-accounts under one accountId.How does the status field work?
status field controls the operation:| Status | Operation | Use Case |
|---|---|---|
1 | Create | Onboarding a new account or sub-account |
2 | Update | Reflecting a payment, fee adjustment, or data correction |
3 | Withdraw | Removing or cancelling an account/sub-account |
1: Create account with principal of 100, paidAmount of 02: Update with paidAmount of 30 (balance becomes 70)2: Update with paidAmount of 50 (balance becomes 50)Dynamic sub-account management
subAccountId, which enables flexible real-time updates:accountId aggregate (outstanding balance, status, etc.)dd/MM/yyyy format (e.g., 15/03/2026).ARE for UAE, SAU for Saudi Arabia, BHR for Bahrain).additionalData object.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Lender public ID (UUID) returned by the Lender Login endpoint.
Array of account objects to create, update, or withdraw.