Delivery and routing
- A payment’s
notify_urlreceives only events for that payment. A refund’snotify_urlreceives only events for that refund. - If
notify_urlis 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
2xxto 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_idand 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:- Read the original JSON request bytes without reordering or reserializing them.
- Base64-decode
X-Paiera-Signature. - Verify the decoded signature against the original bytes using the Paiera RSA public key and
SHA256withRSA. - Confirm that the event ID and type headers match the body and handle the event idempotently.
event_id and X-Paiera-Trace-Id.