Authorization: Bearer ********************
{
"action": "submit",
"data": {
"applicants": [
{
"name": "Ashutosh Sharma",
"tags": [
"Authorised Signatory"
],
"applicant_type": "applicant"
},
{
"name": "Pankaj Singh",
"tags": [
"Shareholder"
],
"applicant_type": "CoApp1",
"relation_with_primary_applicant": "Friend",
"share_holder": "23"
}
]
}
}
curl --location -g --request POST 'https://preprod.api.crego.io/v1/rego/runners/{{runner_id}}/execute/' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": "submit",
"data": {
"applicants": [
{
"name": "Ashutosh Sharma",
"tags": [
"Authorised Signatory"
],
"applicant_type": "applicant"
},
{
"name": "Pankaj Singh",
"tags": [
"Shareholder"
],
"applicant_type": "CoApp1",
"relation_with_primary_applicant": "Friend",
"share_holder": "23"
}
]
}
}'
{
"id": "c296a37d-f11d-4d32-bff8-5824a1af5ed9",
"created_at": "2025-03-05T13:38:23.683000",
"updated_at": "2025-03-06T05:23:23.666675",
"created_by": "7880340889",
"ref_id": "RUNNER-253-647",
"flow_id": "264500a4-3873-4cb7-baf9-0a4656bff933",
"design_id": "234ee7a1-6940-49f1-bd7e-d23f1b2625d0",
"params": {
"storage": {
"vendor": "${SECRET.storage.vendor}",
"creds_key": "test_storage_s3_creds"
}
},
"current_node": "business_extraa_info",
"store_id": "52bcdaf3-6e98-4647-9eb3-acac6dd1d516",
"visited_nodes": {
"_cls": "Activity"
},
"store_info": {},
"data": {
"applicants": [
{
"name": "Ashutosh Sharma",
"tags": [
"Authorised Signatory"
],
"applicant_type": "applicant",
"relation_with_primary_applicant": "Friend",
"share_holder": "12"
}
],
"number_of_shareholders": "1"
},
"node": {
"name": "business_extraa_info",
"type": "web_form",
"config": {
"forms": [
{
"action": "submit",
"form_data": {
"service_type": "",
"extraa_details": "",
"loan_request": ""
},
"schema": {
"type": "object",
"properties": {
"service_type": {
"type": "object",
"title": "Business Information",
"properties": {
"business_type": {
"type": "string",
"title": "Business Type",
"enum": [
"MANUFACTURING",
"SERVICES",
"TRADING"
]
},
"sector": {
"type": "string",
"title": "Sector",
"enum": [
"AGRICULTURE",
"APPAREL",
"AUTO COMPONENTS",
"AUTOMOBILES"
]
},
"sub_sector": {
"type": "string",
"title": "Sub-Sector"
}
},
"dependencies": {
"sector": {
"oneOf": [
{
"properties": {
"sector": {
"enum": [
"AGRICULTURE"
]
},
"sub_sector": {
"enum": [
"NATURAL FODDER",
"TOBACCO",
"ORGANIC / BIODEGRADABLE PRODUCTS"
]
}
}
},
{
"properties": {
"sector": {
"enum": [
"APPAREL"
]
},
"sub_sector": {
"enum": [
"ETHNIC WEAR",
"KNITWEAR",
"CLOTH MATERIALS"
]
}
}
}
]
}
}
},
"extraa_details": {
"type": "object",
"title": "Business Extraa Information",
"properties": {
"current_stock": {
"type": "string",
"title": "Current Stock"
},
"no_of_male_employee": {
"type": "number",
"title": "No of male employees"
},
"no_of_female_employee": {
"type": "number",
"title": "No of female employees"
},
"key_customers": {
"type": "string",
"title": "Who are your key customers?"
},
"business_vintage": {
"type": "number",
"title": "Business Vintage"
},
"monthly_turnover": {
"type": "number",
"title": "Monthly Turnover"
}
}
},
"loan_request": {
"type": "object",
"title": "Loan Details Request",
"properties": {
"loan_amount": {
"type": "number",
"title": "Loan Amount",
"minimum": 50000,
"maximum": 500000
},
"loan_purpose": {
"type": "string",
"title": "Loan Purpose",
"enum": [
"raw material",
"machine purchase",
"machine repair",
"business poremises renovation",
"general business expenses",
"supplier/buyer payment",
"product/market expansion"
]
}
},
"required": [
"loan_amount",
"loan_purpose"
]
}
},
"required": [
"service_type",
"loan_request",
"extraa_details"
]
}
}
]
},
"navigations": [
{
"action_name": "Shareholders",
"target_node": "shareholders"
}
]
}
}