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

  • The favorite_item_id from the favorites list

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Body

required
application/json
  • Capped at 50

  • Integer numbers.

  • Integer numbers.

  • Integer numbers.

  • Search radius in metres

Responses

  • application/json
  • Missing or invalid customer token.

  • latitude or longitude is missing or malformed.

Request Example for post/customer-accounts/favorite-items/{favorite_item_id}
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"
        }
      }
    ]
  }
}