Create application
Create the case and generate the tasks for every applicant that carries a category.
Creates the application and, for each applicant carrying a primaryIncome, generates that
member's tasks from your organisation's templates for that category.
Body
| Field | Type | Required | Description |
|---|---|---|---|
reference | string | required | Your case id, and the id every later request uses. Unique per organisation. Letters, digits, dot, underscore and hyphen only, no spaces. |
applicants | array | required | At least one applicant. Tasks are generated from a member's category, so a case created without one could never have any work on it. |
name | string | optional | Application or borrower name. Defaults to the reference. |
initials | string | optional | Avatar initials. Derived from name when omitted. |
loanType | string | optional | For example LAP, Business Loan. |
amount | string | optional | Loan amount, for example "500000". |
branchId | string | optional | The branch the case belongs to, which controls who can see it. Accepts a branch id or the branch code your existing integration already sends. |
Applicant object
| Field | Required | Description |
|---|---|---|
name | required | Borrower name. |
primaryIncome | optional | The income source category. This is what generates the member's tasks. An applicant without one is created with no work under them. |
role | optional | Applicant (primary) or Co-borrower. |
phone | optional | Ten digit mobile. A leading +91 or 0 is fine. |
otherIncomes | optional | Additional categories, as a string array. |
email | optional | Email address. |
entityType | optional | individual, proprietorship, partnership or company. |
dob | optional | Date of birth, DD/MM/YYYY. |
idType / idNumber | optional | PAN, Aadhaar, Passport and the number. |
address, city, state, pincode | optional | Borrower address. |
Example
curl -X POST "$BASE/applications" \
-H "api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{
"reference": "LOAN-2026-0007",
"name": "Ramesh Traders",
"loanType": "Business Loan",
"amount": "500000",
"branchId": "TN003",
"applicants": [
{
"name": "Ramesh Kumar",
"role": "Applicant",
"phone": "9000000001",
"primaryIncome": "Self Employed",
"email": "ramesh@example.com",
"entityType": "individual",
"dob": "01/06/1985",
"idType": "PAN",
"idNumber": "ABCDE1234F",
"address": "12 MG Road, Sector 4",
"city": "Bengaluru",
"state": "Karnataka",
"pincode": "560001"
}
]
}'Response 201 Created
The created case with its task graph: the members, the task nodes with their status and assignee, the edges between them, and the combined report node.
{
"id": "LOAN-2026-0007",
"case": {
"id": "LOAN-2026-0007",
"name": "Ramesh Traders",
"loanType": "Business Loan",
"amount": "500000",
"combinedInference": null,
"completed": false
},
"members": [
{ "id": "member:...", "entityId": "...", "name": "Ramesh Kumar", "role": "Applicant",
"primaryIncome": "Self Employed" }
],
"nodes": [
{ "id": "...", "kind": "physical_pd", "title": "Physical PD", "status": "todo",
"assigneeId": null }
],
"edges": [{ "source": "member:...", "target": "...", "kind": "member-task" }],
"combined": { "id": "combined:LOAN-2026-0007", "kind": "report", "status": "pending" }
}Check nodes on the response. An empty array means no tasks were generated, which almost always
means the primaryIncome you sent is not one of your configured categories.
Validation
Phone and amount are validated the same way the AbleCredit console validates them when a person types them, so bad values are refused at the door rather than discovered months later by someone trying to call the number.
phonemust be ten digits. A country code or a trunk zero is fine, so+91 90000 04697and9000004697are the same number. Eleven arbitrary digits is a typo and is refused rather than truncated.amountmay contain digits, commas and periods.
Every problem comes back in one response, keyed by applicant index, rather than one per round trip:
{
"error": "validation_failed",
"detail": [
{ "field": "applicants[0].phone", "value": "123", "message": "mobile must be a 10-digit number" },
{ "field": "amount", "value": "-5abc", "message": "amount can only contain digits, commas and periods" }
]
}Errors
| Status | Code | When |
|---|---|---|
| 400 | missing_reference | No reference in the body. The response lists the keys it did receive. |
| 400 | bad_case_id | The reference contains something other than letters, digits, dot, underscore or hyphen. |
| 400 | no_applicants | No applicants were sent. Add them here, or later with Add applicant. |
| 400 | validation_failed | One or more fields failed validation. See detail. |
| 400 | category_not_found | The primaryIncome is not a configured category. The response carries allowed, so the mismatch is self diagnosing. |
| 409 | reference_exists | An application with that reference already exists in your organisation. |