Signal Redirect Returned
curl --request POST \
--url https://api.easycred.in/api/v1/partner/journey/{journeyId}/redirect-returned \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Nonce: <x-nonce>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '{}'import requests
url = "https://api.easycred.in/api/v1/partner/journey/{journeyId}/redirect-returned"
payload = {}
headers = {
"X-Signature": "<x-signature>",
"X-Timestamp": "<x-timestamp>",
"X-Nonce": "<x-nonce>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Signature': '<x-signature>',
'X-Timestamp': '<x-timestamp>',
'X-Nonce': '<x-nonce>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.easycred.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.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([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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.in/api/v1/partner/journey/{journeyId}/redirect-returned"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Signature", "<x-signature>")
req.Header.Add("X-Timestamp", "<x-timestamp>")
req.Header.Add("X-Nonce", "<x-nonce>")
req.Header.Add("Authorization", "Bearer <token>")
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.in/api/v1/partner/journey/{journeyId}/redirect-returned")
.header("X-Signature", "<x-signature>")
.header("X-Timestamp", "<x-timestamp>")
.header("X-Nonce", "<x-nonce>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easycred.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-Signature"] = '<x-signature>'
request["X-Timestamp"] = '<x-timestamp>'
request["X-Nonce"] = '<x-nonce>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"nextAction": {
"type": "<string>"
}
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}API Reference
Signal Redirect Returned
POST
https://api.easycred.in
/
api
/
v1
/
partner
/
journey
/
{journeyId}
/
redirect-returned
Signal Redirect Returned
curl --request POST \
--url https://api.easycred.in/api/v1/partner/journey/{journeyId}/redirect-returned \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Nonce: <x-nonce>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '{}'import requests
url = "https://api.easycred.in/api/v1/partner/journey/{journeyId}/redirect-returned"
payload = {}
headers = {
"X-Signature": "<x-signature>",
"X-Timestamp": "<x-timestamp>",
"X-Nonce": "<x-nonce>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Signature': '<x-signature>',
'X-Timestamp': '<x-timestamp>',
'X-Nonce': '<x-nonce>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({})
};
fetch('https://api.easycred.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.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([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"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.in/api/v1/partner/journey/{journeyId}/redirect-returned"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Signature", "<x-signature>")
req.Header.Add("X-Timestamp", "<x-timestamp>")
req.Header.Add("X-Nonce", "<x-nonce>")
req.Header.Add("Authorization", "Bearer <token>")
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.in/api/v1/partner/journey/{journeyId}/redirect-returned")
.header("X-Signature", "<x-signature>")
.header("X-Timestamp", "<x-timestamp>")
.header("X-Nonce", "<x-nonce>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easycred.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-Signature"] = '<x-signature>'
request["X-Timestamp"] = '<x-timestamp>'
request["X-Nonce"] = '<x-nonce>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"nextAction": {
"type": "<string>"
}
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
API key of the form ec_(live|test). Scopes are listed per operation.
Headers
HMAC-SHA256 signature over method, path, timestamp, nonce and raw body.
Unix epoch seconds. Requests outside the tolerance window are rejected.
Unique per-request nonce. Replays are rejected.
Path Parameters
Body
application/json
Signal that the customer has returned from a hosted redirect step.
The redirect step that was completed.
Available options:
KYC, MANDATE, ESIGN ⌘I