Developers

Search the docs

Search guides and headings.

List the menus of a vendor

GET/meals/v1/vendor/{vendor_id}/menu/query/documents
Scope: catalog:read

Returns a page of the menus of one vendor. A menu that is still being prepared or that was retired is never listed. The list leaves out the description of each menu; read one menu to get it.

Needs the catalog:read scope.

Path parameters

  • vendor_idstringrequired

    The ID of the vendor.

    Min length 1 · Max length 200 · Pattern ^[A-Za-z0-9_-][A-Za-z0-9._-]{0,199}$

Query parameters

  • statusenum

    Keep only menus in this status: in_production, upcoming, expired or not_in_production.

    • in_production
    • upcoming
    • expired
    • not_in_production
  • pageinteger

    The page number, from 1.

    Minimum 1 · Default 1

  • sizeinteger

    The page size, at most 50.

    Minimum 1 · Maximum 50 · Default 10

Response 200

  • dataarray of Menurequired

    The menus of the page.

    Show child attributesHide child attributes
    • breakfast_itemsarray of string

      The IDs of the products of the breakfast slot.

    • created_atstring (date-time)nullable

      When the menu was created.

    • dinner_itemsarray of string

      The IDs of the products of the dinner slot.

    • drinks_itemsarray of string

      The IDs of the products of the drinks slot.

    • lunch_itemsarray of string

      The IDs of the products of the lunch slot.

    • menu_descriptionstringnullable

      A description of the menu. Only when you read one menu.

    • menu_idstringrequired

      The ID of the menu.

    • menu_namestringrequired

      The name of the menu.

    • menu_production_end_datestring (date-time)required

      When production of the menu ends.

    • menu_production_start_datestring (date-time)required

      When production of the menu starts.

    • menu_statusenumrequired

      Where the menu is in its production window: in_production, upcoming, expired or not_in_production.

      • in_production
      • upcoming
      • expired
      • not_in_production
    • misc_itemsarray of string

      The IDs of the products of the misc slot.

    • snacks_itemsarray of string

      The IDs of the products of the snacks slot.

    • supplements_itemsarray of string

      The IDs of the products of the supplements slot.

    • updated_atstring (date-time)nullable

      When the menu was last updated.

    • vendorstringrequired

      The ID of the vendor.

  • has_nextbooleanrequired

    Whether the data has a next page or not

  • has_previousbooleanrequired

    Whether the data has a previous page or not

  • pageintegerrequired

    The page number of the data

  • sizeintegerrequired

    The size of the data

  • totalintegerrequired

    The total number of data

  • total_pagesintegerrequired

    The total number of pages

Errors

Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.

jsonError response
{
  "error": {
    "code": "not_found",
    "message": "The object does not exist.",
    "request_id": "req_0123456789abcdef0123456789abcdef"
  }
}
StatusCodeMeaning
401invalid_api_keyThe API key is missing or not valid.
403company_archivedThis company is archived.
403company_not_liveThe company must be live to use prod keys.
403company_suspendedThis company is suspended.
403scope_not_grantedThis API key does not have the catalog:read scope.
422validation_errorquery.size: Input should be less than or equal to 50
429rate_limitedToo many requests. Wait before calling again.
500internal_errorSomething went wrong on our side. Please try again later.
502upstream_errorA Nurish'd service could not complete the request.
503upstream_unavailableA Nurish'd service is unavailable. Please try again later.
504upstream_timeoutA Nurish'd service did not answer in time. Please try again.

All error codes and what to do about them