Test Webhook
You can test your endpoint without spending anything.
#From the Client Dashboard
- Open API Keys → Webhook settings for the key.
- Enter your
https://URL and save. - Click Send test webhook. Boostigo sends an
order.successsample with a fakeorder_id(BST-LKE-TEST0000), signed with your real webhook secret. - 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
2xxin under 15 s. - [ ] Handles duplicate deliveries.
- [ ] Ignores unknown events gracefully (new events may be added later).