Send Accounts
📂 Accounts API
POST {api_base_url}/lenders/{lenderPublicId}/accountsAuthorization: Bearer <access_token>
Content-Type: application/json{
{
"accounts": [
{
"status": 1,
"debtorCompanyId": "debtor_company_id",
"firstName": "first_name",
"lastName": "last_name",
"language": "en",
"idNumber": "emirates_id/Saudi NationalId",
"passportNumber": "passport_number",
"birthDate": "birth_date",
"gender": "male",
"nationality": "",
"phones": [
{
"number": "*********",
"type": "work"
}
],
"emails": [
{
"email": "[email protected]",
"type": null
}
],
"addresses": [
{
"externalId": "external_uuid",
"street": null,
"city": null,
"area": null,
"zip": null,
"country": "three_characters_country", // eg UAE
"type": null
}
],
"accountId": "unique_account_id",
"subAccountId": "unique_sub_account_id_1",
"merchant": "merchant",
"dateDue": "due_date",
"principal": "principal_amount",
"interest": "interest_amount",
"fees": "fees",
"paidAmount": "paid_amount",
"paidDate": "paid_date",
"additionalData": {
"productType": "product_type",
"purpose": null,
.
.
.
},
"loanType":1
},
{
"status": 1,
"debtorCompanyId": "debtor_company_id",
"firstName": "first_name",
"lastName": "last_name",
"language": "en",
"emiratesId": "emirates_id",
"passportNumber": "passport_number",
"birthDate": "birth_date",
"gender": "male",
"nationality": "",
"phones": [
{
"number": "*********",
"type": "work"
}
],
"emails": [
{
"email": "[email protected]",
"type": null
}
],
"addresses": [
{
"externalId": "external_uuid",
"street": null,
"city": null,
"area": null,
"zip": null,
"country": "three_characters_country", // eg UAE
"type": null
}
],
"accountId": "unique_account_id",
"subAccountId": "unique_sub_account_id_2",
"merchant": "merchant",
"dateDue": "due_date",
"principal": "principal_amount",
"interest": "interest_amount",
"fees": "fees",
"paidAmount": "paid_amount",
"paidDate": "paid_date",
"additionalData": {
"productType": "product_type",
"purpose": null,
.
.
.
},
"loanType":1
}
]
}
Details
Dynamic Handling of Sub-Accounts
❌ Error Codes
Code
Message
Meaning
🛠 Best Practices
Last updated
