API thiết lập webhook
Thay vì thiết lập webhook thủ công thì nay Casso cung cấp endpoint để có thể thiết lập webhook tự động.
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
} Chi tiết
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Cập nhật
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Request Body
Name
Type
Description
Xoá một webhook
Path Parameters
Name
Type
Description
Headers
Name
Type
Description
Xoá tất cả webhook trong đường dẫn
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
Last updated