Fund Arrival & Status Change
Fund Arrival
URL
https://<customerHost:port>/webhook
Header Parameters:
Parameter | Description | Type |
---|---|---|
content-type | The Content-Type entity header is used to indicate the media type of the resource. Expected values could be application/json. | String |
x-api-key | f9be0d9e-6903-4862-8d69-5b2651426bf9 | String |
Example Request:
- Bash
- Javascript
- C#
curl --location --request POST 'https://<customerHost:Port>/webhook' \
--header 'Content-Type: application/json' \
--header 'x-api-key: f9be0d9e-6903-4862-8d69-5b2651426bf9' \
--data-raw '{
"client_id": "593feb7c5g32bb2357b2df6c",
"transaction_id": "393feb7c5g32bb2357b2df6d",
"vra_id": "1b1542f8-c5b2-484d-b0c4-c78710dd84a3",
"clientId": "593feb7c5g32bb2357b2df6c",
"transactionId": "393feb7c5g32bb2357b2df6d",
"vraId": "1b1542f8-c5b2-484d-b0c4-c78710dd84a3",
"event": "FUND_ARRIVAL",
"timestamp": "2017-06-16T17:25:52.136+05:30"
}'
var data = JSON.stringify({
"client_id": "593feb7c5g32bb2357b2df6c",
"transaction_id": "393feb7c5g32bb2357b2df6d",
"vra_id": "1b1542f8-c5b2-484d-b0c4-c78710dd84a3",
"clientId": "593feb7c5g32bb2357b2df6c",
"transactionId": "393feb7c5g32bb2357b2df6d",
"vraId": "1b1542f8-c5b2-484d-b0c4-c78710dd84a3",
"event": "FUND_ARRIVAL",
"timestamp": "2017-06-16T17:25:52.136+05:30"
})
var xhr = new XMLHttpRequest();
xhr.addEventListener("readystatechange", function () {
if (this.readyState === this.DONE) {
console.log(this.responseText);
}
});
xhr.open("post", "https://<customerHost:Port>/webhook")
xhr.setRequestHeader("content-type", "application/json");
xhr.setRequestHeader("x-api-key", "f9be0d9e-6903-4862-8d69-5b2651426bf9");
xhr.send(data);
var client = new RestClient("https://<customerHost:Port>/webhook");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddHeader("x-api-key", "f9be0d9e-6903-4862-8d69-5b2651426bf9");
request.AddParameter("application/json", @"{
""client_id"": ""593feb7c5g32bb2357b2df6c"",
""transaction_id"": ""393feb7c5g32bb2357b2df6d"",
""vra_id"": ""1b1542f8-c5b2-484d-b0c4-c78710dd84a3"",
""clientId"": ""593feb7c5g32bb2357b2df6c"",
""transactionId"": ""393feb7c5g32bb2357b2df6d"",
""vraId"": ""1b1542f8-c5b2-484d-b0c4-c78710dd84a3"",
""event"": ""FUND_ARRIVAL"",
""timestamp"": ""2017-06-16T17:25:52.136+05:30""
}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Body Parameters:
Parameter | Description | Type |
---|---|---|
client_id | This is the unique client ID generated by Nium. (DEPRECATED) | String |
transaction_id | This is the unique receive transaction ID generated by Nium. (DEPRECATED) | String |
vra_id | Unique ID generated by Nium. (DEPRECATED) | String |
clientId | This is the unique client ID generated by Nium. | String |
transactionId | This is the unique receive transaction ID generated by Nium. | String |
vraId | Unique ID generated by Nium. | String |
event | Event name. This event will be triggered when the transaction status changes. | String |
timestamp | Date and time (UTC) of fund Arrival. | String |