Skip to main content

Cancel a last mile delivery order

POST /v2/fulfillment/lastmile/orders/{order_id}/cancel

Cancels a last mile delivery order.

Security#

NameInDescription
AuthorizationheaderThe Authorization header with the bearer token acquired during authentication.

Parameters#

NameInRequiredDescription
order_idpathThe ID of the order.

Request Examples#

curl --request POST \  --url 'https://connect.instacart.com/v2/fulfillment/lastmile/orders/{order_id}/cancel' \  --header 'Accept: application/json' \  --header 'Authorization: Bearer <token>' \  --header 'Content-Type: application/json'

Response Examples#

{  "id": "12345676789012345678780",  "status": "canceled",  "order_url": "https://example.com/example-order",  "created_at": "2018-02-22T00:00:00Z",  "cancellation_reason": "",  "locale": "en_US",  "fulfillment_details": {    "window_starts_at": "2018-02-22T00:00:00Z",    "window_ends_at": "2018-02-22T00:00:00Z"  }}