Skip to main content

Get order location

GET /v2/post_checkout/orders/{order_id}/location

Retrieves the current location of an order while the order is being delivered to the customer. The location is returned as geographic coordinates. If you send this request while the order is not in the DELIVERING state, the response is empty.

Security

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

Parameters

NameInTypeRequiredDescription
order_idpathstringRequiredThe order ID.

Request

None.

Request examples

curl --request GET \
--url 'https://connect.instacart.com/v2/post_checkout/orders/{order_id}/location' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'

Response

FieldTypeRequiredDescription
coordinatesCoordinatesRequiredThe coordinates.

Coordinates Object

FieldTypeRequiredDescription
latitudenumberRequiredThe latitude.
longitudenumberRequiredThe longitude.

Response examples

200 Success

{
"coordinates": {
"latitude": 1,
"longitude": 1
}
}