Boostigo Developers

Test Webhook

You can test your endpoint without spending anything.

#From the Client Dashboard

  1. Open API Keys → Webhook settings for the key.
  2. Enter your https:// URL and save.
  3. Click Send test webhook. Boostigo sends an order.success sample with a fake order_id (BST-LKE-TEST0000), signed with your real webhook secret.
  4. The dialog tells you whether your endpoint answered 2xx; the delivery (request, response, HTTP status) is logged under Orders.

#Locally with the test vector

Use the signature example to sign a sample body yourself and POST it to your local server, e.g.:

SECRET="whsec_yoursecret"
TS=$(date +%s)
BODY='{"event":"order.success","data":{"order_id":"BST-LKE-TEST0000","request_id":"TEST-1","platform":"likee","status":"success","diamond":100,"amount":"2.00","currency":"USD"}}'
SIG=$(printf '%s.%s' "$TS" "$BODY" | openssl dgst -sha256 -hmac "$SECRET" | sed 's/^.* //')
curl -X POST http://localhost:3000/api/boostigo/webhook \
  -H "Content-Type: application/json" \
  -H "X-Boostigo-Event: order.success" -H "X-Boostigo-Delivery: evt_LOCAL01" \
  -H "X-Boostigo-Timestamp: $TS" -H "X-Boostigo-Signature: sha256=$SIG" \
  --data "$BODY"

#Checklist

  • [ ] Endpoint is reachable from the internet over HTTPS (valid certificate).
  • [ ] Raw body is used for verification.
  • [ ] Returns 2xx in under 15 s.
  • [ ] Handles duplicate deliveries.
  • [ ] Ignores unknown events gracefully (new events may be added later).