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 an Order Edit

AI-generated

Summary

Check if a matching ShippingMethod exists for a specified Order Edit in commercetools by sending a HEAD request to the API.

Inputs

  • Order Edit Id (required) — The unique identifier of the Order Edit to check for matching Shipping Methods.
  • Country (required) — The country code to use when checking for matching Shipping Methods.
  • Filters — Optional filters to narrow down the search, such as the state.

Output shape

a JSON object indicating existence, including 'exists' (boolean), 'statusCode' (numeric), and the requested URL.

Returns { exists: true, statusCode: 200, url } if a matching ShippingMethod exists; returns { exists: false, statusCode: 404, url } if none matches. May throw an error for other HTTP issues.

Examples

Example 1: Check existence of a ShippingMethod for an Order Edit in Germany, optionally filtering by state.

Provide 'Order Edit Id' and 'Country' as required strings. Optionally add 'State' filter under Filters.

Links

Discussion