For request headers, event types, payload fields, and examples, see Webhooks.

Delivery and routing

  • A payment’s notify_url receives only events for that payment. A refund’s notify_url receives only events for that refund.
  • If notify_url is omitted, Paiera uses the merchant’s enabled Portal webhook for the event type. If neither is available, no webhook is sent; use the query API.
  • Return any HTTP 2xx to acknowledge delivery. Other responses, connection errors, and timeouts are failed deliveries.
  • Delivery uses at-least-once semantics. Events may be duplicated and may arrive out of order.
  • Persist event_id and process events idempotently. The same business event keeps the same ID across message redelivery, automatic retries, and manual resends.
  • Initial delivery is immediate. There are up to 10 retries, each measured from the previous failed attempt.

Verify the signature

Download Paiera’s webhook verification public key from Portal > Settings > Developer. It is separate from the API secret used for Basic authentication. Rotating the API secret creates a new secret; the previous one remains valid until the merchant-selected expiration time. When signature headers are present:
  1. Read the original JSON request bytes without reordering or reserializing them.
  2. Base64-decode X-Paiera-Signature.
  3. Verify the decoded signature against the original bytes using the Paiera RSA public key and SHA256withRSA.
  4. Confirm that the event ID and type headers match the body and handle the event idempotently.
Only process a signed event after verification succeeds. For troubleshooting, provide event_id and X-Paiera-Trace-Id.