commercetools icon

commercetools

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

Actions671

Store Staged Quote → Check if StagedQuote exists in Store by ID

AI-generated

Summary

Check if a Staged Quote with a specified ID exists in a given Store within a commercetools project.

Inputs

  • Store Key (required) — The unique key identifying the Store to look up the Staged Quote in.
  • Staged Quote ID (required) — The unique ID of the Staged Quote to check the existence of.

Output shape

a JSON object indicating existence, including properties 'exists' (boolean), 'statusCode' (HTTP status code), and the URL queried.

The output returns { exists: true, statusCode: 200, url } if found, or { exists: false, statusCode: 404, url } if not found. Other errors will throw a NodeApiError.

Examples

Example 1: Check if a staged quote exists by its ID in a specific store

Provide 'Store Key' and 'Staged Quote ID' parameters to verify existence. This operation performs an HTTP HEAD request and returns existence status without retrieving the full resource.

Links

Discussion