You are viewing a section of Superface that will be deprecated in Q4 2023. Until then, you can continue to use it as you have before but we recommend that you migrate to our latest version soon. For more details visit superface.ai/docs/migrate.

webhook-management/subscribe-webhook

webhook-management/subscribe-webhook@0.0.0

Create a new webhook subscription by specifying an address and a topic.

Input
webhook
Result
webhook

Structure details

Input (object)

webhook
address
The address where the webhook should send the HTTP request.
topic
The event that triggers the webhook.
format
The format of the data that the webhook should send.

Example

Result (object)

webhook
id
Unique numeric identifier for the webhook subscription.
address
Destination URI to which the webhook subscription should send the POST request when an event occurs.
topic
Event that triggers the webhook. You can retrieve data in either JSON or XML.
created_at
Date and time when the webhook subscription was created.
updated_at
Date and time when the webhook subscription was last modified.
format
Format in which the webhook subscription should send the data. Valid values are JSON and XML. Defaults to JSON.
fields
An optional array of top-level resource fields that should be serialized and sent in the POST request. If absent, all fields will be sent.
metafield_namespaces
Optional array of namespaces for any metafields that should be included with each webhook.
api_version
The Admin API version that Shopify uses to serialize webhook events. This value is inherited from the app that created the webhook subscription.
private_metafield_namespaces
Optional array of namespaces for any private metafields that should be included with each webhook.

Example