commercetools icon

commercetools

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

Actions671

Shipping-method → Get ShippingMethod by ID

AI-generated

Summary

Retrieve a shipping method by its unique ID from the commercetools platform.

Inputs

  • Shipping-method ID (required) — The unique identifier of the shipping method to retrieve.
  • Filters — Optional query parameters to modify the returned data, such as 'expand' to control which related objects to include in the response.

Output shape

a single JSON object representing the shipping method identified by the given ID

Supports optional query filters like 'expand' which affect the returned data shape. Throws an error if the shipping method with the specified ID does not exist or on request failure.

Examples

Example 1: Fetch a shipping method with ID 'abc123' expanding related references

Set 'Shipping-method ID' to 'abc123' and add an 'expand' parameter in Filters with desired values.

Links

Discussion