Create test webhook
jami_create_test_webhookCreate a signed JamiDev webhook delivery to test your handler locally without a real event, optionally POSTing it to a target URL and reporting the response status.
Instructions
Build a correctly signed JamiDev webhook delivery for testing a handler locally — no real event needed.
Args:
type: 'order.created' | 'order.completed' | 'benefit.granted' | 'checkout.session.expired' | 'withdrawal.paid' | 'withdrawal.failed'.
secret: signing secret (defaults to JAMI_WEBHOOK_SECRET; any string works for a local test).
data: optional fields to merge over the realistic sample payload.
livemode: default false (sandbox).
target_url: optional. When set, the delivery is POSTed there (e.g. "http://localhost:3000/webhooks/jami") and the response status is reported.
Returns: { payload, signature, headers, curl } — the exact body and X-JamiDev-Signature to send, plus delivery_status when target_url is set. Handlers must verify the RAW body and reply 2xx within 10 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| type | Yes | ||
| secret | No | ||
| livemode | No | ||
| target_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| curl | Yes | ||
| headers | Yes | ||
| payload | Yes | ||
| signature | Yes | ||
| delivery_error | No | ||
| delivery_status | No |