Menu
Create a new webhook subscription
Create a new webhook subscription
POST
/webhooks/subscriptionsUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Create a new webhook subscription action (under Webhooks).
- 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.
{
"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>}}.
{
"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.
Was this page helpful?