commercetools icon

commercetools

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

Actions671

Associate Quote Request → Check if QuoteRequest exists in BusinessUnit by Key as Associate

AI-generated

Summary

Check if a QuoteRequest with a specific key exists within a BusinessUnit as a given Associate by performing a HEAD request to the commercetools API.

Inputs

  • Associate Quote Request Key (required) — The key identifying the BusinessUnit the associate operates within.
  • Associate ID (required) — The ID of the Associate to scope the check within the BusinessUnit.
  • Quote Request Key (required) — The unique key of the QuoteRequest to check for existence.

Output shape

a JSON object indicating existence status with properties 'exists' (boolean), 'statusCode' (number), and 'url' (string).

Returns { exists: true } with HTTP status 200 if the QuoteRequest exists, or { exists: false } with HTTP status 404 if not found. Throws an error on other HTTP errors.

Examples

Example 1: QuoteRequest with key 'qrKey123' existence check for Associate 'associateId456' within BusinessUnit key 'busUnitKey789'.

Set 'Associate Quote Request Key' to 'busUnitKey789', 'Associate ID' to 'associateId456', and 'Quote Request Key' to 'qrKey123'.

Links

Discussion