cURL Examples
Common request patterns. Click to expand and copy curl code.
Co-Applicants Explained
Co-applicants are additional borrowers linked to a single loan application using the same reference_id. You can add co-applicants in two ways:
- Atomic Request: Create a primary applicant and one or more co-applicants in a single API call. All succeed or all fail together.
- Sequential Addition: Create a primary applicant first, then add co-applicants later using separate API calls with the same reference_id. Each co-applicant must reference an existing primary.
Key requirements:
- Each co-applicant must have a unique applicant_id
- All applicants share the same reference_id
- A co-applicant cannot be created before its primary applicant exists
- Each applicant is identified by their unique applicant_id combination
Create a primary application including basic borrower information.
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": "9876543210" },
"branch": { "id": "BR-01", "name": "Delhi Branch", "city": "Delhi", "state": "Delhi" },
"data": {
"business_profile": {
"product": "LAP",
"persona": "credit-lap-trading",
"industry": "General Store & Kirana"
},
"borrower_details": {
"entity_type": "individual",
"name": "Ravi Kumar",
"mobile": "9876543210",
"email": "ravi@example.com",
"dob": "15/01/1985"
}
}
}
]
}'Create an application with complete loan information including quantum, tenure, and business details.
curl -X POST "<BASE_URL>/api/v3/partners/applications" \
-H "api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"applications": [
{
"reference_id": "REF-002",
"applicant_id": "APP-002",
"applicant_type": "primary",
"persona": "msme",
"source_system": "los",
"user": { "mobile": "8765432109" },
"branch": { "id": "BR-02", "name": "Mumbai Branch", "city": "Mumbai", "state": "Maharashtra" },
"data": {
"business_profile": {
"product": "Unsecured",
"persona": "credit-unsecured-trading",
"industry": "Mobiles & Electronics"
},
"borrower_details": {
"entity_type": "individual",
"name": "Priya Singh",
"mobile": "8765432109",
"email": "priya@example.com",
"dob": "22/06/1990"
},
"loan_details": {
"date_of_incorporation": "15/03/2019",
"sole_owner": "No",
"constitution": "Private Limited",
"quantum": 500000,
"loan_tenure_in_months": 48,
"purpose": "Business Expansion"
}
}
}
]
}'Create an application with co-borrower information including their name, date of birth, relation, and occupation.
curl -X POST "<BASE_URL>/api/v3/partners/applications" \
-H "api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"applications": [
{
"reference_id": "REF-003",
"applicant_id": "APP-003",
"applicant_type": "primary",
"persona": "msme",
"source_system": "los",
"user": { "mobile": "9988776655" },
"branch": { "id": "BR-03", "name": "Bangalore Branch", "city": "Bangalore", "state": "Karnataka" },
"data": {
"business_profile": {
"product": "LAP",
"persona": "credit-lap-manufacturing",
"industry": "Hardware & Light Machinery"
},
"borrower_details": {
"entity_type": "individual",
"name": "Amit Patel",
"mobile": "9988776655",
"email": "amit@example.com",
"dob": "10/05/1988"
},
"loan_details": {
"date_of_incorporation": "20/08/2018",
"sole_owner": "No",
"constitution": "Partnership",
"quantum": 750000,
"loan_tenure_in_months": 60,
"purpose": "Equipment Purchase"
},
"co_borrower_details": [
{
"name": "Rajesh Patel",
"dob": "15/12/1987",
"relation": "Brother",
"gender": "Male",
"occupation": "Self-Employed"
},
{
"name": "Neha Patel",
"dob": "22/03/1992",
"relation": "Sister",
"gender": "Female",
"occupation": "Business Partner"
}
]
}
}
]
}'Create a primary applicant and two co-applicants in a single atomic request. All three applicants share the same reference_id but have unique applicant_ids.
curl -X POST "<BASE_URL>/api/v3/partners/applications" \
-H "api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"applications": [
{
"reference_id": "REF-004",
"applicant_id": "APP-004",
"applicant_type": "primary",
"persona": "credit-lap-trading",
"source_system": "los",
"user": { "mobile": "9111111111" },
"branch": { "id": "BR-04", "name": "Chennai Branch", "city": "Chennai", "state": "Tamil Nadu" },
"data": {
"business_profile": {
"product": "LAP",
"persona": "credit-lap-trading",
"industry": "Fashion Apparel"
},
"borrower_details": {
"entity_type": "individual",
"name": "Vikram Kumar",
"mobile": "9111111111",
"email": "vikram@example.com",
"dob": "05/07/1985"
},
"loan_details": {
"date_of_incorporation": "10/05/2017",
"sole_owner": "No",
"constitution": "Partnership",
"quantum": 600000,
"loan_tenure_in_months": 48,
"purpose": "Working Capital"
}
}
},
{
"reference_id": "REF-004",
"applicant_id": "APP-005",
"applicant_type": "co_applicant",
"persona": "credit-lap-trading",
"source_system": "los",
"user": { "mobile": "9111111111" },
"branch": { "id": "BR-04" },
"data": {
"business_profile": {
"product": "LAP",
"persona": "credit-lap-trading",
"industry": "Fashion Apparel"
},
"borrower_details": {
"entity_type": "individual",
"name": "Divya Sharma",
"mobile": "9222222222",
"email": "divya@example.com",
"dob": "18/09/1987"
},
"loan_details": {
"date_of_incorporation": "10/05/2017",
"sole_owner": "No",
"constitution": "Partnership",
"quantum": 600000,
"loan_tenure_in_months": 48,
"purpose": "Working Capital"
}
}
},
{
"reference_id": "REF-004",
"applicant_id": "APP-006",
"applicant_type": "co_applicant",
"persona": "credit-lap-trading",
"source_system": "los",
"user": { "mobile": "9111111111" },
"branch": { "id": "BR-04" },
"data": {
"business_profile": {
"product": "LAP",
"persona": "credit-lap-trading",
"industry": "Fashion Apparel"
},
"borrower_details": {
"entity_type": "individual",
"name": "Suresh Verma",
"mobile": "9333333333",
"email": "suresh@example.com",
"dob": "25/11/1986"
},
"loan_details": {
"date_of_incorporation": "10/05/2017",
"sole_owner": "No",
"constitution": "Partnership",
"quantum": 600000,
"loan_tenure_in_months": 48,
"purpose": "Working Capital"
}
}
}
]
}'Day 1: Create the primary applicant. Co-applicant will be added in a separate request after a few days with the same reference_id.
curl -X POST "<BASE_URL>/api/v3/partners/applications" \
-H "api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"applications": [
{
"reference_id": "REF-005",
"applicant_id": "APP-007",
"applicant_type": "primary",
"persona": "credit-unsecured-manufacturing",
"source_system": "crm",
"user": { "mobile": "9444444444" },
"branch": { "id": "BR-05", "name": "Hyderabad Branch", "city": "Hyderabad", "state": "Telangana" },
"data": {
"business_profile": {
"product": "Unsecured",
"persona": "credit-unsecured-manufacturing",
"industry": "Hardware & Light Machinery"
},
"borrower_details": {
"entity_type": "individual",
"name": "Mohan Singh",
"mobile": "9444444444",
"email": "mohan@example.com",
"dob": "12/02/1984"
},
"loan_details": {
"date_of_incorporation": "01/06/2016",
"sole_owner": "Yes",
"constitution": "Proprietorship",
"quantum": 400000,
"loan_tenure_in_months": 36,
"purpose": "Raw Material Purchase"
}
}
}
]
}'Day 5: Add a co-applicant to the existing LOAN005 primary applicant using the same reference_id. The co-applicant gets a new unique applicant_id.
curl -X POST "<BASE_URL>/api/v3/partners/applications" \
-H "api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"applications": [
{
"reference_id": "REF-005",
"applicant_id": "APP-008",
"applicant_type": "co_applicant",
"persona": "credit-unsecured-manufacturing",
"source_system": "crm",
"user": { "mobile": "9444444444" },
"branch": { "id": "BR-05" },
"data": {
"business_profile": {
"product": "Unsecured",
"persona": "credit-unsecured-manufacturing",
"industry": "Hardware & Light Machinery"
},
"borrower_details": {
"entity_type": "individual",
"name": "Anjali Nair",
"mobile": "9555555555",
"email": "anjali@example.com",
"dob": "30/08/1989"
},
"loan_details": {
"date_of_incorporation": "01/06/2016",
"sole_owner": "Yes",
"constitution": "Proprietorship",
"quantum": 400000,
"loan_tenure_in_months": 36,
"purpose": "Raw Material Purchase"
}
}
}
]
}'Reject an application that is in created status. Provide the reason for rejection.
curl -X POST "<BASE_URL>/api/v3/partners/applications/reject" \
-H "api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"reference_id": "REF-001",
"applicant_id": "APP-001",
"rejected_reason": "Applicant does not meet minimum income eligibility criteria"
}'Update form section data on an existing application in created status. All sections are rebuilt from the provided persona and data.
curl -X POST "<BASE_URL>/api/v3/partners/applications/update" \
-H "api-key: <API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"reference_id": "REF-002",
"applicant_id": "APP-002",
"persona": "credit-lap-trading",
"data": {
"business_profile": {
"product": "LAP",
"persona": "credit-lap-trading",
"industry": "General Store & Kirana"
},
"borrower_details": {
"entity_type": "individual",
"name": "Priya Singh",
"mobile": "8765432109",
"email": "priya.singh@example.com",
"dob": "22/06/1990"
},
"loan_details": {
"date_of_incorporation": "10/02/2019",
"sole_owner": "Yes",
"constitution": "Proprietorship",
"quantum": 600000,
"loan_tenure_in_months": 48,
"purpose": "Business Expansion"
}
}
}'