Registering Webhooks
To register a new webhook, you need to have a URL that Decisionly can call. You can configure a new webhook from your dashboard settings. Add your URL and pick the events you want to listen for.Consuming Webhooks
When you receive a webhook request from Decisionly, check thetype attribute to see what event caused it.
Webhook Events
case.created- Triggered when a case is createdcase.chargeback_needs_review- Triggered when a case requires manual reviewcase.chargeback_filed- Triggered when a chargeback is filed with the card networkcase.chargeback_represented- Triggered when merchant responds with evidencecase.prearb_filed- Triggered when a pre-arbitration case is filed with the card networkcase.won- Triggered when a cardholder wins a casecase.lost- Triggered when a merchant wins a casecase.closed- Triggered when a case is closed without being filed
Webhook Payload
Webhooks do not contain any sensitive information. They only contain the IDs of the objects that were affected by the event. So for case events, thedata attribute will contain the case_id. You should then call the API to fetch the case and verify the event.
Example Webhook Payload
Responding to Webhooks
You should return a
200 status code to acknowledge the webhook. If you return a different status code, Decisionly will retry the webhook in 30 minutes, up to 24 times (12 hours of retries).