commercetools icon

commercetools

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

Actions671

Tax-category → Check if TaxCategory exists by Query Predicate

AI-generated

Summary

Check if a TaxCategory exists in commercetools by sending a HEAD request with a specified query predicate filter.

Inputs

  • Filters — A collection of filter parameters to apply to the query, primarily including the 'where' string predicate to specify the condition for TaxCategory existence check.

Output shape

a single JSON object indicating existence with properties 'exists' (boolean), 'statusCode' (HTTP status code), and 'url' (queried resource URL).

The operation performs a HEAD request; if a TaxCategory matches the query predicate, it returns { exists: true, statusCode: 200 }. If not found, it returns { exists: false, statusCode: 404 }. Other errors throw exceptions. It returns no full resource data, only existence confirmation.

Links

Discussion