commercetools icon

commercetools

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

Actions671

Quote-request → Check if QuoteRequest exists by Key

AI-generated

Summary

Check if a QuoteRequest exists in commercetools by sending a HEAD request using its unique key.

Inputs

  • Quote-request Key (required) — The unique key of the QuoteRequest to check existence for.

Output shape

A single JSON object indicating existence with properties 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (the request URL used).

Returns 'exists: true' with statusCode 200 if found; 'exists: false' with statusCode 404 if not found. May throw an error for other HTTP errors.

Examples

Example 1: Check if a QuoteRequest with key 'demo-quote-123' exists

Set resource to 'Quote-request', operation to 'Check if QuoteRequest exists by Key', and provide 'demo-quote-123' as the 'Quote-request Key'. On execution, the node returns an object with existence status.

Links

Discussion