Notifications / Webhooks

Authorisation Notification

We send this notification when a single or frequent payment is successfully authorised. The body is plain JSON: it isn't encrypted, encoded or signed, and every value, amounts included, is a string. If you set a username and password in the backoffice, we send them as HTTP Basic auth. See the webhooks guide for security, retries and duplicates.

postWebhookyourAuthorisationNotificationEndpoint

Headers

x-easypay-code, string

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.

User-Agent, string required
Example:EasypayNotification/2.0

Always EasypayNotification/2.0.

Payload

NotificationAuthorisation required
id, string uuid

The unique identifier for the notification

value, string

The monetary amount, as a decimal string (for example "10.5" or "40"). Parse it as a decimal, not a float.

currency, string

ISO 4217 currency code

key, string

Merchant identification key

expiration_time, string

The expiration time for the payment. Format YYYY-MM-DD HH:MM:SS, with no timezone offset. Empty when the payment has no expiration.

method, string

Payment method used

customer, object
account, object
authorisation, object

Example payload

{
  "id": "131d25c8-404d-4075-a264-67091620b0b3",
  "value": "10.5",
  "currency": "EUR",
  "key": "Example Key",
  "expiration_time": "2025-12-26 10:32:45",
  "method": "MBW",
  "customer": {
    "id": "00ef522f-6a34-4d03-8448-834830cabb91",
    "name": "Josefa Gomes",
    "email": "customer@example.com",
    "phone": "921234567",
    "phone_indicative": "+351",
    "fiscal_number": "PT123456789",
    "key": "Customer Key"
  },
  "account": {
    "id": "131d25c8-404d-4075-a264-67091620b066"
  },
  "authorisation": {
    "id": "131d25c8-404d-4075-a264-67091620b0b3"
  }
}

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.