Important Thunder Webhooks work together with the Thunder Script. The script tracks visitors and attribution, while webhooks provide product and order data. Both integrations are required for complete attribution.
Visitor lands on website
│
▼
Thunder Script Detects (Visit&Login)
│
▼
Customer places an order
│
▼
Your backend sends
order.create
│
▼
Thunder matches the order
with the visitor
│
▼
Purchase is attributed
to the correct campaign
│
▼
Dashboard is updatedproduct.create
│
▼
product.update (optional)
│
▼
order.create
│
▼
order.update (optional)
│
▼
order.refunded (if applicable)order.refunded event.| Event | Trigger | Purpose |
|---|---|---|
| order.create | A new order is created | Creates a purchase in Thunder |
| order.update | Order details change | Updates an existing purchase |
| order.refunded | Refund issued | Updates revenue and attribution |
| Event | Trigger | Purpose |
|---|---|---|
| product.create | Product created | Creates a product inside Thunder |
| product.update | Product updated | Updates an existing product |
| Name | Decription |
|---|---|
| Order | The Orders Payload schema through it's Webhook |
| Product | The Product schema through the Orders Webhook |
| Customer | The Customer schema through the Orders Webhook |
| Products | The Products Payload schema through it's Webhook |
order.update multiple times updates the existing order.product.update multiple times updates the existing product.| Status | Meaning |
|---|---|
| 200 OK | Request processed successfully |
| 400 Bad Request | Invalid payload |
| 401 Unauthorized | Invalid or missing API Key |
| 403 Forbidden | Authentication failed |
| 404 Not Found | Invalid endpoint |
| 409 Conflict | Duplicate or conflicting resource |
| 500 Internal Server Error | Temporary Thunder error |
x-api-key header.order.update event.order.refunded event with the updated order data.