Create Application
Create one or more applications in a single atomic request – all succeed or all fail together. Pass an array of application objects under applications.
POST/api/v3/partners/applications
Try it in the playgroundPOST /api/v3/partners/applications
Body – per application object
| Field | Required | Description |
|---|---|---|
reference_id | required | Your system's application identifier |
applicant_id | required | Applicant identifier |
applicant_type | required | primary or co_applicant. Co-applicant needs a primary with the same reference_id to exist first. |
persona | required | Persona name from your org – see List Personas |
data | required | Form section data keyed by form name |
user | required | At least one of employee_id, mobile, email_id |
branch.id | required | Unique branch identifier. Creates if not exists. |
branch.name / city / state / address / latitude / longitude | optional | Branch metadata |
source_system | optional | Originating system name e.g. los, crm |
Example – single primary
curl -X POST "<BASE_URL>/api/v3/partners/applications" \
-H "api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"applications": [
{
"reference_id": "REF-001",
"applicant_id": "APP-001",
"applicant_type": "primary",
"persona": "msme",
"source_system": "los",
"user": { "mobile": "1234567890" },
"branch": { "id": "BR-01", "name": "Delhi Branch", "city": "Delhi", "state": "Delhi" },
"data": {
"business_profile": { "persona": "msme" },
"borrower_details": { "entity_type": "individual", "name": "Ravi Kumar", "mobile": "9876543210" },
"loan_details": { "business_name": "Ravi Retail Mart", "quantum": 250000, "tenure": 36 }
}
}
]
}'Example – primary + co-applicant + co-borrower
curl -X POST "<BASE_URL>/api/v3/partners/applications" \
-H "api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"applications": [
{
"reference_id": "LOAN001",
"applicant_id": "APPL-1",
"applicant_type": "primary",
"persona": "msme",
"source_system": "los",
"user": { "mobile": "1234567890" },
"branch": { "id": "BR-01", "name": "Mumbai Branch", "city": "Mumbai", "state": "Maharashtra" },
"data": {
"business_profile": { "persona": "msme" },
"borrower_details": { "entity_type": "individual", "name": "Ravi Kumar", "mobile": "9876543210" },
"loan_details": { "business_name": "Ravi Retail Mart", "quantum": 250000, "tenure": 36 }
}
},
{
"reference_id": "LOAN001",
"applicant_id": "APPL-2",
"applicant_type": "co_applicant",
"persona": "msme",
"source_system": "los",
"user": { "mobile": "1234567890" },
"branch": { "id": "BR-01" },
"data": {
"business_profile": { "persona": "msme" },
"borrower_details": { "entity_type": "individual", "name": "Sunita Sharma", "mobile": "9123456780" },
"loan_details": { "business_name": "Sunita Textiles", "quantum": 400000, "tenure": 48 }
}
},
{
"reference_id": "LOAN002",
"applicant_id": "APPL-3",
"applicant_type": "primary",
"persona": "msme",
"source_system": "los",
"user": { "mobile": "1234567890" },
"branch": { "id": "BR-02", "name": "Delhi Branch", "city": "Delhi", "state": "Delhi" },
"data": {
"business_profile": { "persona": "msme" },
"borrower_details": { "entity_type": "individual", "name": "Amit Verma", "mobile": "9988776655" },
"loan_details": { "business_name": "Amit IT Solutions", "quantum": 300000, "tenure": 24 },
"co_borrower_details": [
{ "name": "Manoj Verma", "dob": "01/01/1998", "relation": "Father", "gender": "Male", "occupation": "Salary" }
]
}
}
]
}'Response
{
"status": 200,
"code": "success",
"data": {
"applications": [
{
"_id": "AC240912ABC",
"id": "AC240912ABC",
"org_id": "<ORG_ID>",
"reference_id": "LOAN001",
"applicant_id": "APPL-42",
"applicant_type": "primary",
"persona": "msme",
"status": "created",
"source_system": "los",
"visit_closed_at": null,
"rejected_reason": null,
"rejected_at": null,
"reports_named": null,
"assets_url": null,
"data": {
"business_profile": { "persona": "msme" },
"borrower_details": { "entity_type": "individual", "name": "Ravi Kumar", "mobile": "9876543210" },
"loan_details": { "business_name": "Ravi Retail Mart", "quantum": 250000, "tenure": 36 }
},
"form_data": {
"business_profile": { "persona": "msme", "industry": "General Store & Kirana" },
"borrower_details": { "name": "Ravi Kumar", "mobile": "9876543210", "dob": "15/01/1985" },
"loan_details": { "quantum": 250000, "loan_tenure_in_months": 36, "purpose": "Business Expansion" }
},
"ai_output": null
}
]
}
}Errors
| HTTP | Code | Reason |
|---|---|---|
403 | persona/not-found | Persona not configured for this org |
403 | form/not-found | Required form not configured for the persona |
403 | form/invalid-data | Form field value failed validation |
403 | application/already-exists | Duplicate reference_id + applicant_id |
403 | user/not-found | No active user matched |
403 | user/not-assigned-to-branch | User does not have access to this branch |
403 | application/primary-not-found | co_applicant submitted before primary exists |