commercetools icon

commercetools

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

Actions671

Cart Discount → Get CartDiscount by ID

AI-generated

Summary

Retrieve details of a specific Cart Discount in commercetools by its unique ID.

Inputs

  • Cart Discount ID (required) — The unique identifier of the Cart Discount to retrieve.
  • Filters — Optional query parameters to modify the response, such as 'expand' to include additional related resources.

Output shape

A single JSON object representing the requested Cart Discount.

Returns the full Cart Discount record if found. If the Cart Discount does not exist or an error occurs, an error response is generated. The 'expand' filter can be used to fetch related resources inline.

Examples

Example 1: Get a Cart Discount by its ID with expanded references

Specify the Cart Discount ID and provide an 'expand' parameter under Filters to include related resources in the response.

Links

Discussion