latestSwagger 2.0ShopBase Dev 1.02026-08-10153268547.4 KB

353ccde6240d

Webhook

Create a webhook

Create a webhook subscription's topic or address URIs

post/admin/webhooks.json

Request body

Example request

{
  "webhook": {
    "address": "https://apple.com/uninstall",
    "created_at": 901431826,
    "fields": [
      "id",
      "updated_at"
    ],
    "format": "json",
    "id": 901431826,
    "metafield_namespaces": [
      "google",
      "inventory"
    ],
    "topic": "app/uninstalled",
    "updated_at": 901431826
  }
}

Response

OK

Example response

{
  "webhook": {
    "address": "https://apple.com/uninstall",
    "created_at": 901431826,
    "fields": [
      "id",
      "updated_at"
    ],
    "format": "json",
    "id": 901431826,
    "metafield_namespaces": [
      "google",
      "inventory"
    ],
    "topic": "app/uninstalled",
    "updated_at": 901431826
  }
}