Webhooks allow your app to receive real-time notifications when events occur in a merchant’s store. Instead of polling the API for changes, OrderProtection pushes events to your server as they happen.Documentation Index
Fetch the complete documentation index at: https://docs.orderprotection.com/llms.txt
Use this file to discover all available pages before exploring further.
Configuring webhooks
When creating or editing your app, you can configure:- Webhook URL — The HTTPS endpoint on your server that will receive webhook payloads
- Webhook Topics — The event types you want to subscribe to
Webhook delivery
When an event occurs, OrderProtection sends an HTTP POST request to your webhook URL:Authentication
Every webhook request includes anx-webhook-secret header. Use this secret to verify that the request originated from OrderProtection and has not been tampered with.
Available topics
Claims
| Topic | Description |
|---|---|
claim/created | A new claim has been filed |
claim/approved | A claim has been approved with resolution details |
claim/denied | A claim has been denied |
Messages
| Topic | Description |
|---|---|
message/created | A new message was sent on a claim |
Protection
| Topic | Description |
|---|---|
protection/added | Protection was added to an order |
protection/removed | Protection was removed from an order |
For detailed payload schemas for each webhook topic, see the Webhooks reference.
Best practices
- Respond quickly — Return a
200status code within 5 seconds. If you need to do heavy processing, acknowledge the webhook and handle the work asynchronously. - Handle duplicates — Webhooks may occasionally be delivered more than once. Use the event ID or resource ID to deduplicate.
- Use HTTPS — Your webhook URL must use HTTPS in production to ensure payloads are encrypted in transit.

