When creating a Drive delivery, include the action_if_unavailable field in the delivery creation request body and set its value to return_to_pickup.
Subscribe to Drive delivery status webhooks; handle the additional webhook events that are fired when a return-to-store is initiated (e.g., dasher en route back to merchant).
When your webhook receives a return-in-progress event, update your internal order state and notify relevant staff at the pickup location.
Confirm that the return is completed by listening for the terminal return status event, then decide on the downstream action (refund, reorder, manual handoff).
Test the full return flow in the DoorDash sandbox environment using test delivery scenarios before enabling in production.
Log all return events with the delivery ID for reconciliation and customer refund processing.
Known gotchas
Return-to-store is an opt-in flag set at delivery creation time; you cannot add it retroactively once the delivery is already in flight.
Not all market areas or Dasher situations support return-to-pickup; DoorDash may still dispose of the package if return is not feasible — handle terminal failure states gracefully.
The DoorDash Drive v2 API uses JWT authentication; ensure your token is valid and not expired before making the delivery creation call, as a failed auth will result in no delivery and no return coverage.
Give your agent this knowledge — and 200+ more routes
One MCP install gives any agent live access to the full route map, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp