Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Design
  • Back to home
  • Flow
  • Design
    • Create Design
      POST
    • List Designs
      GET
    • Update Design
      PUT
    • Get Design
      GET
    • Mark as Current Design
      PUT
    • Duplicate Design
      POST
    • Get Expanded Design
      GET
    • Graph Validation
      GET
  • Runner
    • Create Runner
      POST
    • Execute Runner
      POST
    • Get Runner
      GET
    • List Runners
      GET
    • Runner Callback Handler
      POST
    • Runner activity
      GET
    • Runner Store
      GET
    • Update Runner design
      PUT
    • Update Store
      PUT
    • No Auth Runner Flow info
      GET
    • Parse Template
      POST
    • Get Current Nodes
      GET
    • Create and Execute Runner
      POST
  • Customer Auth
    • Refresh Token
      POST
    • Send OTP
      POST
    • Verify OTP
      POST
    • Auth Ping
      GET
    • Exchange Token
      POST
  • Utility
    • Get Schema
  • Warehouse
  • Store
    • Get Store
    • List Store
    • Create Store
  • Document
    • Create Document
    • Get Storage Document
    • Add files to document
    • Download files
  • CheckList
    • CheckList Template
      • Create Checklist Template
      • Get CheckList Template
      • List CheckList Template
      • Update CheckList Template
      • Delete CheckList Template
    • Workflow CheckList
      • Get checklist at runner stage
      • Update Check List Item
  • Approvals
    • Approval List
    • Pending Approval
    • Create Approvals
    • Get Approval
    • Update Approvals
    • Current user approval list
    • Get approval request by resource
    • Approve approval
    • Reject Approval
  1. Design

Create Design

Developing
preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
POST
/v1/rego/designs/
Last modified:2024-12-03 08:27:48

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
flow_id
string <uuid>
Flow ID
required
Globally unique identifier for the specific instance of the flow.
Example:
123e4567-e89b-12d3-a456-426614174001
secret_id
string <uuid>
required
is_current
boolean 
Is Current
required
Indicates if this design is the currently active one.
Examples:
truefalse
graph
object 
Flow Graph
required
Graph structure defining the nodes and edges of the flow.
nodes
array[object (Base Node) {5}] 
Nodes
required
List of nodes in the graph. Each node must be a non-empty string.
Examples:
node1node2node3
edges
$ref(#/definitions/4291925)[]
Edges
optional
Connections between nodes in the graph. Each edge must be a non-empty string.
Examples:
edge1edge2edge3
Could not resolve '#/definitions/4291925'
start_node
string 
Start Node
required
Default starting node in the graph.
Example:
node1
store_schema
object 
Schema Reference
required
Reference to the schema definition for the flow.
Additional properties
integer  | number  | string  | boolean 
optional
Example
{
    "flow_id": "fb3da30b-229e-4726-b805-53a2cc6e5a71",
    "is_current": true,
    "graph": {
        "nodes": [
            {
                "name":"gst_form",
            "type": "web_form",
            "config": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "gst_no": {
                            "type": "string",
                            "title": "GST Number",
                            "pattern": "^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$",
                            "errorMessage": {
                                "pattern": "Please enter a valid GST number in the format: 22AAAAA0000A1Z5"
                            }
                        }
                    },
                    "required": [
                        "gst_no"
                    ]
                },
                "layout": {}
            }
        }
        ],
        "edges": [],
        "start_node": "4c4fa4fe-68d4-4d7e-b293-551a99c64be8"
    },
    "store_schema": {
        "type": "object",
        "properties": {
            "status": {
                "type": "string",
                "description": "Status",
                "enum": [
                    "pending",
                    "kyc_submitted",
                    "kyc_approved",
                    "kyc_rejected",
                    "pending_signing",
                    "signed"
                ]
            },
            "applicant": {
                "$ref": "#/definitions/Person"
            },
            "business": {
                "$ref": "#/definitions/Business"
            },
            "co_applicants": {
                "type": "array",
                "items": {
                    "$ref": "#/definitions/Person"
                },
                "description": "Co-applicants of business"
            }
        },
        "required": [
            "status",
            "applicant",
            "business"
        ],
        "definitions": {
            "Person": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "dob": {
                        "type": "string",
                        "format": "date",
                        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                    },
                    "gender": {
                        "type": "string",
                        "enum": [
                            "male",
                            "female"
                        ]
                    },
                    "pan_no": {
                        "type": "string",
                        "pattern": "[A-Z]{5}[0-9]{4}[A-Z]{1}"
                    },
                    "aadhaar_no": {
                        "type": "string",
                        "pattern": "^[0-9]{12}$"
                    },
                    "mobile": {
                        "type": "string",
                        "pattern": "^[0-9]{10}$"
                    },
                    "email": {
                        "type": "string",
                        "format": "email"
                    },
                    "banks": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Bank"
                        },
                        "description": "Banks of person"
                    },
                    "addresses": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Address"
                        },
                        "description": "Addresses of person"
                    }
                },
                "required": [
                    "mobile",
                    "name"
                ]
            },
            "Business": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Name of business",
                        "maxLength": 100,
                        "minLength": 3,
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "corporation_date": {
                        "type": "string",
                        "format": "date",
                        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                    },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "description": "Email of business",
                        "pattern": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
                    },
                    "overall_vintage_months": {
                        "type": "integer",
                        "maximum": 10000,
                        "minimum": 0
                    },
                    "partner_vintage_months": {
                        "type": "integer",
                        "maximum": 10000,
                        "minimum": 0
                    },
                    "gst": {
                        "type": "string",
                        "description": "GST of business",
                        "pattern": "^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[0-9]{1}[A-Z]{1}[0-9A-Z]{1}$"
                    },
                    "financial_data": {
                        "$ref": "#/definitions/Financial",
                        "description": "Financial Data"
                    },
                    "addresses": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Address"
                        },
                        "description": "Addresses of business"
                    },
                    "banks": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Bank"
                        },
                        "description": "Banks of business"
                    }
                },
                "required": [
                    "name"
                ]
            },
            "Document": {
                "type": "object",
                "properties": {
                    "tags": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9 ]+$"
                        }
                    },
                    "document_id": {
                        "type": "string",
                        "description": "Storage ID of document"
                    },
                    "name": {
                        "type": "string",
                        "description": "Name of document"
                    }
                },
                "required": [
                    "document_id",
                    "name"
                ]
            },
            "Bank": {
                "type": "object",
                "properties": {
                    "ifsc": {
                        "type": "string",
                        "pattern": "^[A-Z]{4}0[A-Z0-9]{6}$",
                        "description": "IFSC code of bank"
                    },
                    "account_no": {
                        "type": "string",
                        "description": "Account number of bank",
                        "pattern": "^[0-9]{9,18}$"
                    },
                    "bank_name": {
                        "type": "string",
                        "description": "Name of bank",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "branch_name": {
                        "type": "string",
                        "description": "Branch name of bank",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "account_holder_name": {
                        "type": "string",
                        "description": "Account holder name of bank",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "statements": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/BankStatement"
                        }
                    },
                    "pdcs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Document"
                        }
                    },
                    "account_type": {
                        "type": "string",
                        "enum": [
                            "saving",
                            "current",
                            "overdraft"
                        ]
                    },
                    "proof": {
                        "$ref": "#/definitions/Document"
                    }
                },
                "required": [
                    "ifsc",
                    "account_no",
                    "account_type"
                ]
            },
            "BankStatement": {
                "type": "object",
                "properties": {
                    "document_id": {
                        "type": "string",
                        "description": "Storage ID of bank statement"
                    },
                    "period": {
                        "type": "object",
                        "properties": {
                            "from_date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                            },
                            "to_date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                            }
                        },
                        "required": [
                            "from_date",
                            "to_date"
                        ]
                    },
                    "transactions": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/BankTransaction"
                        }
                    }
                },
                "required": [
                    "document_id",
                    "transactions"
                ]
            },
            "Address": {
                "type": "object",
                "properties": {
                    "address_line": {
                        "type": "string",
                        "description": "Address line of address",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "city": {
                        "type": "string",
                        "description": "City of address",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "state": {
                        "type": "string",
                        "description": "State of address",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "pincode": {
                        "type": "string",
                        "description": "Pincode of address",
                        "pattern": "^[0-9]{6}$"
                    },
                    "proof": {
                        "$ref": "#/definitions/Document"
                    }
                },
                "required": [
                    "address_line",
                    "city",
                    "state",
                    "pincode"
                ]
            },
            "Financial": {
                "type": "object",
                "properties": {
                    "share_holdings": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string",
                                    "description": "Name of holder"
                                },
                                "shares_number": {
                                    "type": "string",
                                    "description": "Number of shares"
                                },
                                "shares_percentage": {
                                    "type": "string",
                                    "description": "Share Percentage"
                                },
                                "designation": {
                                    "type": "string",
                                    "description": "Designation of holder"
                                }
                            }
                        },
                        "description": "SHARE HOLDINGS"
                    },
                    "financial": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "period": {
                                    "type": "object",
                                    "properties": {
                                        "from": {
                                            "type": "number",
                                            "description": "From Date"
                                        },
                                        "to": {
                                            "type": "number",
                                            "description": "To Date"
                                        }
                                    },
                                    "required": [
                                        "from",
                                        "to"
                                    ],
                                    "description": "For Given Period"
                                },
                                "balance_sheet": {
                                    "type": "object",
                                    "properties": {
                                        "equity": {
                                            "type": "object",
                                            "properties": {
                                                "share_capital": {
                                                    "type": "number",
                                                    "description": "Share Capital"
                                                },
                                                "reserves_surplus": {
                                                    "type": "number",
                                                    "description": "Reserves and Surplus"
                                                },
                                                "other_equity": {
                                                    "type": "number",
                                                    "description": "Other Equity"
                                                },
                                                "total": {
                                                    "type": "number",
                                                    "description": "Total Equity"
                                                }
                                            },
                                            "required": [
                                                "share_capital",
                                                "reserves_surplus",
                                                "other_equity",
                                                "total"
                                            ],
                                            "description": "Equity"
                                        },
                                        "liabilities": {
                                            "type": "object",
                                            "properties": {
                                                "non_current": {
                                                    "type": "object",
                                                    "properties": {
                                                        "long_term_borrowings": {
                                                            "type": "number",
                                                            "description": "Long Term Borrowings"
                                                        },
                                                        "net_deferred_tax_liabilities": {
                                                            "type": "number",
                                                            "description": "Net Deferred Tax Liabilities"
                                                        },
                                                        "other_long_term_borrowings": {
                                                            "type": "number",
                                                            "description": "Other Long Term Liabilities"
                                                        },
                                                        "long_term_provisions": {
                                                            "type": "number",
                                                            "description": "Long Term Provisions"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Non-current Liabilities"
                                                        }
                                                    },
                                                    "required": [
                                                        "long_term_borrowings",
                                                        "net_deferred_tax_liabilities",
                                                        "other_long_term_borrowings",
                                                        "long_term_provisions",
                                                        "total"
                                                    ],
                                                    "description": "Non-current Liabilities"
                                                },
                                                "current": {
                                                    "type": "object",
                                                    "properties": {
                                                        "short_term_borrowings": {
                                                            "type": "number",
                                                            "description": "Short Term Borrowings"
                                                        },
                                                        "trade_payables": {
                                                            "type": "number",
                                                            "description": "Trade Payables"
                                                        },
                                                        "other_current_liabilities": {
                                                            "type": "number",
                                                            "description": "Other Current Liabilities"
                                                        },
                                                        "short_term_provisions": {
                                                            "type": "number",
                                                            "description": "Short Term Provisions"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Current Liabilities"
                                                        }
                                                    },
                                                    "required": [
                                                        "short_term_borrowings",
                                                        "trade_payables",
                                                        "other_current_liabilities",
                                                        "short_term_provisions",
                                                        "total"
                                                    ],
                                                    "description": "Current Liabilities"
                                                },
                                                "total": {
                                                    "type": "number",
                                                    "description": "Total Equity and Liabilities"
                                                }
                                            },
                                            "required": [
                                                "total"
                                            ],
                                            "description": "Liabilities"
                                        },
                                        "assets": {
                                            "type": "object",
                                            "properties": {
                                                "net_fixed": {
                                                    "type": "object",
                                                    "properties": {
                                                        "tangible": {
                                                            "type": "number",
                                                            "description": "Tangible Assets"
                                                        },
                                                        "intangible": {
                                                            "type": "number",
                                                            "description": "Intangible Assets"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Net Fixed Assets"
                                                        }
                                                    },
                                                    "required": [
                                                        "tangible",
                                                        "intangible",
                                                        "total"
                                                    ],
                                                    "description": "Net Fixed Assets"
                                                },
                                                "capital_work_in_progress": {
                                                    "type": "number",
                                                    "description": "Capital Work-in-progress"
                                                },
                                                "non_current": {
                                                    "type": "object",
                                                    "properties": {
                                                        "investments": {
                                                            "type": "number",
                                                            "description": "Non-current Investments"
                                                        },
                                                        "net_deferred_tax": {
                                                            "type": "number",
                                                            "description": "Net Deferred Tax Assets"
                                                        },
                                                        "long_term_loans_and_advances": {
                                                            "type": "number",
                                                            "description": "Long Term Loans and Advances"
                                                        },
                                                        "other": {
                                                            "type": "number",
                                                            "description": "Other Non-current Assets"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Other Non-current Assets"
                                                        }
                                                    },
                                                    "required": [
                                                        "investments",
                                                        "net_deferred_tax",
                                                        "long_term_loans_and_advances",
                                                        "other",
                                                        "total"
                                                    ],
                                                    "description": "Other Non-current Assets"
                                                },
                                                "current": {
                                                    "type": "object",
                                                    "properties": {
                                                        "investments": {
                                                            "type": "number",
                                                            "description": "Current Investments"
                                                        },
                                                        "inventories": {
                                                            "type": "number",
                                                            "description": "Inventories"
                                                        },
                                                        "trade_receivables": {
                                                            "type": "number",
                                                            "description": "Trade Receivables"
                                                        },
                                                        "cash_and_bank_balances": {
                                                            "type": "number",
                                                            "description": "Cash and Bank Balances"
                                                        },
                                                        "short_term_loans_and_advances": {
                                                            "type": "number",
                                                            "description": "Short Term Loans and Advances"
                                                        },
                                                        "other_current_assets": {
                                                            "type": "number",
                                                            "description": "Other Current Assets"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Current Assets"
                                                        }
                                                    },
                                                    "required": [
                                                        "investments",
                                                        "inventories",
                                                        "trade_receivables",
                                                        "cash_and_bank_balances",
                                                        "short_term_loans_and_advances",
                                                        "other_current_assets",
                                                        "total"
                                                    ],
                                                    "description": "Current Assets"
                                                },
                                                "total": {
                                                    "type": "number",
                                                    "description": "Total Assets"
                                                }
                                            },
                                            "required": [
                                                "net_fixed",
                                                "capital_work_in_progress",
                                                "non_current",
                                                "current",
                                                "total"
                                            ],
                                            "description": "Assets"
                                        }
                                    },
                                    "description": "Balance Sheet"
                                },
                                "ratios": {
                                    "type": "object",
                                    "properties": {
                                        "revenue_growth": {
                                            "type": "number",
                                            "description": "Revenue Growth (%)"
                                        },
                                        "gross_profit_margin": {
                                            "type": "number",
                                            "description": "Gross Profit Margin (%)"
                                        },
                                        "operating_profit_margin": {
                                            "type": "number",
                                            "description": "EBITDA Margin (%)"
                                        },
                                        "net_margin": {
                                            "type": "number",
                                            "description": "Net Margin (%)"
                                        },
                                        "return_on_equity": {
                                            "type": "number",
                                            "description": "Return on Equity (%)"
                                        },
                                        "return_on_capital_employed": {
                                            "type": "number",
                                            "description": "Return on Capital Employed (%)"
                                        },
                                        "debt_ratio": {
                                            "type": "number",
                                            "description": "Debt Ratio"
                                        },
                                        "debt_to_equity": {
                                            "type": "number",
                                            "description": "Debt / Equity"
                                        },
                                        "interest_coverage_ratio": {
                                            "type": "number",
                                            "description": "Interest Coverage Ratio"
                                        },
                                        "current_ratio": {
                                            "type": "number",
                                            "description": "Current Ratio"
                                        },
                                        "quick_ratio": {
                                            "type": "number",
                                            "description": "Quick Ratio"
                                        },
                                        "inventory_to_sales": {
                                            "type": "number",
                                            "description": "Inventory / Sales (Days)"
                                        },
                                        "debtors_to_sales": {
                                            "type": "number",
                                            "description": "Debtors / Sales (Days)"
                                        },
                                        "payables_to_sales": {
                                            "type": "number",
                                            "description": "Payables / Sales (Days)"
                                        },
                                        "cash_conversion_cycle": {
                                            "type": "number",
                                            "description": "Cash Conversion Cycle (Days)"
                                        },
                                        "sales_to_net_fixed_assets": {
                                            "type": "number",
                                            "description": "Sales / Net Fixed Assets"
                                        }
                                    },
                                    "required": [
                                        "revenue_growth",
                                        "gross_profit_margin",
                                        "operating_profit_margin",
                                        "net_margin",
                                        "return_on_equity",
                                        "return_on_capital_employed",
                                        "debt_ratio",
                                        "debt_to_equity",
                                        "interest_coverage_ratio",
                                        "current_ratio",
                                        "quick_ratio",
                                        "inventory_to_sales",
                                        "debtors_to_sales",
                                        "payables_to_sales",
                                        "cash_conversion_cycle",
                                        "sales_to_net_fixed_assets"
                                    ],
                                    "description": "Ratios"
                                },
                                "profit_and_loss": {
                                    "type": "object",
                                    "properties": {
                                        "net_revenue": {
                                            "type": "number",
                                            "description": "Net Revenue"
                                        },
                                        "operating_cost": {
                                            "type": "object",
                                            "properties": {
                                                "cost_of_material_consumed": {
                                                    "type": "number",
                                                    "description": "Cost of Materials Consumed"
                                                },
                                                "purchase_of_stock_trade": {
                                                    "type": "number",
                                                    "description": "Purchases of Stock-in-trade"
                                                },
                                                "changes_in_inventories_finished_goods": {
                                                    "type": "number",
                                                    "description": "Changes in Inventories / Finished Goods"
                                                },
                                                "employee_benefit_expense": {
                                                    "type": "number",
                                                    "description": "Employee Benefit Expense"
                                                },
                                                "other_expenses": {
                                                    "type": "number",
                                                    "description": "Other Expenses"
                                                },
                                                "total": {
                                                    "type": "number",
                                                    "description": "Total Operating Cost"
                                                }
                                            },
                                            "required": [
                                                "cost_of_material_consumed",
                                                "purchase_of_stock_trade",
                                                "changes_in_inventories_finished_goods",
                                                "employee_benefit_expense",
                                                "other_expenses",
                                                "total"
                                            ],
                                            "description": "Operating Cost"
                                        },
                                        "operating_profit": {
                                            "type": "number",
                                            "description": "Operating Profit (EBITDA)"
                                        },
                                        "other_income": {
                                            "type": "number",
                                            "description": "Other Income"
                                        },
                                        "depreciation_and_amortization_expense": {
                                            "type": "number",
                                            "description": "Depreciation and Amortization Expense"
                                        },
                                        "profit_before_interest_and_tax": {
                                            "type": "number",
                                            "description": "Profit Before Interest and Tax"
                                        },
                                        "finance_cost": {
                                            "type": "number",
                                            "description": "Finance Costs"
                                        },
                                        "profit_before_tax_and_exceptional_items_before_tax": {
                                            "type": "number",
                                            "description": "Profit Before Tax and Exceptional Items Before Tax"
                                        },
                                        "exceptional_items_before_tax": {
                                            "type": "number",
                                            "description": "Exceptional Items Before Tax"
                                        },
                                        "profit_before_tax": {
                                            "type": "number",
                                            "description": "Profit Before Tax"
                                        },
                                        "income_tax": {
                                            "type": "number",
                                            "description": "Income Tax"
                                        },
                                        "profit_for_period_from_continuing_operations": {
                                            "type": "number",
                                            "description": "Profit for the Period from Continuing Operations"
                                        },
                                        "profit_from_discontinuing_operation_after_tax": {
                                            "type": "number",
                                            "description": "Profit from Discontinuing Operations After Tax"
                                        },
                                        "profit_for_period": {
                                            "type": "number",
                                            "description": "Profit for the Period"
                                        }
                                    },
                                    "description": "Profit & Loss"
                                }
                            }
                        },
                        "description": "Financial Data"
                    }
                }
            },
            "BankTransaction": {
                "narration": {
                    "type": "string",
                    "description": "Narration of transaction"
                },
                "debit_amount": {
                    "type": "number",
                    "description": "Debit amount of transaction",
                    "minimum": 0
                },
                "credit_amount": {
                    "type": "number",
                    "description": "Credit amount of transaction",
                    "minimum": 0
                },
                "closing_balance": {
                    "type": "number",
                    "description": "Closing balance of transaction",
                    "minimum": 0
                },
                "value_date": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                },
                "transaction_date": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
            }
        }
    },
    "secret_id": "47e00a33-b704-4918-884e-7c4c08ed2705",
    "stages": []
}

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 --request POST 'https://preprod.api.crego.io/v1/rego/designs/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "flow_id": "fb3da30b-229e-4726-b805-53a2cc6e5a71",
    "is_current": true,
    "graph": {
        "nodes": [
            {
                "name":"gst_form",
            "type": "web_form",
            "config": {
                "schema": {
                    "type": "object",
                    "properties": {
                        "gst_no": {
                            "type": "string",
                            "title": "GST Number",
                            "pattern": "^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$",
                            "errorMessage": {
                                "pattern": "Please enter a valid GST number in the format: 22AAAAA0000A1Z5"
                            }
                        }
                    },
                    "required": [
                        "gst_no"
                    ]
                },
                "layout": {}
            }
        }
        ],
        "edges": [],
        "start_node": "4c4fa4fe-68d4-4d7e-b293-551a99c64be8"
    },
    "store_schema": {
        "type": "object",
        "properties": {
            "status": {
                "type": "string",
                "description": "Status",
                "enum": [
                    "pending",
                    "kyc_submitted",
                    "kyc_approved",
                    "kyc_rejected",
                    "pending_signing",
                    "signed"
                ]
            },
            "applicant": {
                "$ref": "#/definitions/Person"
            },
            "business": {
                "$ref": "#/definitions/Business"
            },
            "co_applicants": {
                "type": "array",
                "items": {
                    "$ref": "#/definitions/Person"
                },
                "description": "Co-applicants of business"
            }
        },
        "required": [
            "status",
            "applicant",
            "business"
        ],
        "definitions": {
            "Person": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string"
                    },
                    "dob": {
                        "type": "string",
                        "format": "date",
                        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                    },
                    "gender": {
                        "type": "string",
                        "enum": [
                            "male",
                            "female"
                        ]
                    },
                    "pan_no": {
                        "type": "string",
                        "pattern": "[A-Z]{5}[0-9]{4}[A-Z]{1}"
                    },
                    "aadhaar_no": {
                        "type": "string",
                        "pattern": "^[0-9]{12}$"
                    },
                    "mobile": {
                        "type": "string",
                        "pattern": "^[0-9]{10}$"
                    },
                    "email": {
                        "type": "string",
                        "format": "email"
                    },
                    "banks": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Bank"
                        },
                        "description": "Banks of person"
                    },
                    "addresses": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Address"
                        },
                        "description": "Addresses of person"
                    }
                },
                "required": [
                    "mobile",
                    "name"
                ]
            },
            "Business": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "Name of business",
                        "maxLength": 100,
                        "minLength": 3,
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "corporation_date": {
                        "type": "string",
                        "format": "date",
                        "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                    },
                    "email": {
                        "type": "string",
                        "format": "email",
                        "description": "Email of business",
                        "pattern": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
                    },
                    "overall_vintage_months": {
                        "type": "integer",
                        "maximum": 10000,
                        "minimum": 0
                    },
                    "partner_vintage_months": {
                        "type": "integer",
                        "maximum": 10000,
                        "minimum": 0
                    },
                    "gst": {
                        "type": "string",
                        "description": "GST of business",
                        "pattern": "^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[0-9]{1}[A-Z]{1}[0-9A-Z]{1}$"
                    },
                    "financial_data": {
                        "$ref": "#/definitions/Financial",
                        "description": "Financial Data"
                    },
                    "addresses": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Address"
                        },
                        "description": "Addresses of business"
                    },
                    "banks": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Bank"
                        },
                        "description": "Banks of business"
                    }
                },
                "required": [
                    "name"
                ]
            },
            "Document": {
                "type": "object",
                "properties": {
                    "tags": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "pattern": "^[a-zA-Z0-9 ]+$"
                        }
                    },
                    "document_id": {
                        "type": "string",
                        "description": "Storage ID of document"
                    },
                    "name": {
                        "type": "string",
                        "description": "Name of document"
                    }
                },
                "required": [
                    "document_id",
                    "name"
                ]
            },
            "Bank": {
                "type": "object",
                "properties": {
                    "ifsc": {
                        "type": "string",
                        "pattern": "^[A-Z]{4}0[A-Z0-9]{6}$",
                        "description": "IFSC code of bank"
                    },
                    "account_no": {
                        "type": "string",
                        "description": "Account number of bank",
                        "pattern": "^[0-9]{9,18}$"
                    },
                    "bank_name": {
                        "type": "string",
                        "description": "Name of bank",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "branch_name": {
                        "type": "string",
                        "description": "Branch name of bank",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "account_holder_name": {
                        "type": "string",
                        "description": "Account holder name of bank",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "statements": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/BankStatement"
                        }
                    },
                    "pdcs": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/Document"
                        }
                    },
                    "account_type": {
                        "type": "string",
                        "enum": [
                            "saving",
                            "current",
                            "overdraft"
                        ]
                    },
                    "proof": {
                        "$ref": "#/definitions/Document"
                    }
                },
                "required": [
                    "ifsc",
                    "account_no",
                    "account_type"
                ]
            },
            "BankStatement": {
                "type": "object",
                "properties": {
                    "document_id": {
                        "type": "string",
                        "description": "Storage ID of bank statement"
                    },
                    "period": {
                        "type": "object",
                        "properties": {
                            "from_date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                            },
                            "to_date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                            }
                        },
                        "required": [
                            "from_date",
                            "to_date"
                        ]
                    },
                    "transactions": {
                        "type": "array",
                        "items": {
                            "$ref": "#/definitions/BankTransaction"
                        }
                    }
                },
                "required": [
                    "document_id",
                    "transactions"
                ]
            },
            "Address": {
                "type": "object",
                "properties": {
                    "address_line": {
                        "type": "string",
                        "description": "Address line of address",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "city": {
                        "type": "string",
                        "description": "City of address",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "state": {
                        "type": "string",
                        "description": "State of address",
                        "pattern": "^[a-zA-Z0-9 ]+$"
                    },
                    "pincode": {
                        "type": "string",
                        "description": "Pincode of address",
                        "pattern": "^[0-9]{6}$"
                    },
                    "proof": {
                        "$ref": "#/definitions/Document"
                    }
                },
                "required": [
                    "address_line",
                    "city",
                    "state",
                    "pincode"
                ]
            },
            "Financial": {
                "type": "object",
                "properties": {
                    "share_holdings": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string",
                                    "description": "Name of holder"
                                },
                                "shares_number": {
                                    "type": "string",
                                    "description": "Number of shares"
                                },
                                "shares_percentage": {
                                    "type": "string",
                                    "description": "Share Percentage"
                                },
                                "designation": {
                                    "type": "string",
                                    "description": "Designation of holder"
                                }
                            }
                        },
                        "description": "SHARE HOLDINGS"
                    },
                    "financial": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "period": {
                                    "type": "object",
                                    "properties": {
                                        "from": {
                                            "type": "number",
                                            "description": "From Date"
                                        },
                                        "to": {
                                            "type": "number",
                                            "description": "To Date"
                                        }
                                    },
                                    "required": [
                                        "from",
                                        "to"
                                    ],
                                    "description": "For Given Period"
                                },
                                "balance_sheet": {
                                    "type": "object",
                                    "properties": {
                                        "equity": {
                                            "type": "object",
                                            "properties": {
                                                "share_capital": {
                                                    "type": "number",
                                                    "description": "Share Capital"
                                                },
                                                "reserves_surplus": {
                                                    "type": "number",
                                                    "description": "Reserves and Surplus"
                                                },
                                                "other_equity": {
                                                    "type": "number",
                                                    "description": "Other Equity"
                                                },
                                                "total": {
                                                    "type": "number",
                                                    "description": "Total Equity"
                                                }
                                            },
                                            "required": [
                                                "share_capital",
                                                "reserves_surplus",
                                                "other_equity",
                                                "total"
                                            ],
                                            "description": "Equity"
                                        },
                                        "liabilities": {
                                            "type": "object",
                                            "properties": {
                                                "non_current": {
                                                    "type": "object",
                                                    "properties": {
                                                        "long_term_borrowings": {
                                                            "type": "number",
                                                            "description": "Long Term Borrowings"
                                                        },
                                                        "net_deferred_tax_liabilities": {
                                                            "type": "number",
                                                            "description": "Net Deferred Tax Liabilities"
                                                        },
                                                        "other_long_term_borrowings": {
                                                            "type": "number",
                                                            "description": "Other Long Term Liabilities"
                                                        },
                                                        "long_term_provisions": {
                                                            "type": "number",
                                                            "description": "Long Term Provisions"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Non-current Liabilities"
                                                        }
                                                    },
                                                    "required": [
                                                        "long_term_borrowings",
                                                        "net_deferred_tax_liabilities",
                                                        "other_long_term_borrowings",
                                                        "long_term_provisions",
                                                        "total"
                                                    ],
                                                    "description": "Non-current Liabilities"
                                                },
                                                "current": {
                                                    "type": "object",
                                                    "properties": {
                                                        "short_term_borrowings": {
                                                            "type": "number",
                                                            "description": "Short Term Borrowings"
                                                        },
                                                        "trade_payables": {
                                                            "type": "number",
                                                            "description": "Trade Payables"
                                                        },
                                                        "other_current_liabilities": {
                                                            "type": "number",
                                                            "description": "Other Current Liabilities"
                                                        },
                                                        "short_term_provisions": {
                                                            "type": "number",
                                                            "description": "Short Term Provisions"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Current Liabilities"
                                                        }
                                                    },
                                                    "required": [
                                                        "short_term_borrowings",
                                                        "trade_payables",
                                                        "other_current_liabilities",
                                                        "short_term_provisions",
                                                        "total"
                                                    ],
                                                    "description": "Current Liabilities"
                                                },
                                                "total": {
                                                    "type": "number",
                                                    "description": "Total Equity and Liabilities"
                                                }
                                            },
                                            "required": [
                                                "total"
                                            ],
                                            "description": "Liabilities"
                                        },
                                        "assets": {
                                            "type": "object",
                                            "properties": {
                                                "net_fixed": {
                                                    "type": "object",
                                                    "properties": {
                                                        "tangible": {
                                                            "type": "number",
                                                            "description": "Tangible Assets"
                                                        },
                                                        "intangible": {
                                                            "type": "number",
                                                            "description": "Intangible Assets"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Net Fixed Assets"
                                                        }
                                                    },
                                                    "required": [
                                                        "tangible",
                                                        "intangible",
                                                        "total"
                                                    ],
                                                    "description": "Net Fixed Assets"
                                                },
                                                "capital_work_in_progress": {
                                                    "type": "number",
                                                    "description": "Capital Work-in-progress"
                                                },
                                                "non_current": {
                                                    "type": "object",
                                                    "properties": {
                                                        "investments": {
                                                            "type": "number",
                                                            "description": "Non-current Investments"
                                                        },
                                                        "net_deferred_tax": {
                                                            "type": "number",
                                                            "description": "Net Deferred Tax Assets"
                                                        },
                                                        "long_term_loans_and_advances": {
                                                            "type": "number",
                                                            "description": "Long Term Loans and Advances"
                                                        },
                                                        "other": {
                                                            "type": "number",
                                                            "description": "Other Non-current Assets"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Other Non-current Assets"
                                                        }
                                                    },
                                                    "required": [
                                                        "investments",
                                                        "net_deferred_tax",
                                                        "long_term_loans_and_advances",
                                                        "other",
                                                        "total"
                                                    ],
                                                    "description": "Other Non-current Assets"
                                                },
                                                "current": {
                                                    "type": "object",
                                                    "properties": {
                                                        "investments": {
                                                            "type": "number",
                                                            "description": "Current Investments"
                                                        },
                                                        "inventories": {
                                                            "type": "number",
                                                            "description": "Inventories"
                                                        },
                                                        "trade_receivables": {
                                                            "type": "number",
                                                            "description": "Trade Receivables"
                                                        },
                                                        "cash_and_bank_balances": {
                                                            "type": "number",
                                                            "description": "Cash and Bank Balances"
                                                        },
                                                        "short_term_loans_and_advances": {
                                                            "type": "number",
                                                            "description": "Short Term Loans and Advances"
                                                        },
                                                        "other_current_assets": {
                                                            "type": "number",
                                                            "description": "Other Current Assets"
                                                        },
                                                        "total": {
                                                            "type": "number",
                                                            "description": "Total Current Assets"
                                                        }
                                                    },
                                                    "required": [
                                                        "investments",
                                                        "inventories",
                                                        "trade_receivables",
                                                        "cash_and_bank_balances",
                                                        "short_term_loans_and_advances",
                                                        "other_current_assets",
                                                        "total"
                                                    ],
                                                    "description": "Current Assets"
                                                },
                                                "total": {
                                                    "type": "number",
                                                    "description": "Total Assets"
                                                }
                                            },
                                            "required": [
                                                "net_fixed",
                                                "capital_work_in_progress",
                                                "non_current",
                                                "current",
                                                "total"
                                            ],
                                            "description": "Assets"
                                        }
                                    },
                                    "description": "Balance Sheet"
                                },
                                "ratios": {
                                    "type": "object",
                                    "properties": {
                                        "revenue_growth": {
                                            "type": "number",
                                            "description": "Revenue Growth (%)"
                                        },
                                        "gross_profit_margin": {
                                            "type": "number",
                                            "description": "Gross Profit Margin (%)"
                                        },
                                        "operating_profit_margin": {
                                            "type": "number",
                                            "description": "EBITDA Margin (%)"
                                        },
                                        "net_margin": {
                                            "type": "number",
                                            "description": "Net Margin (%)"
                                        },
                                        "return_on_equity": {
                                            "type": "number",
                                            "description": "Return on Equity (%)"
                                        },
                                        "return_on_capital_employed": {
                                            "type": "number",
                                            "description": "Return on Capital Employed (%)"
                                        },
                                        "debt_ratio": {
                                            "type": "number",
                                            "description": "Debt Ratio"
                                        },
                                        "debt_to_equity": {
                                            "type": "number",
                                            "description": "Debt / Equity"
                                        },
                                        "interest_coverage_ratio": {
                                            "type": "number",
                                            "description": "Interest Coverage Ratio"
                                        },
                                        "current_ratio": {
                                            "type": "number",
                                            "description": "Current Ratio"
                                        },
                                        "quick_ratio": {
                                            "type": "number",
                                            "description": "Quick Ratio"
                                        },
                                        "inventory_to_sales": {
                                            "type": "number",
                                            "description": "Inventory / Sales (Days)"
                                        },
                                        "debtors_to_sales": {
                                            "type": "number",
                                            "description": "Debtors / Sales (Days)"
                                        },
                                        "payables_to_sales": {
                                            "type": "number",
                                            "description": "Payables / Sales (Days)"
                                        },
                                        "cash_conversion_cycle": {
                                            "type": "number",
                                            "description": "Cash Conversion Cycle (Days)"
                                        },
                                        "sales_to_net_fixed_assets": {
                                            "type": "number",
                                            "description": "Sales / Net Fixed Assets"
                                        }
                                    },
                                    "required": [
                                        "revenue_growth",
                                        "gross_profit_margin",
                                        "operating_profit_margin",
                                        "net_margin",
                                        "return_on_equity",
                                        "return_on_capital_employed",
                                        "debt_ratio",
                                        "debt_to_equity",
                                        "interest_coverage_ratio",
                                        "current_ratio",
                                        "quick_ratio",
                                        "inventory_to_sales",
                                        "debtors_to_sales",
                                        "payables_to_sales",
                                        "cash_conversion_cycle",
                                        "sales_to_net_fixed_assets"
                                    ],
                                    "description": "Ratios"
                                },
                                "profit_and_loss": {
                                    "type": "object",
                                    "properties": {
                                        "net_revenue": {
                                            "type": "number",
                                            "description": "Net Revenue"
                                        },
                                        "operating_cost": {
                                            "type": "object",
                                            "properties": {
                                                "cost_of_material_consumed": {
                                                    "type": "number",
                                                    "description": "Cost of Materials Consumed"
                                                },
                                                "purchase_of_stock_trade": {
                                                    "type": "number",
                                                    "description": "Purchases of Stock-in-trade"
                                                },
                                                "changes_in_inventories_finished_goods": {
                                                    "type": "number",
                                                    "description": "Changes in Inventories / Finished Goods"
                                                },
                                                "employee_benefit_expense": {
                                                    "type": "number",
                                                    "description": "Employee Benefit Expense"
                                                },
                                                "other_expenses": {
                                                    "type": "number",
                                                    "description": "Other Expenses"
                                                },
                                                "total": {
                                                    "type": "number",
                                                    "description": "Total Operating Cost"
                                                }
                                            },
                                            "required": [
                                                "cost_of_material_consumed",
                                                "purchase_of_stock_trade",
                                                "changes_in_inventories_finished_goods",
                                                "employee_benefit_expense",
                                                "other_expenses",
                                                "total"
                                            ],
                                            "description": "Operating Cost"
                                        },
                                        "operating_profit": {
                                            "type": "number",
                                            "description": "Operating Profit (EBITDA)"
                                        },
                                        "other_income": {
                                            "type": "number",
                                            "description": "Other Income"
                                        },
                                        "depreciation_and_amortization_expense": {
                                            "type": "number",
                                            "description": "Depreciation and Amortization Expense"
                                        },
                                        "profit_before_interest_and_tax": {
                                            "type": "number",
                                            "description": "Profit Before Interest and Tax"
                                        },
                                        "finance_cost": {
                                            "type": "number",
                                            "description": "Finance Costs"
                                        },
                                        "profit_before_tax_and_exceptional_items_before_tax": {
                                            "type": "number",
                                            "description": "Profit Before Tax and Exceptional Items Before Tax"
                                        },
                                        "exceptional_items_before_tax": {
                                            "type": "number",
                                            "description": "Exceptional Items Before Tax"
                                        },
                                        "profit_before_tax": {
                                            "type": "number",
                                            "description": "Profit Before Tax"
                                        },
                                        "income_tax": {
                                            "type": "number",
                                            "description": "Income Tax"
                                        },
                                        "profit_for_period_from_continuing_operations": {
                                            "type": "number",
                                            "description": "Profit for the Period from Continuing Operations"
                                        },
                                        "profit_from_discontinuing_operation_after_tax": {
                                            "type": "number",
                                            "description": "Profit from Discontinuing Operations After Tax"
                                        },
                                        "profit_for_period": {
                                            "type": "number",
                                            "description": "Profit for the Period"
                                        }
                                    },
                                    "description": "Profit & Loss"
                                }
                            }
                        },
                        "description": "Financial Data"
                    }
                }
            },
            "BankTransaction": {
                "narration": {
                    "type": "string",
                    "description": "Narration of transaction"
                },
                "debit_amount": {
                    "type": "number",
                    "description": "Debit amount of transaction",
                    "minimum": 0
                },
                "credit_amount": {
                    "type": "number",
                    "description": "Credit amount of transaction",
                    "minimum": 0
                },
                "closing_balance": {
                    "type": "number",
                    "description": "Closing balance of transaction",
                    "minimum": 0
                },
                "value_date": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                },
                "transaction_date": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
            }
        }
    },
    "secret_id": "47e00a33-b704-4918-884e-7c4c08ed2705",
    "stages": []
}'

Responses

🟢201Created
application/json
Body
id
string 
required
created_at
string 
required
created_by
string 
required
flow
string 
required
secret
string 
required
is_current
boolean 
required
graph
object 
required
nodes
array [object {3}] 
required
edges
array[string]
required
start_node
string 
required
store_schema
object 
required
type
string 
required
properties
object 
required
required
array[string]
required
definitions
object 
required
config
object 
required
name
string 
required
Example
{"id":"4fc3da8b-1ff4-4c6b-be2c-e1ba1547a799","created_at":"2024-12-03T13:57:32.477313","created_by":"0d17a44c-9589-4534-807a-7c9e95002e10","flow":"5f65915d-d0b0-4c21-9788-bb81da7e0d23","secret":"47e00a33-b704-4918-884e-7c4c08ed2705","is_current":true,"graph":{"nodes":[{"name":"gst_form","type":"web_form","config":{"schema":{"type":"object","properties":{"gst_no":{"type":"string","title":"GST Number","pattern":"^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$","errorMessage":{"pattern":"Please enter a valid GST number in the format: 22AAAAA0000A1Z5"}}},"required":["gst_no"]},"layout":{}}},{"name":"gst_form","type":"web_form","config":{"schema":{"type":"object","properties":{"gst_no":{"type":"string","title":"GST Number","pattern":"^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$","errorMessage":{"pattern":"Please enter a valid GST number in the format: 22AAAAA0000A1Z5"}}},"required":["gst_no"]},"layout":{}}},{"name":"gst_form","type":"web_form","config":{"schema":{"type":"object","properties":{"gst_no":{"type":"string","title":"GST Number","pattern":"^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$","errorMessage":{"pattern":"Please enter a valid GST number in the format: 22AAAAA0000A1Z5"}}},"required":["gst_no"]},"layout":{}}}],"edges":[],"start_node":"4c4fa4fe-68d4-4d7e-b293-551a99c64be8"},"store_schema":{"type":"object","properties":{"status":{"type":"string","description":"Status","enum":["pending","kyc_submitted","kyc_approved","kyc_rejected","pending_signing","signed"]},"applicant":{"$ref":"#/definitions/Person"},"business":{"$ref":"#/definitions/Business"},"co_applicants":{"type":"array","items":{"$ref":"#/definitions/Person"},"description":"Co-applicants of business"}},"required":["status","applicant","business"],"definitions":{"type":"object","properties":{"Person":{"type":"object","properties":{"type":{"type":"string","default":"object"},"properties":{"type":"object","properties":{"name":{"type":"object","properties":{"type":{"type":"string","default":"string"}},"required":["type"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type"],"additionalProperties":false},"dob":{"type":"object","properties":{"type":{"type":"string","default":"string"},"format":{"type":"string","default":"date","x-apidog-mock":"2024-12-03 05:18:07"},"pattern":{"type":"string","default":"^[0-9]{4}-[0-9]{2}-[0-9]{2}$"}},"required":["type","format","pattern"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","format","pattern"],"additionalProperties":false},"gender":{"type":"object","properties":{"type":{"type":"string","default":"string"},"enum":{"type":"array","items":{"type":"string","x-apidog-mock":"29"},"default":["male","female"]}},"required":["type","enum"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","enum"],"additionalProperties":false},"pan_no":{"type":"object","properties":{"type":{"type":"string","default":"string"},"pattern":{"type":"string","default":"[A-Z]{5}[0-9]{4}[A-Z]{1}"}},"required":["type","pattern"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","pattern"],"additionalProperties":false},"aadhaar_no":{"type":"object","properties":{"type":{"type":"string","default":"string"},"pattern":{"type":"string","default":"^[0-9]{12}$"}},"required":["type","pattern"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","pattern"],"additionalProperties":false},"mobile":{"type":"object","properties":{"type":{"type":"string","default":"string"},"pattern":{"type":"string","default":"^[0-9]{10}$"}},"required":["type","pattern"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","pattern"],"additionalProperties":false},"email":{"type":"object","properties":{"type":{"type":"string","default":"string"},"format":{"type":"string","default":"email","x-apidog-mock":"2024-12-02 17:38:12"}},"required":["type","format"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","format"],"additionalProperties":false},"banks":{"type":"object","properties":{"type":{"type":"string","default":"array"},"items":{"type":"object","properties":{"$ref":{"type":"string","default":"#/definitions/Bank"}},"required":["$ref"],"x-apidog-ignore-properties":[],"x-apidog-orders":["$ref"],"additionalProperties":false},"description":{"type":"string","default":"Banks of person","x-apidog-mock":"Alias textor caveo alo antea amplus summopere sapiente cauda. Surgo currus vereor crudelis ex celer arcus cometes amissio solvo. Ars deludo centum."}},"required":["type","items","description"],"x-apidog-ignore-properties":[],"x-apidog-orders":["type","items","description"],"additionalProperties":false},"addresses":{"type":"object","properties":{"type":{"type":"string","default":"array"},"items":{"type":"object","properties":{"$ref":{"type":"string","default":"#/definitions/Address"}},"required":["$ref"],"x-apidog-ignore-properties":[],"x-apidog-orders":["$ref"],"additionalProperties":false},"description":{"type":"string","default":"Addresses of person","x-apidog-mock":"Utique talus conculco
Modified at 2024-12-03 08:27:48
Next
List Designs
Built with