younifyd
Menu

Create a new webhook subscription

Create a new webhook subscription

POST/webhooks/subscriptions

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Create a new webhook subscription action (under Webhooks).
  3. Fill in the fields below, then reference the result from later steps as {{createANewWebhookSubscription.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

idinteger

The unique webhook identifier.

eventstringrequired

Name of the hook event.

versionintegerrequired

The version of the hook.

urlstringrequired

The URL that will be called whenever the hook is triggered. Sensitive data will be obfuscated in responses.

filtersarray<object>
merchantReferenceKeysobject2 fields

Must contain either 'include' or 'exclude', but not both.

json
{
  "event": "customer-created",
  "version": 1,
  "url": "https://foo:bar@foobar.tld/notifiy",
  "id": 1,
  "filters": [
    {
      "merchantReferenceKeys": {
        "include": [
          "string"
        ],
        "exclude": [
          "string"
        ]
      }
    }
  ]
}

Response

Returns 201 with an object. Read it in later steps with {{createANewWebhookSubscription.response.data.<field>}}.

idinteger

The unique webhook identifier.

eventstring

Name of the hook event.

versioninteger

The version of the hook.

urlstring

The URL that will be called whenever the hook is triggered. Sensitive data will be obfuscated in responses.

filtersarray<object>
merchantReferenceKeysobject2 fields

Must contain either 'include' or 'exclude', but not both.

json
{
  "event": "customer-created",
  "version": 1,
  "url": "https://foo:bar@foobar.tld/notifiy",
  "id": 1,
  "filters": [
    {
      "merchantReferenceKeys": {
        "include": [
          "string"
        ],
        "exclude": [
          "string"
        ]
      }
    }
  ]
}

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.

Create a new webhook subscription — SCAYLE Admin — Documentation