LOCALTR / FREE TOOLS

Resolve your first webhook failure locally.

Download a dependency-free Node.js example, receive 422 for a missing currency field, then add TRY and verify a 200 response.

Download. Start. Compare two responses.

Requires Node.js 24 or later. No dependency installation; the server listens only on 127.0.0.1. Review the downloaded source before running it.

Download webhook starter (.tar.gz)

SHA-256 · Turkish and English instructions included.

tar -xzf localtr-webhook-starter.tar.gz
cd localtr-webhook-starter
node server.mjs

Reproduce the failure in a second terminal

curl -i http://127.0.0.1:4545/webhook \
  -H 'Content-Type: application/json' \
  --data '{"event":"payment.test"}'

Expected response: 422. Now add currency to the body:

curl -i http://127.0.0.1:4545/webhook \
  -H 'Content-Type: application/json' \
  --data '{"event":"payment.test","currency":"TRY"}'

Expected response: 200. This example makes no payment and calls no external service. Stop the server with Ctrl+C.

Your next step

Inspect and edit a webhook replay

Learn the concepts

Optionally, get notified when the Mac download opens

All free tools