Webhook Samples

Testing Connectivity

When you use the Test Connectivity button, a successful test will generate a 200 message in the back office UI.

The webhook payload for a connectivity request looks like this.

	"mode": "test",
	"eventDate": "2017-09-06T19:54:05Z",
	"eventType": "test",
	"attemptNumber": 1

Testing Webhooks

When you use the Send Test Webhook button, you can select the event type that you want to simulate. The following test response is for a completed payment.

The following table describes the elements in the webhook response:

Webhook Response Elements
Element Type Constraints Required Description
id String Max = 36 Yes This is the webhook event ID.
resourceId String Max = 255 Yes The ID of the resource that has changed.
mode String live / test Yes
  • live – This is a production event
  • test – This is a test event created sent from the merchant back office.
eventDate dateTime UTC formatted date Yes This is the date and time the event occurred.
eventType String Max = 255 Yes This is the type of event.
attemptNumber Integer Yes This is the number of times this event has been sent.
links Complex Yes This is a link to the resource.
payload Complex No

The payload varies depending on the eventType.

Did you find this page useful?