commercetools icon

commercetools

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

Actions671

Staged-quote → Check if StagedQuote exists by ID

AI-generated

Summary

Check whether a staged quote exists in commercetools by performing a HEAD request to the StagedQuote endpoint using the specified staged-quote ID.

Inputs

  • Staged-quote ID (required) — The ID of the staged quote to check for existence.

Output shape

A single JSON object containing at least the 'exists' boolean property indicating presence, 'statusCode' number, and the 'url' queried.

Returns an object with 'exists' set to true if the staged quote exists (HTTP 200) or false if not found (HTTP 404). Throws an error for other HTTP status codes.

Examples

Example 1: Check existence of a staged quote with ID 'abc123'.

Set resource to 'Staged-quote', operation to 'Check if StagedQuote exists by ID', and provide 'abc123' as the Staged-quote ID input.

Links

Discussion