Generic Notification
We send this notification on every state transition of a payment resource. The body is plain JSON: it isn't encrypted, encoded or signed. If you set a username and password in the backoffice, we send them as HTTP Basic auth. To confirm a notification is genuine, fetch the resource with the id from the API. See the webhooks guide for security, retries and duplicates.
Headers
The code you set next to this notification URL in the backoffice, sent back unchanged. Only present if you configured one. Compare it in constant time to check the notification came from us.
Always EasypayNotification/2.0.
Payload
ID of the related notified resource
Merchant identification key
Human-readable messages about the transition. Can be null.
When the transition happened. Format YYYY-MM-DD HH:MM:SS, with no timezone offset.
Example payload
{
"id": "1bbc14c3-8ca8-492c-887d-1ca86400e4fa",
"key": "Example Key",
"type": "capture",
"status": "success",
"messages": [
"Your request was successfully created"
],
"date": "2022-01-01 10:20:30"
}Response
Answer with any status from 200 to 204 within 20 seconds to acknowledge the notification. We ignore the response body and headers. Any other final status, a TLS error or a timeout counts as a failure, and we retry up to ten more times over roughly 95 minutes. We follow redirects, but a 301, 302 or 303 turns the POST into a bodiless GET, so register the final URL. See the webhooks guide.
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.