commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Product → Check if Product exists by Query Predicate

AI-generated

Summary

Check if a product exists in commercetools by performing a search query using a specified predicate.

Inputs

  • Filters — A collection of filter parameters for the query, including a 'Where' string to specify the query predicate used to search for matching products.

Output shape

A single JSON object containing existence information and HTTP status code.

Returns an object with properties 'exists' (boolean), 'statusCode' (typically 200 or 404), and 'url' (the request URL). Does not return full product data, only existence status based on the query predicate.

Examples

Example 1: Check if any product matches a given filter predicate.

Set the 'Filters' parameter 'Where' to a commercetools query predicate string to filter products.

Links

Discussion