Business Dishes

Return all dishes for specific business.

Parameters
  • includequery string

    Include associations (delimited with comma). Available associations: pictures, dish_option_categories, business, category.

    Example: business,category

  • pagequery string

    Page offset to fetch.

  • per_pagequery integer

    Number of results to return per page.

  • idpath integerRequired

    Return all dishes by the specific business id. You can retrieve this id from ...

GET/api/v1/businesses/{id}/dishes

{
  const res = await fetch(`${BASE_URL}/api/v1/businesses/${id}/dishes`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json'
    }});
  const data = await res.json();
}

RESPONSE

{
  "data": [
    {
      "id": "ef7eccdc-e214-438d-8cdb-4d4f04efa593",
      "type": "dishes",
      "links": {
        "self": "/dishes/ef7eccdc-e214-438d-8cdb-4d4f04efa593"
      },
      "attributes": {
        "currency": "GBP",
        "description": "eggs, beans, and everything you like",
        "name": "english breakfast",
        "on-uber-eats": true,
        "price-per-item-cents": 699,
        "sku-ref": "BR_1",
        "unavailable": false
      },
      "relationships": {
        "pictures": {
          "links": {
            "self": "/dishes/ef7eccdc-e214-438d-8cdb-4d4f04efa593/relationships/pictures",
            "related": "/dishes/ef7eccdc-e214-438d-8cdb-4d4f04efa593/pictures"
          }
        },
        "dish-option-categories": {
          "links": {
            "self": "/dishes/ef7eccdc-e214-438d-8cdb-4d4f04efa593/relationships/dish-option-categories",
            "related": "/dishes/ef7eccdc-e214-438d-8cdb-4d4f04efa593/dish-option-categories"
          }
        },
        "business": {
          "links": {
            "self": "/dishes/ef7eccdc-e214-438d-8cdb-4d4f04efa593/relationships/business",
            "related": "/dishes/ef7eccdc-e214-438d-8cdb-4d4f04efa593/business"
          }
        },
        "category": {
          "links": {
            "self": "/dishes/ef7eccdc-e214-438d-8cdb-4d4f04efa593/relationships/category",
            "related": "/dishes/ef7eccdc-e214-438d-8cdb-4d4f04efa593/category"
          }
        }
      }
    },
  ],
  "meta": {
    "total-count": 27,
    "total-pages": 3
  }
}