commercetools icon

commercetools

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

Actions671

State → Get State by ID

AI-generated

Summary

Retrieve a specific state from commercetools by its unique State ID, optionally including expanded references.

Inputs

  • State ID (required) — The unique identifier of the state to retrieve.
  • Filters — Optional query parameters to modify the response, such as 'expand' to include expanded references.

Output shape

A single JSON object representing the requested state.

The output contains the state data as returned by the commercetools API. You can optionally include 'expand' filters to retrieve expanded linked resources. Errors during fetch are returned as workflow errors unless 'continue on fail' is enabled.

Examples

Example 1: Get State by ID

Provide the State ID as input and optionally add expand filters to include related resources inline.

Links

Discussion