Register Webhook
curl --request POST \
--url https://api.easycred.co.in/api/v1/partner/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-nonce: <x-nonce>' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>' \
--data '
{
"url": "https://partner.yourdomain.com/api/webhooks/easycred",
"events": [
"journey.status_updated",
"journey.offer_selected",
"journey.completed",
"application.approved",
"application.disbursed",
"application.rejected"
]
}
'import requests
url = "https://api.easycred.co.in/api/v1/partner/webhooks"
payload = {
"url": "https://partner.yourdomain.com/api/webhooks/easycred",
"events": ["journey.status_updated", "journey.offer_selected", "journey.completed", "application.approved", "application.disbursed", "application.rejected"]
}
headers = {
"x-api-key": "<api-key>",
"x-timestamp": "<x-timestamp>",
"x-nonce": "<x-nonce>",
"x-signature": "<x-signature>",
"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>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://partner.yourdomain.com/api/webhooks/easycred',
events: [
'journey.status_updated',
'journey.offer_selected',
'journey.completed',
'application.approved',
'application.disbursed',
'application.rejected'
]
})
};
fetch('https://api.easycred.co.in/api/v1/partner/webhooks', 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/webhooks",
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([
'url' => 'https://partner.yourdomain.com/api/webhooks/easycred',
'events' => [
'journey.status_updated',
'journey.offer_selected',
'journey.completed',
'application.approved',
'application.disbursed',
'application.rejected'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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/webhooks"
payload := strings.NewReader("{\n \"url\": \"https://partner.yourdomain.com/api/webhooks/easycred\",\n \"events\": [\n \"journey.status_updated\",\n \"journey.offer_selected\",\n \"journey.completed\",\n \"application.approved\",\n \"application.disbursed\",\n \"application.rejected\"\n ]\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("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/webhooks")
.header("x-api-key", "<api-key>")
.header("x-timestamp", "<x-timestamp>")
.header("x-nonce", "<x-nonce>")
.header("x-signature", "<x-signature>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://partner.yourdomain.com/api/webhooks/easycred\",\n \"events\": [\n \"journey.status_updated\",\n \"journey.offer_selected\",\n \"journey.completed\",\n \"application.approved\",\n \"application.disbursed\",\n \"application.rejected\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easycred.co.in/api/v1/partner/webhooks")
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["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://partner.yourdomain.com/api/webhooks/easycred\",\n \"events\": [\n \"journey.status_updated\",\n \"journey.offer_selected\",\n \"journey.completed\",\n \"application.approved\",\n \"application.disbursed\",\n \"application.rejected\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"subscriptionId": "65b9e812f1a23b4c5d6e7f8a",
"url": "https://partner.yourdomain.com/api/webhooks/easycred",
"events": [
"journey.status_updated",
"application.approved",
"application.disbursed"
],
"secret": "whsec_7f9a2b4c8e1d3f5a6b0c2d4e8f1a3b5c"
}
}{
"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"
}Webhooks
Register Webhook
Registers a new webhook subscription. The HMAC signing secret is returned ONCE only in this response.
POST
/
api
/
v1
/
partner
/
webhooks
Register Webhook
curl --request POST \
--url https://api.easycred.co.in/api/v1/partner/webhooks \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-nonce: <x-nonce>' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>' \
--data '
{
"url": "https://partner.yourdomain.com/api/webhooks/easycred",
"events": [
"journey.status_updated",
"journey.offer_selected",
"journey.completed",
"application.approved",
"application.disbursed",
"application.rejected"
]
}
'import requests
url = "https://api.easycred.co.in/api/v1/partner/webhooks"
payload = {
"url": "https://partner.yourdomain.com/api/webhooks/easycred",
"events": ["journey.status_updated", "journey.offer_selected", "journey.completed", "application.approved", "application.disbursed", "application.rejected"]
}
headers = {
"x-api-key": "<api-key>",
"x-timestamp": "<x-timestamp>",
"x-nonce": "<x-nonce>",
"x-signature": "<x-signature>",
"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>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://partner.yourdomain.com/api/webhooks/easycred',
events: [
'journey.status_updated',
'journey.offer_selected',
'journey.completed',
'application.approved',
'application.disbursed',
'application.rejected'
]
})
};
fetch('https://api.easycred.co.in/api/v1/partner/webhooks', 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/webhooks",
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([
'url' => 'https://partner.yourdomain.com/api/webhooks/easycred',
'events' => [
'journey.status_updated',
'journey.offer_selected',
'journey.completed',
'application.approved',
'application.disbursed',
'application.rejected'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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/webhooks"
payload := strings.NewReader("{\n \"url\": \"https://partner.yourdomain.com/api/webhooks/easycred\",\n \"events\": [\n \"journey.status_updated\",\n \"journey.offer_selected\",\n \"journey.completed\",\n \"application.approved\",\n \"application.disbursed\",\n \"application.rejected\"\n ]\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("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/webhooks")
.header("x-api-key", "<api-key>")
.header("x-timestamp", "<x-timestamp>")
.header("x-nonce", "<x-nonce>")
.header("x-signature", "<x-signature>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://partner.yourdomain.com/api/webhooks/easycred\",\n \"events\": [\n \"journey.status_updated\",\n \"journey.offer_selected\",\n \"journey.completed\",\n \"application.approved\",\n \"application.disbursed\",\n \"application.rejected\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.easycred.co.in/api/v1/partner/webhooks")
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["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://partner.yourdomain.com/api/webhooks/easycred\",\n \"events\": [\n \"journey.status_updated\",\n \"journey.offer_selected\",\n \"journey.completed\",\n \"application.approved\",\n \"application.disbursed\",\n \"application.rejected\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"subscriptionId": "65b9e812f1a23b4c5d6e7f8a",
"url": "https://partner.yourdomain.com/api/webhooks/easycred",
"events": [
"journey.status_updated",
"application.approved",
"application.disbursed"
],
"secret": "whsec_7f9a2b4c8e1d3f5a6b0c2d4e8f1a3b5c"
}
}{
"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"
Body
application/json