curl --request POST \
--url https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/action \
--header 'Content-Type: application/json' \
--header 'X-Journey-Session: <x-journey-session>' \
--header 'x-api-key: <api-key>' \
--header 'x-nonce: <x-nonce>' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>' \
--data '
{
"kind": "SELECT_OFFER",
"payload": {
"offerId": "off_apollo_101",
"loanAmount": 150000
}
}
'{
"success": true,
"data": {
"nextAction": {
"type": "REDIRECT_TO_KYC",
"category": "REDIRECT",
"url": "https://kyc.partner-lender.com/verify?session=..."
}
}
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}Headless Journey
Step 3 - Submit Customer Action
Submits borrower selections such as SELECT_OFFER, SELECT_GOLD_LOAN_BRANCH, or SUBMIT_BANK_ACCOUNT.
POST
/
api
/
v1
/
partner
/
journey
/
{journeyId}
/
action
curl --request POST \
--url https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/action \
--header 'Content-Type: application/json' \
--header 'X-Journey-Session: <x-journey-session>' \
--header 'x-api-key: <api-key>' \
--header 'x-nonce: <x-nonce>' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>' \
--data '
{
"kind": "SELECT_OFFER",
"payload": {
"offerId": "off_apollo_101",
"loanAmount": 150000
}
}
'{
"success": true,
"data": {
"nextAction": {
"type": "REDIRECT_TO_KYC",
"category": "REDIRECT",
"url": "https://kyc.partner-lender.com/verify?session=..."
}
}
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}{
"success": false,
"error": "Invalid signature or expired timestamp"
}Authorizations
EASYCRED Partner API Key
Headers
Your active EASYCRED Partner API Key (format: ec_live_... or ec_test_...)
Example:
"ec_live_abc123_xyz789"
Unix epoch seconds. Requests outside the 5-minute tolerance window are rejected.
Example:
"1759820800"
Unique UUID v4 nonce per request to prevent replay attacks.
Example:
"d3b07384-d113-4ec4-9d45-2f928e123456"
HMAC-SHA256 signature calculated over method, path, timestamp, nonce, and raw request body.
Example:
"a1b2c3d4e5f67890123456789abcdef0123456789abcdef0123456789abcdef0"
Journey session token returned by Step 1 (Initiate Headless Journey).
Example:
"jsess_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Path Parameters
Journey ID returned by initiate
Example:
"jrn_67a12b3c4d5e6f7a"
Body
application/json