List Registered Webhook
This endpoint will return the urls that receiving the notifications.
Path
get
/v1/fs/:fs_id
Request Parameters
Parameter | Type | Required | Location | Description |
---|---|---|---|---|
fs_id | Integer | Required | path | Fulfillment service unique identifier |
Example Request
- Curl
curl -X GET \
https://fs.tokopedia.net/v1/fs/13004 \
-H 'Authorization: Bearer JhgtdgUAQ5OJIrQMJjCiHA'
Response Parameters
Name | Type | Demo Value | Description |
---|---|---|---|
Integer | 13004 | Fulfillment Services Unique Identifier | |
String | http://yourstore.com/v1/order/notification | Order Notification Webhook URL | |
String | http://yourstore.com/v1/order/cancellation | Order Cancellation Webhook URL | |
String | http://yourstore.com/v1/order/status | Order Status Webhook URL | |
String | http://yourstore.com/v1/order/request_cancel | Order Request Cancellation Webhook URL | |
String | http://yourstore.com/v1/chat/notification | Chat Notification Webhook URL | |
String | http://yourstore.com/v1/product/changes | Product Changes Webhook URL | |
String | http://yourstore.com/v1/campaign/notification | Campaign Notification Webhook URL | |
String | http://yourstore.com/v1/order/order_partial_fulfillment_url | Order Partial Fulfillment Webhook URL | |
String | webhook_secret | Webhook Secret |
Success Response Examples
{
"data": {
"fs_id": 13004,
"order_notification_url": "http://yourstore.com/v1/order/notification",
"order_cancellation_url": "http://yourstore.com/v1/order/cancellation",
"order_status_url": "http://yourstore.com/v1/order/status",
"order_request_cancellation_url":"http://yourstore.com/v1/order/request_cancel",
"chat_notification_url":"http://yourstore.com/v1/chat/notification",
"product_changes_url": "http://yourstore.com/v1/product/changes",
"campaign_notification_url": "http://yourstore.com/v1/campaign/notification",
"order_partial_fulfillment_url": "http://yourstore.com/v1/order/order_partial_fulfillment",
"webhook_secret": "webhook_secret"
},
"status": "200 Ok",
"error_message": []
}
Error Response Examples
<html>
<head>
<title>401 Authorization Required</title>
</head>
<body bgcolor="white">
<center>
<h1>401 Authorization Required</h1>
</center>
<hr>
<center>nginx</center>
</body>
</html>