commercetools icon

commercetools

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

Actions671

Store Quote → Check if Quote exists in Store by Query Predicate

AI-generated

Summary

Check if a quote exists in a specific store using a query predicate filter.

Inputs

  • Store Quote Key (required) — The key identifying the store quote resource (though not used directly in this operation according to available source).
  • Store Key (required) — The key identifying the store where the quote is located.
  • Filters — A collection of filters with a 'Where' clause used as a query predicate to search quotes in the store.

Output shape

A JSON object with properties 'exists' (boolean), 'statusCode' (HTTP status), and 'url' (queried endpoint).

The operation performs an HTTP HEAD request to determine existence. If the quote exists, returns { exists: true, statusCode: 200, url: }. If not found, returns { exists: false, statusCode: 404, url: }. Errors other than 404 will throw an exception.

Examples

Example 1: Check for quote existence by a query predicate in a store.

Provide the store key, optionally the store quote key (though not used here), and specify the 'Where' filter to query quotes. The node returns existence status indicating if any quote matches the predicate in the specified store.

Links

Discussion