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
id
string 
required
Example:
512bd868-260a-42a2-8ba9-b82ecef7f022

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

Responses

🟢200200 OK
application/json
Body
array of:
lead_id
string 
optional
ref_id
string 
optional
program_id
string 
optional
product_type
string 
optional
status
string 
optional
tags
array
optional
is_primary
boolean 
optional
created_at
number 
optional
updated_at
number 
optional
program
object 
optional
id
string 
required
created_at
number 
required
updated_at
number 
required
type
string 
required
name
string 
required
product_type
string 
required
product_name
string 
required
ref_id
string 
required
status
string 
required
company
string 
required
line_detail
object 
optional
type
string 
required
line_expiry_date
integer 
required
is_expired
boolean 
required
approved_line_amount
integer 
required
operative_line_amount
integer 
required
active_line_amount
integer 
required
principal_paid
integer 
required
principal_outstanding
integer 
required
interest_paid
integer 
required
interest_outstanding
integer 
required
overdue_paid
integer 
required
overdue_outstanding
integer 
required
penal_paid
integer 
required
penal_outstanding
integer 
required
total_outstanding
integer 
required
total_paid
integer 
required
total_subvention_amount
integer 
required
subvention_ack
integer 
required
total_disbursed_amount
integer 
required
total_topup_count
integer 
required
due_loan_count
integer 
required
pending_disbursal_amount
integer 
required
dpd
integer 
required
peak_dpd
integer 
required
excess_payment
integer 
required
due_amount
integer 
required
total_cashback_available
integer 
required
total_cashback_released
integer 
required
total_cashback_adjusted
integer 
required
total_holdback_amount
integer 
required
npa_category
string 
required
total_due_principal
integer 
required
total_due_interest
integer 
required
total_due_overdue
integer 
required
total_due_penal
integer 
required
is_hold
boolean 
required
line_activation_date
number 
required
created_at
number 
required
updated_at
number 
required
id
string 
required
loan_data
object 
optional
interest_lock_in_days
integer 
required
roi_value
array [object {2}] 
required
tenure_value
integer 
required
penal_roi_value
array [object {2}] 
required
penal_lag_days_after_due
integer 
required
overdue_roi_value
array [object {2}] 
required
subvention_is_enabled
boolean 
required
subvention_value_type
string 
required
subvention_days
integer 
required
subvention_value
integer 
required
tenure_starts_at
string 
required
interest_starts
string 
required
days_in_month
integer 
required
days_in_year
integer 
required
tenure_period
string 
required
tenure_period_type
string 
required
roi_period
string 
required
roi_slab_based
boolean 
required
interest_lock_in_enabled
boolean 
required
overdue_roi_same_as_roi
boolean 
required
overdue_roi_slab_based
boolean 
required
penal_roi_same_as_roi
boolean 
required
penal_roi_slab_based
boolean 
required
cashback_is_enabled
boolean 
required
cashback_payment_to
string 
required
cashback_use_as
string 
required
cashback_release_at
string 
required
cashback_deduction_is_enabled
boolean 
required
cashback_deduction_type
string 
required
cashback_deduction_value
integer 
required
holdback_is_enabled
boolean 
required
holdback_rate
string 
required
holdback_return_is_enabled
boolean 
required
holdback_return_payment_to
string 
required
created_at
number 
required
updated_at
number 
required
id
string 
required
id
string 
optional
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"
    }
]
Next
Fetch service accounts
Built with