API xóa Webhook
API này hỗ trợ Partner, Shop xóa các Webhook đã được thêm vào trước đó
Tham số
Kiểu dữ liệu
Mô tả
Trường
Kiểu dữ liệu
Mô tả
Last updated
API này hỗ trợ Partner, Shop xóa các Webhook đã được thêm vào trước đó
Last updated
POST $BASE_URL.Webhook/DeleteWebhook HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"id": "text"
}{
"webhooks": [
{
"created_at": "2026-03-07T03:54:05.449Z",
"entities": [
"call_log"
],
"fields": [
"text"
],
"id": "text",
"metadata": "text",
"states": {
"last_error": {
"error": "text",
"resp_body": "text",
"resp_status": 1,
"retried": 1,
"sent_at": "2026-03-07T03:54:05.449Z"
},
"last_sent_at": "2026-03-07T03:54:05.449Z",
"state": "text"
},
"url": "text"
}
]
}curl --location '$BASE_URL.Webhook/DeleteWebhook' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer $API_KEY' \
--data '{
"id": "1415096549774721835"
}'{
"webhooks": [
{
"id": "1414892734919211862",
"entities": [
"call_log"
],
"fields": [],
"url": "https://example.com/webhook",
"metadata": "",
"created_at": "2025-09-23T18:05:42Z",
"states": {
"state": "ok",
"last_sent_at": null,
"last_error": null
}
}
]
}