Skip to content

Webhooks

Developers → Webhooks is where PaySigna posts events, and what has arrived.

Needs webhook.read to see, webhook.write to change. Owner, admin and developer hold the write.

The page has two halves: Endpoints (cards, because an account has a handful) and Deliveries (a paged table). Endpoints are per environment — a test endpoint receives nothing from live, and vice versa.

For the protocol itself — the signature header, the payload shape, how to verify it — see Webhooks in the API docs. This page is about the controls.

Each card shows the URL, the description, the status, the subscribed events, and a health block. A red Auto-disabled pill means PaySigna stopped delivering — see below.

Adding, changing and deleting an endpoint, and rotating its secret, each ask for your authenticator code. An endpoint decides where your payment events go.

New endpoint:

Field Required Notes
URL Yes “HTTPS, reachable from the internet, and answering 2xx within the timeout.”
Description No e.g. “The order service.”
Send every event — On by default, “including event types added in future”. Turn it off to name the ones you want.
Timeout (seconds) No How long we wait for your 2xx. 10 unless you change it; at most 60.
Attempts No How many times each delivery is tried in all, the first try included, before it is marked exhausted. 8 unless you change it; 1 to 20. Retries back off exponentially between them.

The event list is read from the platform, not written into the page, so event types added by a deploy are tickable immediately. If you are naming events explicitly, do not forget the dispute ones — dispute.opened, dispute.evidence_required and dispute.resolved. A merchant who is not subscribed to those finds out about a chargeback when somebody happens to open the Disputes page, and the evidence deadline has been running since.

When the endpoint is created the signing secret is shown, once, in the same kind of panel as an API key’s. Copy it. It can be rotated with an overlap if you lose it — milder than losing an API key — but an endpoint whose signature nobody verifies will accept anything posted to it by anybody.

Clicking a card opens it. Five sections.

Health

Field Notes
Consecutive failures The counter that triggers auto-disabling.
Last success / Last failure —
Reason What the last failure was. Start here.

Configuration — endpoint id, environment, subscribed events, when the secret was last rotated, how long the old secret stays valid, and when the endpoint was created.

Change it — “only the fields you touch are sent, so nothing else is overwritten.”

Field Notes
URL Required.
Description —
Timeout (seconds) How long PaySigna waits for your 2xx.
Attempts Retries use exponential backoff between them.

Deliveries — a toggle: “Deliver events to this endpoint.”

Signing secret — rotate it, with two explicit choices:

Choice What happens When to use it
Routine rotation Both the old and new secret sign deliveries for one hour, so your deploy does not have to be instant. Scheduled rotation.
Immediately The old secret stops working at once. A leaked secret.

The platform states which happened in its own words, and the sheet shows that verbatim. Pick wrongly and your own verification starts rejecting live events — which is why this is two labelled choices and not a number field.

Delete — “removes the endpoint and everything queued for it.” Confirms first.

Deleting and disabling are different decisions: disabling stops delivery and keeps the record and the configuration; deleting takes the endpoint, its secret and its queued deliveries with it.

After repeated consecutive failures, PaySigna stops delivering to it.

It was not your choice, so re-enabling is not the fix. The health block names the failure and the count; re-enabling resets the counter and nothing else, and an endpoint that is still broken will be disabled again within the hour. The confirmation says exactly that.

In order:

  1. Read Reason on the health block.
  2. Fix the endpoint — see the checklist below.
  3. Test it yourself from outside your network.
  4. Re-enable.
  5. Replay the deliveries you missed.
Control Type Values
Date range Range picker The last 24 hours by default, 90 days maximum, because the API refuses a wider window.
Status Multi-select Queued, Delivering, Delivered, Failed, Exhausted.
Endpoint One of Narrows to one endpoint.

Cursor-paged: Load more.

Column What it holds
When When the event was raised.
Status See below.
Event The event type.
Endpoint Which URL it was for.
Tries Attempts so far.
Last response Your HTTP status code.
Resource What the event is about — the transaction, dispute or settlement.
Next try When the next retry is due.
Status What it means
queued Waiting to be sent. First attempt happens within seconds.
delivering In flight.
delivered You returned a 2xx.
failed An attempt failed; more are scheduled.
exhausted Every attempt failed. PaySigna will not try again.

An exhausted delivery is an event your system never saw. If it mattered — a settlement, a dispute — reconcile it by reading the API, then replay it.

Field Notes
Delivery id, Event id The event id is what your consumer should deduplicate on.
Event type, Resource —
Sequence Ordering within the stream.
Attempts The count.
Raised / Delivered / Next attempt —
Last error —

Then Attempts — every try, with the response. “Retries back off exponentially, which is why the gaps grow.” Each attempt shows your status code and an excerpt of your response body.

Replay sends the same event again, with the same event id.

Which means a consumer that is not idempotent will process it twice — a second order, a second email, a second ledger entry. The confirmation says so, because that is yours to know and not ours to prevent.

The action is offered only when the platform says the delivery is replayable. A delivery whose endpoint has since been deleted cannot be replayed whatever its status looks like.

Replaying several. Tick deliveries in the list, then Replay {n}: “Each is sent again with the same event id, so an endpoint that is not idempotent will process it twice. Attempt counters are not reset. A delivery that cannot be replayed is skipped and the rest still go.” It needs webhook.write, as one replay does.

  • Ticks cover the page you’re looking at and are cleared when you change page or filter. At most 200 at a time.
  • Each delivery is replayed or skipped on its own, and the result lists the skipped ones with the reason: the endpoint is disabled or auto-disabled, the delivery isn’t failed or exhausted, it’s already queued, or it doesn’t exist.
  • There is no “replay everything that failed”. Filter the list to what you missed, look at it, and tick those.

From the API: POST /v1/webhook-deliveries/bulk-replay with delivery_ids. It returns a batch_id and a result per delivery (reason is not_found, endpoint_auto_disabled, endpoint_disabled, not_replayable or already_queued for a skipped one). Quote the batch_id to support.

Debugging an endpoint that is not receiving

Section titled “Debugging an endpoint that is not receiving”

In this order:

  1. Which environment? A test endpoint receives nothing from live traffic.
  2. Is it subscribed to that event? An endpoint named to three event types receives three event types.
  3. Is it enabled, and not auto-disabled? Check the card.
  4. Is anything arriving at all? Filter Deliveries to that endpoint. If deliveries exist and your app has not seen them, the problem is between your load balancer and your handler, not with us.
  5. What is the last response? 401/403 is your own middleware refusing us — webhooks arrive unauthenticated and are verified by signature. 404 is the wrong path. 5xx is your handler. A timeout is your handler being slow.
  6. Are you returning 2xx before doing the work? A handler that processes the payload before replying will time out under load. Acknowledge, queue, then process.

Three properties, in order of how often their absence causes an incident:

  1. Idempotent on event id. You will receive the same event twice — through a retry, through a replay, or through a network timeout on a delivery that actually arrived.
  2. Verify the signature. An endpoint that does not is an unauthenticated API that writes to your database.
  3. Reply fast, process later. Return 2xx on receipt and do the work out of band.

And do not treat webhooks as the only path. They can be exhausted. A nightly reconciliation against GET /v1/transactions catches what the stream lost.