commercetools icon

commercetools

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

Actions671

Shipping-method → Check if ShippingMethod exists by Query Predicate

AI-generated

Summary

Check if a ShippingMethod exists in commercetools by executing a query with a specified predicate.

Inputs

  • Where (required) — A query predicate string used to filter ShippingMethods and check their existence.

Output shape

a JSON object containing 'exists' (boolean), 'statusCode' (number), and 'url' (string).

Returns 'exists' as true if a ShippingMethod matches the query predicate; false if none match (404 status). Throws an error for other HTTP errors. Uses a HEAD request internally.

Examples

Example 1: Check if any ShippingMethod exists with a specific criterion (e.g., by name or key).

Set the 'Where' parameter with a valid commercetools query predicate string to filter ShippingMethods.

Links

Discussion