commercetools icon

commercetools

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

Actions671

Shipping-method → Check if matching ShippingMethod exists for a Location

AI-generated

Summary

Check if a matching ShippingMethod exists for the specified Country, optionally filtered by State and Currency.

Inputs

  • Country (required) — The country code to check for matching ShippingMethod availability.
  • Filters — Optional filters including State and Currency to narrow down the search for a matching ShippingMethod.

Output shape

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

Returns an object showing if a ShippingMethod exists matching the criteria via an HTTP HEAD request. If the ShippingMethod exists, 'exists' is true with statusCode 200; if not, 'exists' is false with statusCode 404. Errors other than 404 throw an exception.

Examples

Example 1: Check for a ShippingMethod in country 'DE' with state 'BE' and currency 'EUR'.

Set Country to 'DE'. Under Filters, set State to 'BE' and Currency to 'EUR'. The node returns whether such a ShippingMethod exists.

Links

Discussion