Drive Refunds API Specification (0.0.3)
Last updated: September 21, 2022
Release Notes
0.0.3 (internal release)
- update RefundResult code selection
0.0.2 (internal release)
- add unsupported_payment_method and blocked rejected refund result code
0.0.1 (internal release)
- initial version
- added process refunds API
Process a Refund
Process a refund for an order. The API will determine whether the refund should be granted or rejected.
path Parameters
external_delivery_id required | string/[a-zA-Z0-9-._~]+/ Example: D-1763 Unique (per developer) ID of the delivery. |
Request Body schema: application/json
refund_reason required | string (RefundReason) Enum: "cancelled_order" "delivered_late" "delivered_early" "never_delivered" "entire_order_wrong" "missing_main" "missing_side" "incorrect_items" "poor_delivery_experience" The reason for the refund. |
Responses
Request samples
- Payload
Content type
application/json
{- "refund_reason": "cancelled_order"
}
Response samples
- 200
- 400
- 403
- 404
- 409
- 422
- 500
Content type
application/json
{- "refund_reason": "cancelled_order",
- "message": "string",
- "code": "doordash_cancelled",
- "tip_refund": 0,
- "order_value_refund": 0,
- "delivery_fee_refund": 0,
- "status": "partial_refund"
}