Disable Webhook Endpoint
curl --request POST \
--url https://uat-api.clinkbill.com/api/webhook/endpoints/{id}/disable \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.post("https://uat-api.clinkbill.com/api/webhook/endpoints/{id}/disable")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/webhook/endpoints/{id}/disable"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/webhook/endpoints/{id}/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"id": "whk_xxxxx",
"url": "https://example.com/api/clink/webhook",
"events": [
"session.complete",
"order.succeeded"
],
"enabled": true,
"signingSecret": "whsec_xxxxx",
"maskedSigningSecret": "whsec_...abcd",
"description": "Created through the API",
"createdAt": 1782112780956,
"updatedAt": 1782113780956
}
}{
"code": 123,
"msg": "<string>",
"data": "<unknown>"
}{
"code": 123,
"msg": "<string>",
"data": "<unknown>"
}Webhook Endpoint Management
Disable Webhook Endpoint
Disable a webhook endpoint. Disabled endpoints are saved but do not receive webhook events.
POST
/
webhook
/
endpoints
/
{id}
/
disable
Disable Webhook Endpoint
curl --request POST \
--url https://uat-api.clinkbill.com/api/webhook/endpoints/{id}/disable \
--header 'X-API-KEY: <api-key>' \
--header 'X-Timestamp: <x-timestamp>'HttpResponse<String> response = Unirest.post("https://uat-api.clinkbill.com/api/webhook/endpoints/{id}/disable")
.header("X-Timestamp", "<x-timestamp>")
.header("X-API-KEY", "<api-key>")
.asString();import requests
url = "https://uat-api.clinkbill.com/api/webhook/endpoints/{id}/disable"
headers = {
"X-Timestamp": "<x-timestamp>",
"X-API-KEY": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Timestamp': '<x-timestamp>', 'X-API-KEY': '<api-key>'}
};
fetch('https://uat-api.clinkbill.com/api/webhook/endpoints/{id}/disable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"id": "whk_xxxxx",
"url": "https://example.com/api/clink/webhook",
"events": [
"session.complete",
"order.succeeded"
],
"enabled": true,
"signingSecret": "whsec_xxxxx",
"maskedSigningSecret": "whsec_...abcd",
"description": "Created through the API",
"createdAt": 1782112780956,
"updatedAt": 1782113780956
}
}{
"code": 123,
"msg": "<string>",
"data": "<unknown>"
}{
"code": 123,
"msg": "<string>",
"data": "<unknown>"
}Authorizations
Your secret API key obtained from the Clink dashboard (Developers section)
Headers
Current timestamp in milliseconds since Unix epoch (required for request signing)
Example:
"1783513683000"
Path Parameters
Unique identifier of the webhook endpoint.