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 Key

AI-generated

Summary

Check whether a ShippingMethod with a specified key exists in the commercetools project by performing a HEAD request to the corresponding resource endpoint.

Inputs

  • Shipping-method Key (required) — The key of the ShippingMethod resource to check for existence.

Output shape

a single JSON object indicating existence with fields 'exists' (boolean), 'statusCode' (HTTP status), and 'url' (the checked API endpoint)

Returns {exists: true} with statusCode 200 if found; returns {exists: false} with statusCode 404 if not found. Throws error on other failures.

Examples

Example 1: Check existence of ShippingMethod by its unique key 'fast-shipping'

Set 'Shipping-method Key' to 'fast-shipping' in the operation parameters.

Links

Discussion