Developers

Search the docs

Search guides and headings.

List the products of a vendor

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

Returns a page of the products of one vendor that you can order. Products that are not live yet or that were retired are never listed. The list leaves out the description and the features of each product, and its creation and update times; read one product to get them.

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

  • namestring

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

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

  • typeenum

    Keep only products of this type: Meal, Bulk or Misc.

    • Meal
    • Bulk
    • Misc
  • collectionenum

    Keep only products of this collection, for example Breakfast or Snack.

    • Breakfast
    • Lunch
    • Dinner
    • Drink
    • Snack
    • Supplement
    • Sauce
  • tagstring

    Keep only products with this tag, given as the tag ID.

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

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

    The products of the page.

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

      When the product was created. Only when you read one product.

    • product_barcodeProductBarcodenullable

      The barcode of the product.

      Show child attributesHide child attributes
      • barcode__EAN13stringrequired

        The barcode of the product, as an EAN-13.

      • is_barcode_auto_generatedbooleanrequired

        Whether the barcode was generated for the vendor rather than entered by them.

      • is_barcode_gs1booleanrequired

        Whether the barcode follows the GS1 standard.

    • product_client_side_instruction_urlstringnullable

      The URL of the instructions for the product, for example how to heat it.

    • product_containsstringnullable

      The allergen statement of the product.

    • product_descriptionstringnullable

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

    • product_featuresarray of string

      The selling points of the product. Only when you read one product.

    • product_idstringrequired

      The ID of the product.

    • product_imagesarray of string

      The URLs of the product images.

    • product_label_typeenumnullable

      The nutrition label standard of the product: Canada Food Label Standard or US Food Label Standard.

      • Canada Food Label Standard
      • US Food Label Standard
    • product_logo_imagestringnullable

      The URL of a small product image.

    • product_meal_collectionsarray of enum

      The collections the product belongs to, for example Breakfast or Snack.

    • product_namestringrequired

      The name of the product.

    • product_nutritionProductNutritionnullable

      The nutrition of the product, null when the vendor has none.

      Show child attributesHide child attributes
      • label_ingredient_listingstringnullable

        The ingredients, as printed on the label. null when the vendor has not entered them.

      • nutritionProductNutritionFactsnullable

        The nutrition facts. null when the vendor has not entered them.

      • per_serving_sizeProductQuantityrequired
      • total_servingsintegerrequired

        The number of servings in the product.

      • total_weightProductQuantitynullable

        The weight of the whole product. null when the vendor has not entered it.

    • product_priceintegerrequired

      The price of one unit, an integer number of cents. A product has no currency of its own: the currency is the zone_currency of the delivery zone you order in.

    • product_skustringrequired

      The stock keeping unit of the product.

    • product_titlestringnullable

      The title of the product, as it appears on receipts.

    • product_typeenumrequired

      The type of the product: Meal, Bulk or Misc.

      • Meal
      • Bulk
      • Misc
    • product_unit_labelstringnullable

      What one unit is called, for example Box.

    • product_use_byintegernullable

      The number of days the product keeps.

    • tagsarray of string

      The tags of the product, as IDs.

    • updated_atstring (date-time)nullable

      When the product was last updated. Only when you read one product.

    • vendorstringrequired

      The ID of the vendor that makes the product.

  • 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