API thiết lập webhook
Dùng để thiết lập webhook như: thêm, sửa và xóa.
Trước khi bắt đầu
Tạo webhook
Headers
Name
Type
Description
Request Body
Name
Type
Description
{
"error": 0,
"message": "success",
"data": {
"id": 114,
"channel": "webhook",
"param1": "https://ten-mien-cua-ban.com/wc/handler-bank-transfer.php",
"param2": "",
"send_only_income": 1
}
}{
"error": 401,
"message": "Unauthorized Access",
"data": null
}Ví dụ:
Xem chi tiết webhook
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Ví dụ:
Cập nhật một webhook
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Request Body
Name
Type
Description
Ví dụ:
Xoá một webhook
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Ví dụ:
Xoá tất cả webhook trong đường dẫn
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
Ví dụ:
Last updated