Webhooks

Test Webhooks

Send a test event to your endpoint and read every call and answer in the dashboard.

Test your handler before it hears about real orders. Work in test mode: add the endpoint while the dashboard is in test mode, and it only ever hears about test events.

Send a test event

Open the endpoint

Developers → Webhooks, then the endpoint you want to try

Send a test

Click Send a test, pick an event and click Send it. You can pick only events the endpoint hears about.

Read the result

Open History to see the call, what we sent and what your endpoint answered

A test event looks like a real one, with sample data, and is signed the same way. You can tell it apart:

  • liveMode is false,
  • aggregate.id starts with test_,
  • sequence is 0.

It is delivered and retried like any other event, so a test is also a way to check your endpoint answers 2xx in time.

Read what happened

History lists the recent calls to the endpoint, newest first, with the event, its state and the number of tries. Click Show older calls to go further back.

StateMeaning
WaitingQueued, or waiting for its next try
SendingA try is under way
DeliveredYour endpoint answered 2xx
Gave upEvery try failed. Nothing more happens unless you send it again.

Open a call with View to see each try:

  • the headers we sent (the signature is hidden here; check it with your own secret),
  • the payload, while we still keep it,
  • your endpoint's status code and the first 8,192 characters of its answer,
  • why a try failed, for example a timeout, a 5xx, or an address we could not reach.

Send a call again

A call that is Delivered or Gave up can be sent again with Send again. It goes out with the same event id, so a handler that skips ids it has seen will skip it.

Test on your own machine

Your endpoint must be a public https address on port 443. To run the handler on your laptop, put a tunnel in front of it, such as ngrok:

# your handler listens on port 3000
ngrok http 3000

Add the https://... address ngrok prints, plus your path (for example https://abc123.ngrok.app/webhooks/fungies), as a test-mode endpoint, then send a test event.

Before you go live

Your handler checks the signature on the raw body
It answers 2xx within 10 seconds
It handles each event id once, and ignores a sequence lower than one it has seen
A live-mode endpoint exists, with its own signing secret stored on your server

Next steps

Last updated