POST Venues For Favorite Item
Returns the nearby stores where this favorite is currently in stock, ordered by distance — the "where can I get my usual?" query.
Despite being a POST, this is a read. The geo-search parameters travel in the body, matching the other venue searches.
An empty venues array means the product is not in stock anywhere nearby, which is a normal result rather than an error.
Path Parameters
- Type: integerfavorite
_item _id requiredThe
favorite_item_idfrom the favorites list
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Type: stringlatituderequired
- Type: stringlongituderequired
- Type: integerlimit
Capped at 50
- Type: integerorder
_type Integer numbers.
- Type: integerpage
Integer numbers.
- Type: integerper
_page Integer numbers.
- Type: numberradius
Search radius in metres
Responses
- application/json
- 401
Missing or invalid customer token.
- 422
latitudeorlongitudeis missing or malformed.
curl https://api-public-demo.menu.app/api/customer-accounts/favorite-items/55 \
--request POST \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"latitude": "41.879",
"longitude": "-87.63",
"radius": 5000,
"limit": 20
}'
{
"status": "OK",
"code": 200,
"data": {
"venues": [
{
"distance": 812.4,
"distance_in_miles": 0.5,
"venue": {
"id": 3540,
"uuid": "4fac4dfc-3d0e-4b9f-8081-8448be89013b",
"name": "South Corona",
"city": "Corona",
"address": "2320 Compton Avenue"
}
}
]
}
}