Crego APIs
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
APIs DocHome Page
Web Apps
  • Jupiter
  • Venus
  1. Lead
  • Back to home
  • CRM
  • Lead
    • Get Borrower Line Details
      GET
    • Fetch service accounts
      GET
    • Send to a service
      POST
    • Create Lead
      POST
    • Lead List
      GET
    • Get Lead
      GET
    • Delete Lead
      DELETE
    • download_excel
      PUT
  • Applicant
    • Create Applicant
      POST
    • Get Applicant
      GET
    • Update Applicant
      PATCH
    • Delete Applicant
      DELETE
    • Mark as Primary
      PUT
  • Bank
    • Add Bank
      POST
    • Get Bank
      GET
    • Update Bank
      PATCH
    • Delete Bank
      DELETE
    • Verify Bank
      GET
    • Get Banks by Applicant Id
      GET
    • Get IFSC Details
      GET
  • Document
    • Add Document
      POST
    • Get Document
      GET
    • Delete Document
      DELETE
    • Update Document
      PATCH
    • Get Documents by Related Model Id
      GET
  • Address
    • Add Address
    • Get Address
    • Update Address
    • Delete Address
    • Get Address by Applicant Id
    • Get City & State by Pincode
  • Get Borrower Token
    POST
  • Health Check
    GET
  1. Lead

Get Borrower Line Details

preprod
https://preprod.api.crego.io
preprod
https://preprod.api.crego.io
GET
/v1/crm/leads/{id}/programs/
Last modified:2025-01-06 11:31:54

Get Lead Programs#

This endpoint retrieves the programs associated with a specific lead.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Request Code 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 GET 'https://preprod.api.crego.io/v1/crm/leads/512bd868-260a-42a2-8ba9-b82ecef7f022/programs/' \
--header 'Authorization: Bearer <token>'

Responses

🟢200200 OK
application/json
Body

Example
[
    {
        "lead_id": "7765034a-b741-4955-a262-e8ad5766db2e",
        "ref_id": "CL4ZWR4A",
        "program_id": "6788f287-c670-46b9-8ec9-48cc351ab2bc",
        "product_type": "scf",
        "status": "disbursed",
        "tags": [],
        "is_primary": true,
        "created_at": 1716451159.041,
        "updated_at": 1716451159.041,
        "program": {
            "id": "6788f287-c670-46b9-8ec9-48cc351ab2bc",
            "created_at": 1715418698.393342,
            "updated_at": 1715419137.898855,
            "type": "lending",
            "name": "CavinKare DF",
            "product_type": "scf",
            "product_name": "Distributor Financing",
            "ref_id": "CP00P4P",
            "status": "active",
            "company": "23067dbc-6c62-4203-9014-7100e4ffe811"
        },
        "line_detail": {
            "type": "borrower_program",
            "line_expiry_date": 1779523159,
            "is_expired": false,
            "approved_line_amount": 500000,
            "operative_line_amount": 500000,
            "active_line_amount": 500000,
            "principal_paid": 0,
            "principal_outstanding": 0,
            "interest_paid": 0,
            "interest_outstanding": 0,
            "overdue_paid": 0,
            "overdue_outstanding": 0,
            "penal_paid": 0,
            "penal_outstanding": 0,
            "total_outstanding": 0,
            "total_paid": 0,
            "total_subvention_amount": 0,
            "subvention_ack": 0,
            "total_disbursed_amount": 0,
            "total_topup_count": 0,
            "due_loan_count": 0,
            "pending_disbursal_amount": 0,
            "dpd": 0,
            "peak_dpd": 0,
            "excess_payment": 0,
            "due_amount": 0,
            "total_cashback_available": 0,
            "total_cashback_released": 0,
            "total_cashback_adjusted": 0,
            "total_holdback_amount": 0,
            "npa_category": "STD",
            "total_due_principal": 0,
            "total_due_interest": 0,
            "total_due_overdue": 0,
            "total_due_penal": 0,
            "is_hold": false,
            "line_activation_date": 1716451159.864,
            "created_at": 1716451159.864,
            "updated_at": 1716451159.864,
            "id": "9d5f9aa1-3246-4c5c-ad98-5320e51a3e0b"
        },
        "loan_data": {
            "interest_lock_in_days": 0,
            "roi_value": [
                {
                    "value": 14,
                    "days": "inf"
                }
            ],
            "tenure_value": 5,
            "penal_roi_value": [
                {
                    "value": 10,
                    "days": "inf"
                }
            ],
            "penal_lag_days_after_due": 0,
            "overdue_roi_value": [
                {
                    "value": 14,
                    "days": "inf"
                }
            ],
            "subvention_is_enabled": false,
            "subvention_value_type": "percentage",
            "subvention_days": 0,
            "subvention_value": 0,
            "tenure_starts_at": "disbursement_date",
            "interest_starts": "same_day",
            "days_in_month": 30,
            "days_in_year": 365,
            "tenure_period": "days",
            "tenure_period_type": "as_per_days",
            "roi_period": "years",
            "roi_slab_based": false,
            "interest_lock_in_enabled": false,
            "overdue_roi_same_as_roi": true,
            "overdue_roi_slab_based": true,
            "penal_roi_same_as_roi": false,
            "penal_roi_slab_based": false,
            "cashback_is_enabled": false,
            "cashback_payment_to": "borrower",
            "cashback_use_as": "adjust",
            "cashback_release_at": "loan_closure",
            "cashback_deduction_is_enabled": false,
            "cashback_deduction_type": "fixed",
            "cashback_deduction_value": 0,
            "holdback_is_enabled": false,
            "holdback_rate": "0",
            "holdback_return_is_enabled": false,
            "holdback_return_payment_to": "",
            "created_at": 1716451159.967,
            "updated_at": 1716451159.967,
            "id": "c8141ac3-eb6a-4f9c-9dd0-71835c41b712"
        },
        "id": "26ba0e8a-f97e-4228-8afd-202cf6b526a0"
    }
]
Modified at 2025-01-06 11:31:54
Next
Fetch service accounts
Built with