💻 Integration Code Examples for Apps
Step 1: Fetch Allocated Products (Flutter / Dart)
Use Case: Fetch live list of allocated credit cards & loans for user store screen.
Loading Flutter sample...
Step 2: Submit Lead & Get Bank Apply Link (Flutter / Dart)
Use Case: Submit applicant details and get official bank redirection link (`redirectUrl`).
Loading Flutter sample...
Step 3: Track Real-Time Submitted Leads Status & Remarks (Flutter / Dart)
Use Case: Display live status (`In Progress`, `Approved`, `Rejected`), remark description, and next update date in app.
Loading Flutter sample...
Step 1: Fetch Allocated Products (Android Kotlin - OkHttp)
Use Case: Fetch live list of allocated products.
Loading Kotlin sample...
Step 2: Submit Lead & Get Bank Apply Link (Android Kotlin)
Use Case: Submit applicant details & receive bank application URL.
Loading Kotlin sample...
Step 3: Track Real-Time Submitted Leads Status (Android Kotlin)
Use Case: Track application progress & bank remarks.
Loading Kotlin sample...
Step 1: Fetch Allocated Products (Android Java - OkHttp)
Use Case: Fetch live list of allocated products.
Loading Java sample...
Step 2: Submit Lead & Get Bank Apply Link (Android Java)
Use Case: Submit applicant details & receive bank application URL.
Loading Java sample...
Step 3: Track Real-Time Submitted Leads Status (Android Java)
Use Case: Track application progress & bank remarks.
Loading Java sample...
Step 1: Fetch Allocated Products (cURL)
Use Case: Fetch assigned products array.
curl -X GET "https://cheapkart.in/api/v1/products.php?category=credit_card" \
-H "X-API-KEY: YOUR_API_KEY"
Step 2: Submit Lead & Get Bank Apply Link (cURL)
Use Case: Submit lead & get official bank redirection link (`redirectUrl`).
curl -X POST "https://cheapkart.in/api/v1/submit_lead.php" \
-H "Content-Type: application/json" \
-H "X-API-KEY: YOUR_API_KEY" \
-H "X-SIGNATURE: HMAC_SHA256_HASH_OF_BODY" \
-d '{
"fullName": "Amit Kumar",
"phone": "9876543210",
"email": "amit@example.com",
"panCard": "ABCDE1234F",
"pincode": "110001",
"productId": 12
}'
Step 3: Track Real-Time Submitted Leads Status & Remarks (cURL)
Use Case: Track application status, remarks, and next update dates.
curl -X GET "https://cheapkart.in/api/v1/leads.php" \
-H "X-API-KEY: YOUR_API_KEY"
Step 1: Fetch Allocated Products (Python - requests)
import requests
url = "https://cheapkart.in/api/v1/products.php?category=credit_card"
headers = {"X-API-KEY": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
print(response.json())
Step 2: Submit Lead & Sign Request (Python - requests + hmac)
import requests, json, hmac, hashlib
url = "https://cheapkart.in/api/v1/submit_lead.php"
api_key = "YOUR_API_KEY"
secret_key = "YOUR_SECRET_KEY"
payload = {
"fullName": "Amit Kumar",
"phone": "9876543210",
"email": "amit@example.com",
"panCard": "ABCDE1234F",
"pincode": "110001",
"productId": 12
}
raw_body = json.dumps(payload)
signature = hmac.new(secret_key.encode(), raw_body.encode(), hashlib.sha256).hexdigest()
headers = {
"Content-Type": "application/json",
"X-API-KEY": api_key,
"X-SIGNATURE": signature
}
response = requests.post(url, data=raw_body, headers=headers)
print(response.json())
Step 3: Track Real-Time Submitted Leads Status & Remarks (Python)
import requests
url = "https://cheapkart.in/api/v1/leads.php"
headers = {"X-API-KEY": "YOUR_API_KEY"}
response = requests.get(url, headers=headers)
print(response.json())
Step 1: Fetch Allocated Products (Node.js - fetch)
const response = await fetch('https://cheapkart.in/api/v1/products.php?category=credit_card', {
method: 'GET',
headers: { 'X-API-KEY': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
Step 2: Submit Lead & Sign Request (Node.js - crypto + fetch)
const crypto = require('crypto');
const apiKey = 'YOUR_API_KEY';
const secretKey = 'YOUR_SECRET_KEY';
const payload = {
fullName: "Amit Kumar",
phone: "9876543210",
email: "amit@example.com",
panCard: "ABCDE1234F",
pincode: "110001",
productId: 12
};
const rawBody = JSON.stringify(payload);
const signature = crypto.createHmac('sha256', secretKey).update(rawBody).digest('hex');
const response = await fetch('https://cheapkart.in/api/v1/submit_lead.php', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-KEY': apiKey,
'X-SIGNATURE': signature
},
body: rawBody
});
const data = await response.json();
console.log(data);
Step 3: Track Real-Time Submitted Leads Status & Remarks (Node.js)
const response = await fetch('https://cheapkart.in/api/v1/leads.php', {
method: 'GET',
headers: { 'X-API-KEY': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
Step 1: Fetch Allocated Products (PHP - cURL)
Use Case: Fetch live list of allocated credit cards & loans for store screen.
Loading PHP sample...
Step 2: Submit Lead & Sign Request (PHP - cURL + HMAC-SHA256)
Use Case: Submit applicant details and get official bank redirection link (`redirectUrl`).
Loading PHP sample...
Step 3: Track Real-Time Submitted Leads Status & Remarks (PHP)
Use Case: Track application progress & bank remarks in real time.
Loading PHP sample...