curl --request POST \
--url https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned \
--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": "KYC"
}'import requests
url = "https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned"
payload = { "kind": "KYC" }
headers = {
"x-api-key": "<api-key>",
"x-timestamp": "<x-timestamp>",
"x-nonce": "<x-nonce>",
"x-signature": "<x-signature>",
"X-Journey-Session": "<x-journey-session>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-timestamp': '<x-timestamp>',
'x-nonce': '<x-nonce>',
'x-signature': '<x-signature>',
'X-Journey-Session': '<x-journey-session>',
'Content-Type': 'application/json'
},
body: JSON.stringify({kind: 'KYC'})
};
fetch('https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'kind' => 'KYC'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Journey-Session: <x-journey-session>",
"x-api-key: <api-key>",
"x-nonce: <x-nonce>",
"x-signature: <x-signature>",
"x-timestamp: <x-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned"
payload := strings.NewReader("{\n \"kind\": \"KYC\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-timestamp", "<x-timestamp>")
req.Header.Add("x-nonce", "<x-nonce>")
req.Header.Add("x-signature", "<x-signature>")
req.Header.Add("X-Journey-Session", "<x-journey-session>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned")
.header("x-api-key", "<api-key>")
.header("x-timestamp", "<x-timestamp>")
.header("x-nonce", "<x-nonce>")
.header("x-signature", "<x-signature>")
.header("X-Journey-Session", "<x-journey-session>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"KYC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["x-timestamp"] = '<x-timestamp>'
request["x-nonce"] = '<x-nonce>'
request["x-signature"] = '<x-signature>'
request["X-Journey-Session"] = '<x-journey-session>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"kind\": \"KYC\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"nextAction": {
"type": "POLL_KYC_STATUS",
"category": "POLL"
}
}
}{
"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"
}Step 4 - Signal Redirect Returned
Signals that the customer has returned from a third-party hosted redirect step (KYC, e-NACH Mandate, or e-Sign).
curl --request POST \
--url https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned \
--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": "KYC"
}'import requests
url = "https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned"
payload = { "kind": "KYC" }
headers = {
"x-api-key": "<api-key>",
"x-timestamp": "<x-timestamp>",
"x-nonce": "<x-nonce>",
"x-signature": "<x-signature>",
"X-Journey-Session": "<x-journey-session>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-timestamp': '<x-timestamp>',
'x-nonce': '<x-nonce>',
'x-signature': '<x-signature>',
'X-Journey-Session': '<x-journey-session>',
'Content-Type': 'application/json'
},
body: JSON.stringify({kind: 'KYC'})
};
fetch('https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'kind' => 'KYC'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Journey-Session: <x-journey-session>",
"x-api-key: <api-key>",
"x-nonce: <x-nonce>",
"x-signature: <x-signature>",
"x-timestamp: <x-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned"
payload := strings.NewReader("{\n \"kind\": \"KYC\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("x-timestamp", "<x-timestamp>")
req.Header.Add("x-nonce", "<x-nonce>")
req.Header.Add("x-signature", "<x-signature>")
req.Header.Add("X-Journey-Session", "<x-journey-session>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned")
.header("x-api-key", "<api-key>")
.header("x-timestamp", "<x-timestamp>")
.header("x-nonce", "<x-nonce>")
.header("x-signature", "<x-signature>")
.header("X-Journey-Session", "<x-journey-session>")
.header("Content-Type", "application/json")
.body("{\n \"kind\": \"KYC\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easycred.co.in/api/v1/partner/journey/{journeyId}/redirect-returned")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["x-timestamp"] = '<x-timestamp>'
request["x-nonce"] = '<x-nonce>'
request["x-signature"] = '<x-signature>'
request["X-Journey-Session"] = '<x-journey-session>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"kind\": \"KYC\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"nextAction": {
"type": "POLL_KYC_STATUS",
"category": "POLL"
}
}
}{
"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_...)
"ec_live_abc123_xyz789"
Unix epoch seconds. Requests outside the 5-minute tolerance window are rejected.
"1759820800"
Unique UUID v4 nonce per request to prevent replay attacks.
"d3b07384-d113-4ec4-9d45-2f928e123456"
HMAC-SHA256 signature calculated over method, path, timestamp, nonce, and raw request body.
"a1b2c3d4e5f67890123456789abcdef0123456789abcdef0123456789abcdef0"
Journey session token returned by Step 1 (Initiate Headless Journey).
"jsess_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Path Parameters
Journey ID returned by initiate
"jrn_67a12b3c4d5e6f7a"
Body
KYC, MANDATE, ESIGN "KYC"