commercetools icon

commercetools

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

Actions671

Shipping-method → Get matching ShippingMethods for a Cart and Location

AI-generated

Summary

Retrieve shipping methods that match a specified cart and location by providing the cart ID and country, optionally filtering by state or expanding related resources.

Inputs

  • Country (required) — The two-letter country code to match shipping methods for the cart location.
  • Cart Id (required) — The unique identifier of the cart to find matching shipping methods for.
  • Filters — Optional filters to refine results, including 'State' to specify a particular shipping method state and 'Expand' to include additional related resources in the response.

Output shape

a list of shipping method objects matching the specified cart and location parameters

The operation returns JSON data containing the matching shipping methods. Optional filters may modify the results. Errors will raise exceptions unless 'Continue on Fail' is enabled, in which case error details are returned per item.

Examples

Example 1: Find all shipping methods matching a cart in the US

Set 'Country' to 'US', specify the cart ID, and optionally apply 'State' filter or expand related resources.

Links

Discussion