commercetools icon

commercetools

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

Actions671

Associate Quote → Check if Quote exists in BusinessUnit by Query Predicate as Associate

AI-generated

Summary

Check whether a Quote exists within a Business Unit using a query predicate, authenticated as a specific Associate.

Inputs

  • Associate Quote Key (required) — The unique key identifying the associate quote to check.
  • Associate ID (required) — The identifier of the associate performing the request.
  • Filters — Optional query predicate string to filter and refine the check for the quote's existence.

Output shape

A JSON object with properties 'exists' (boolean), 'statusCode' (HTTP status code as number), and 'url' (string of the full request URL).

Uses an HTTP HEAD request internally; if the quote exists as per the query predicate, returns exists=true with statusCode=200; if not found, returns exists=false with statusCode=404. Errors other than 404 will be thrown as node errors.

Examples

Example 1: Check if a quote exists by applying a 'where' filter predicate as an Associate in a Business Unit.

Requires setting the Associate Quote Key, Associate ID, and optionally a 'where' filter predicate to narrow the query.

Links

Discussion