- Send OtpPOST
- Submit OtpPOST
- Create RunnerPOST
- PAN or GSTPOST
- Business InfoPOST
- ShareholdersPOST
- Business Extraa InfoPOST
- Business Assest DetailPOST
- Applicant ListGET
- Submit ApplicationPOST
- Set Current ApplicantPOST
- Document uploadPOST
- Get DocumentGET
- Applicant Pan , Aadhaar and MobilePOST
- Applicant Extraa InfoPOST
- Applicant Bank DetailsPOST
- Signing FormPOST
Shareholders
Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/v1/rego/runners/{runner_id}/execute/
Last modified:2025-03-06 05:24:50
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
runner_id
string
required
Example:
{{runner_id}}
Body Params application/json
action
string
required
data
object
required
applicants
array [object {5}]
required
number_of_shareholders
string
required
Example
{
"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"
}
]
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
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"
}
]
}
}'
Responses
🟢200Success
application/json
Body
id
string
required
created_at
string
required
updated_at
string
required
created_by
string
required
ref_id
string
required
flow_id
string
required
design_id
string
required
params
object
required
storage
object
required
current_node
string
required
store_id
string
required
visited_nodes
object
required
_cls
string
required
store_info
object
required
data
object
required
applicants
array [object {5}]
required
number_of_shareholders
string
required
node
object
required
name
string
required
type
string
required
config
object
required
navigations
array [object {2}]
required
Example
{
"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"
}
]
}
}