Simulator
Send a test event to one of your endpoints and see what was sent and what your server answered.
Developers → Simulator sends one test event to one of your endpoints and shows, on the same page, the request Fungies sent and what your server answered. Use it while you write your webhook handler, and before you go live, to check that it reads every event it is subscribed to.
Send a test event
- Pick the Endpoint under Send a test event. Only endpoints of the mode you are in are offered; if you have none, add one under Webhooks first.
- Pick the Event. Only events the endpoint is subscribed to are offered: a test of any other event would tell you nothing.
- Read Sample data: the shape of what will be sent. It is for reading only; the test sends sample data of its own, so you cannot edit the body yet.
- Click Send test event. In live mode the dashboard asks you to confirm first: the event is marked as a test and does not count as a real event.
A test event is signed like a real one. You can tell it apart: liveMode is false,
aggregate.id starts with test_ and sequence is 0.
Read the result
Result shows Waiting until your server answers, then Passed (delivered) or Failed (gave up). While it waits, the page refreshes by itself.
- Request we sent: the URL, the Headers and the Body. The signature is hidden; check it with your signing secret.
- Endpoint response: the Status code, how long it took, and the Body, cut after the first 8,192 characters.
If your server did not accept the event, Fungies retries it as with any event, and the result updates while you wait. If the page stops waiting without a final answer, follow the call on the endpoint under Webhooks.
Recent simulations lists what you sent from this page. It is kept only until you reload.
Example: check that your handler reads a refund
- Make sure your test endpoint is subscribed to
order.refunded; if not, click Edit on it under Webhooks and tick the event. - In Simulator, pick the endpoint and
order.refunded, read the Sample data, and click Send test event. - Read Result: it stays on Waiting with "Your server did not accept it yet", and
Endpoint response shows status
400with "unknown event" in the body. Your handler does not know the event yet; Fungies will try it again. - Add the case to your handler, deploy, and click Send test event again. Result reads
Passed, status
200.
Next steps
Last updated