Trigger a test webhook

Triggers a test webhook.

SecuritySecretApiKey or JWT
Request
Request Body schema: application/json

Webhook resource.

method
required
string
Enum: "GET" "POST" "PUT" "PATCH" "DELETE"
url
required
string <uri>

URL that triggers when a specified event occurs.

credentialHash
required
string

Hash from credentials to use for authentication by the specified URL.

eventsFilter
Array of strings (GlobalWebhookEventType)
Default: []

Array of system event types.

Items Enum: "aml-list-possibly-matched" "application-instance-disabled" "application-instance-enabled" "balance-transaction-settled" "credit-memo-applied" "credit-memo-created" "credit-memo-modified" "credit-memo-partially-applied" "credit-memo-voided" "customer-created" … 77 more
status
string (OnOff)
Default: "active"
Enum: "active" "inactive"
Array of objects (WebhookHeader)

Webhook headers.

Array
name
required
string

Name of the property.

value
required
string

Value of the property.

status
string (OnOff)
Default: "active"
Enum: "active" "inactive"
body
string or null

Webhook request body. If this value is null, the default payload for the specified event is used. Template placeholders are permitted.

Invalid placeholders render as an empty strings. For example, Hello {{invalid.placeholder}}! is rendered as Hello !.

For more information, see Placeholders.

filter
string

Filter that determines whether to send the webhook. This field requires a special format. Use , for multiple allowed values. Use ; for multiple fields.

For more information, see Using filters.

Responses
204

Test webhook triggered.

401

Unauthorized access. Invalid credentials used.

403

Access forbidden.

422

Invalid data sent.

post/previews/webhooks
Request samples
application/json
{
  • "eventsFilter": [ ],
  • "status": "active",
  • "method": "GET",
  • "headers": [
    ],
  • "credentialHash": "string",
  • "body": "string",
  • "filter": "string"
}
Response samples
application/json
{
  • "status": 401,
  • "title": "string",
  • "detail": "string",
  • "instance": "string"
}