Refunded (Refunded)
POST https://my-api.example.com/first-delivery/webhook
status: Refunded (no status_v3)
Sent when a DSP reports a refund. This is an event, not a lifecycle transition, and its provider-specific shape differs from standard order events.
- The order reference is
external_id(snake_case);orderId,externalId, andstatus_v3are absent. - Amounts use the smallest currency unit (cents for USD).
- Refund fields such as
reason,reason_comment,refund_fees, andrefund_order_itemsvary by provider and may be absent. trackerLinkFleetandfleetNameare included on new payloads but may benull.
Subscribe with event_filter: ["Refunded"]. Process idempotently using stable provider/delivery identifiers and refund details.
Request body
Section titled “Request body”{ "status": "Refunded", "provider": "doordash", "external_id": "ABC-123456", "dsps_delivery_id": "d7a91c3e-55b2-4f0a-9e61-0c8b2f4d7a19", "created_at": "2026-10-01T15:02:44.000Z", "total_partner_refund": 1250, "total_dsp_refund": 1250, "currency_code": "USD", "reason": "missing_items", "reason_comment": "Customer reported missing items", "refund_order_items": [ { "reason": "missing_item", "party_at_fault": "dasher", "provider_refund_amount": 1250 } ], "trackerLinkFleet": "https://track.example-dsp.com/d/8f2c41", "fleetName": "Example Fleet"}Examples
Section titled “Examples”curl --request POST 'https://my-api.example.com/first-delivery/webhook' \ --header 'Content-Type: application/json' \ --data '{ "status": "Refunded", "provider": "doordash", "external_id": "ABC-123456", "dsps_delivery_id": "d7a91c3e-55b2-4f0a-9e61-0c8b2f4d7a19", "created_at": "2026-10-01T15:02:44.000Z", "total_partner_refund": 1250, "total_dsp_refund": 1250, "currency_code": "USD", "reason": "missing_items", "reason_comment": "Customer reported missing items", "refund_order_items": [ { "reason": "missing_item", "party_at_fault": "dasher", "provider_refund_amount": 1250 } ], "trackerLinkFleet": "https://track.example-dsp.com/d/8f2c41", "fleetName": "Example Fleet"}'const response = await fetch("https://my-api.example.com/first-delivery/webhook", { "method": "POST", "headers": { "Content-Type": "application/json" }, "body": "{\n \"status\": \"Refunded\",\n \"provider\": \"doordash\",\n \"external_id\": \"ABC-123456\",\n \"dsps_delivery_id\": \"d7a91c3e-55b2-4f0a-9e61-0c8b2f4d7a19\",\n \"created_at\": \"2026-10-01T15:02:44.000Z\",\n \"total_partner_refund\": 1250,\n \"total_dsp_refund\": 1250,\n \"currency_code\": \"USD\",\n \"reason\": \"missing_items\",\n \"reason_comment\": \"Customer reported missing items\",\n \"refund_order_items\": [\n {\n \"reason\": \"missing_item\",\n \"party_at_fault\": \"dasher\",\n \"provider_refund_amount\": 1250\n }\n ],\n \"trackerLinkFleet\": \"https://track.example-dsp.com/d/8f2c41\",\n \"fleetName\": \"Example Fleet\"\n}"})const data = await response.json()import requests
response = requests.request( "POST", "https://my-api.example.com/first-delivery/webhook", headers={ 'Content-Type': 'application/json'}, data="{\n \"status\": \"Refunded\",\n \"provider\": \"doordash\",\n \"external_id\": \"ABC-123456\",\n \"dsps_delivery_id\": \"d7a91c3e-55b2-4f0a-9e61-0c8b2f4d7a19\",\n \"created_at\": \"2026-10-01T15:02:44.000Z\",\n \"total_partner_refund\": 1250,\n \"total_dsp_refund\": 1250,\n \"currency_code\": \"USD\",\n \"reason\": \"missing_items\",\n \"reason_comment\": \"Customer reported missing items\",\n \"refund_order_items\": [\n {\n \"reason\": \"missing_item\",\n \"party_at_fault\": \"dasher\",\n \"provider_refund_amount\": 1250\n }\n ],\n \"trackerLinkFleet\": \"https://track.example-dsp.com/d/8f2c41\",\n \"fleetName\": \"Example Fleet\"\n}",)response.raise_for_status()
