Developers
Incoming Webhooks
Payments from Stripe, meetings from Calendly, email from Postmark and SendGrid, and anything your own systems post: each lands on the right person’s path, with no code to write.
Incoming webhooks come with any upgraded token plan. See Pricing.
Set Up An Address
In Stattery, open the site, then Site Settings in the left menu and the Integrations tab. In Incoming Webhooks:
- Choose the system: Stripe, Calendly, Postmark, SendGrid or Any system (JSON). The card says what to do on the other side.
- Give it a name, and paste the signing secret if the system has one.
- Press Make address, then Copy address, and paste it into the other system.
- The row shows what came last, how many events arrived, and the last one refused with its reason. Remove stops the address at once.
Keep the address private. It works like a password: anyone who has it can post to it. Up to 20 addresses a site.
These are addresses Stattery receives on. To have Stattery post to your systems, see Webhooks.
The Systems
| System | Set up there | What you see in Stattery |
|---|---|---|
| Stripe | Developers, Webhooks: add an endpoint with the address and the events checkout.session.completed and charge.refunded (or refund.created, not both). Paste the endpoint’s signing secret (whsec_…) in Stattery; it is required, and every call is checked. | Order Paid with the payment as order_id, total (zero-decimal currencies included), currency, billing_email and your metadata as meta_*. Order Refunded with refund_id, refund_amount, refund_reason. Both count in sales and revenue. |
| Calendly | Make a webhook subscription (API, webhook_subscriptions) with the address and invitee.created and invitee.canceled. Paste its signing key to have every call checked (optional). | Meeting Booked and Meeting Canceled, with the meeting, start, end, location and reason. |
| Postmark | The message stream’s Webhooks: add the address and tick Delivery, Open, Click and Bounce. | Email Delivered, Email Opened, Email Clicked, Email Bounced. |
| SendGrid | Settings, Mail Settings, Event Webhook: add the address and tick Delivered, Opened, Clicked and Bounced. | The same four events. An open SendGrid marks as a machine open gets machine: true. |
| Any system (JSON) | Post JSON to the address: one object, an array, or { "events": [...] }, up to 100. | An event named as you choose (below). |
Each event joins the person’s path, matched by their email; Stattery keeps only the email’s hash. Every event says src: webhook and has via, the system’s name, so the From filter can show them on their own.
Trying It Out
- Stripe test-mode events become Stripe Test Payment and Stripe Test Refund. They show on the path but never count as sales, so you can try the whole thing with Stripe’s test cards.
- Stripe’s test events and a fresh Calendly booking work too: watch the row in Incoming Webhooks for the event, or the reason it was refused.
- For Any system (JSON), post a sample with curl to the address you copied and look for it on the row:
curl "PASTE-THE-ADDRESS-HERE" \
-H "Content-Type: application/json" \
-d '{ "event": "Ticket Opened", "email": "[email protected]", "id": "T-1042", "ticket": { "priority": "high" } }'
Any System (JSON)
| Setting | Default | Means |
|---|---|---|
| Event name (fixed) | Every event gets this name, for example Ticket Opened. | |
| or the field that holds it | event | Otherwise the name is read from this field. |
| Email field | email | Ties the event to the person. It is hashed and left out of the properties. |
| Event id field | id | Sent twice, an event with the same id counts once. |
Fields can be dotted paths, such as customer.email. The rest of the JSON becomes properties, flattened: ticket.priority becomes ticket_priority.
Answers And Retries
- Stattery answers
200 { "ok": true, "recorded": 1 }at once. If it couldn’t save, it answers503, and Stripe, Calendly, Postmark and SendGrid all send again by themselves. - Every system’s own event id is kept, so a resend counts once.
- A wrong address is turned away without touching your data. A removed address answers
404. - A bad Stripe or Calendly signature, or a Stripe one more than 5 minutes old, is refused and shows as the row’s last refusal.
- Each event counts the same as one from the plugin.