Skip to content

Webhooks

Accept an event quickly, prove it is authentic, and process it once.

Verify the raw delivery, reject stale events, acknowledge quickly, and process each event once.

Implementation checklist

  1. Read raw bytes

    Do not parse or transform the body before signature verification.

  2. Check time and signature

    Reject stale timestamps and signatures that do not match the supplied secret.

  3. Acknowledge quickly

    Return the documented success response before starting long-running work.

  4. Deduplicate

    Use the event ID as the durable once-only processing boundary.

Request and result

Delivery headers
Saleringo-Event-Id: evt_...
Saleringo-Delivery-Timestamp: 2026-08-18T00:00:00Z
Saleringo-Delivery-Signature: v1=...
Receiver behavior
verify(rawBody, timestamp, signature)
storeOnce(eventId)
enqueue(parsedEvent)
return acceptedResponse()

Failure handling

API failure handling
StatusMeaningClient action
401Credential is missing, expired, or invalidStop; refresh through the approved server flow.
403Identity lacks the exact permission or scopeDo not retry; request an access review.
409State, version, idempotency, or approval conflictsRead the conflict and reconcile before another command.
422The request does not match the published schemaCorrect the named fields; do not retry unchanged.
429The integration is sending too quicklyHonor the supplied wait guidance and apply backoff.
5xxA temporary service failure may have occurredPreserve IDs; retry only when the operation permits it.

Implementation support

Do not send credentials, customer secrets, or raw payment data. Include the contract version, environment, operation, timestamp, and non-sensitive correlation ID.