Webhooks can be created by provinding the below listed parameters.
Setting a webhook secret allows you to ensure that POST requests sent to the payload URL are from Paylias. When you set a secret, you’ll receive the X-Sfpy-Signature header in the webhook POST request.
The events array allows your webhook to subscribe to events that you’re interested in. Please note however that no two webhooks can be subscribed to the same event. If there is an attempt to create or update a webhook where any one event in the list is already subscribed to by a previosuly created webhook, the API will return an error with status code 409
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Partner ID header used for authorization
The Idempotency Key - usually a UUID
Request to create a new webhook
Whether the webhook is enabled
true
Endpoint URL of the webhook
"https://example.com/webhook"
List of events the webhook subscribes to
Name of the webhook
"Payment Webhook"
Description of the webhook
"Payment notifications"
Secret for webhook signature verification
"ASDLKJASDFLKJ121232342"