Set a webhook endpoint
shop.merchant.webhook_setRegister or update an HTTPS webhook endpoint to receive selected order, refund, dispute, catalog, merchant, subscription, and stream events; new endpoints return a one-time signing secret.
Instructions
Register (or update with endpoint_id) an https webhook endpoint for the events you pick (needs webhooks:write): order.paid, order.confirmed, order.shipped, order.delivered, order.cancelled, refund.requested, refund.verified, dispute.opened, catalog.rejected, merchant.key_rotated, merchant.keys_reissued, subscription.started, subscription.renewed, subscription.past_due, subscription.canceled, subscription.expired, subscription.pull_failed, stream.settle_due. The URL must resolve to public addresses only. A new endpoint returns its whsec_ signing secret ONCE. Deliveries are signed (X-APIbase-Signature: t=,v1=HMAC-SHA256(secret, t.body)); dedupe by order_id. Another merchant's endpoint_id is 404.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| events | Yes | ||
| endpoint_id | No | ||
| rotate_secret | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| events | Yes | ||
| secret | No | whsec_<32hex>, shown once | |
| endpoint_id | Yes |