Developers

Search the docs

Search guides and headings.

List vendors

GET/meals/v1/vendor/query/documents
Scope: catalog:read

Returns a page of the vendors you can order from. Vendors that are not live yet or that were retired are never listed. The list leaves out the long description, the timezone, the address and the support contact of each vendor; read one vendor to get them.

Needs the catalog:read scope.

Query parameters

  • namestring

    Keep only vendors whose name contains this text. Not case sensitive.

    Pattern ^[^${}]{1,150}$

  • 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 Vendorrequired

    The vendors of the page.

    Show child attributesHide child attributes
    • created_atstring (date-time)nullable

      When the vendor was created.

    • updated_atstring (date-time)nullable

      When the vendor was last updated.

    • vendor_addressVendorAddressnullable

      The address of the vendor. Only when you read one vendor.

      Show child attributesHide child attributes
      • citystringrequired

        The city.

      • countrystringrequired

        The two-letter country code.

      • line1stringrequired

        The first line of the address.

      • line2stringnullable

        The second line of the address, if there is one.

      • postal_codestringrequired

        The postal code.

      • statestringrequired

        The two-letter province code.

    • vendor_customer_support_emailstringnullable

      The email address of the support of the vendor. Only when you read one vendor.

    • vendor_customer_support_phonestringnullable

      The phone number of the support of the vendor. Only when you read one vendor.

    • vendor_faq_urlstringnullable

      The URL of the frequently asked questions of the vendor.

    • vendor_idstringrequired

      The ID of the vendor.

    • vendor_imagesarray of string

      The URLs of the images of the vendor.

    • vendor_logo_imagestringnullable

      The URL of the logo of the vendor.

    • vendor_long_descriptionstringnullable

      A long description of the vendor. Only when you read one vendor.

    • vendor_maximum_order_itemsintegernullable

      The most items the vendor takes in one order.

    • vendor_maximum_order_valueintegernullable

      The largest order value the vendor takes, in cents. A vendor has no currency of its own: it is the zone_currency of the delivery zone you order in.

    • vendor_minimum_order_itemsintegernullable

      The fewest items the vendor takes in one order.

    • vendor_minimum_order_valueintegernullable

      The smallest order value the vendor takes, in cents. A vendor has no currency of its own: it is the zone_currency of the delivery zone you order in.

    • vendor_namestringrequired

      The name of the vendor.

    • vendor_short_descriptionstringnullable

      A short description of the vendor.

    • vendor_social_media_facebookstringnullable

      The URL of the Facebook page of the vendor.

    • vendor_social_media_instagramstringnullable

      The URL of the Instagram page of the vendor.

    • vendor_social_media_linkedinstringnullable

      The URL of the LinkedIn page of the vendor.

    • vendor_social_media_twitterstringnullable

      The URL of the Twitter page of the vendor.

    • vendor_timezonestringnullable

      The IANA timezone of the vendor, for example America/Toronto. The delivery days of its zones start at midnight in this timezone. Only when you read one vendor.

    • vendor_website_urlstringnullable

      The URL of the website 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