API Documentation
API documentation:
1. Authenticate with the vendor-token request header; please contact your business manager.
2. Use the API domain; please contact your business manager.
GET get-web-hook - Get Tracking Webhook
URL: /api/vendor/get-web-hook · Description: Get the tracking webhook URL configured for the current vendor.
Note: This endpoint applies to the vendor identified by the current
vendor-token;
an empty string is returned when no webhook URL has been set.
Parameters
No request parameters.
Request Example
GET /api/vendor/get-web-hook
Header: vendor-token: xxxxx
Response Example
{
"success": true,
"message": "success",
"code": 200,
"data": {
"vendor_id": 1024,
"tracking_hook": "https://www.example.com/api/tracking/callback"
}
}
| data field | Type | Description |
|---|---|---|
vendor_id |
int | Current vendor ID |
tracking_hook |
string | Current tracking webhook URL; empty string when not set |