Skip to content

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, and status_v3 are absent.
  • Amounts use the smallest currency unit (cents for USD).
  • Refund fields such as reason, reason_comment, refund_fees, and refund_order_items vary by provider and may be absent.
  • trackerLinkFleet and fleetName are included on new payloads but may be null.

Subscribe with event_filter: ["Refunded"]. Process idempotently using stable provider/delivery identifiers and refund details.

{
"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"
}
Terminal window
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"
}'