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 Key

AI-generated

Summary

Check for the existence of a quote in a specified store by its quote key within a commercetools project.

Inputs

  • Store Quote Key (required) — The key of the store quote resource to check for existence.
  • Store Key (required) — The key identifying the store in which to check for the quote.
  • Quote Key (required) — The key of the quote to check for existence in the specified store.

Output shape

a single JSON object indicating existence, including fields 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' queried.

Uses an HTTP HEAD request for the existence check; if found, returns {exists: true, statusCode: 200}, if not found returns {exists: false, statusCode: 404}. Throws an error for other failure statuses.

Examples

Example 1: Check if a particular quote exists within a specified store in commercetools by providing store quote key, store key, and quote key.

Set 'Store Quote Key', 'Store Key', and 'Quote Key' to existing values to verify whether that quote resource exists in the given store.

Links

Discussion