Get Webhook
Function
To retrieve a specific subscribed webhook by id
以 id 獲取一個已訂閱的 webhook
URL
GET <<api_domain>>/v1/webhooks/:id
Request parameters
Parameter | Type | Description | Example |
|---|---|---|---|
:id *required |
| Webhook ID |
|
Response fields
Field | Type | Description | Example |
|---|---|---|---|
id |
| Webhook ID |
|
format |
| Webhook format
|
|
address |
| URL to receive the webhook |
|
status |
| Webhook status
|
|
merchant_id |
| Merchant ID |
|
created_at |
| Webhook created time |
|
updated_at |
| Webhook Updated Time |
|
topics |
| Events that trigger the webhook
|
|
Response example
{
"id": "5f8e5dc08a8bb70a5c9cd93c",
"format": "json",
"address": "http://abc.com/webhooks",
"status": "active",
"merchant_id": "5e840cae77cb07003243f7c7",
"created_at": "2020-10-20T03:50:00.323+00:00",
"updated_at": "2020-10-23T08:43:00.369+00:00",
"topics": [
"order/create"
]
}- Webhook payload 請參考此頁 Webhook Topic and Payload Example
Updated 21 days ago