commercetools icon

commercetools

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

Actions671

Store Cart Discount → Get CartDiscount in Store by Key

AI-generated

Summary

Retrieve a specific cart discount from a designated store in commercetools using the cart discount's unique key.

Inputs

  • Store Cart Discount Key (required) — The unique key identifying the cart discount within the store.
  • Store Key (required) — The key of the store where the cart discount is located.
  • Filters — Optional query parameters such as 'expand' to control additional data returned in the response.

Output shape

a single JSON object representing the requested cart discount resource

Returns detailed cart discount data if found. Supports optional query parameter 'expand' to include related resources. Errors are surfaced if the key or store is invalid or resource is not found.

Examples

Example 1: Retrieve a cart discount by its key in a specific store to apply or inspect discount details within a commercetools workflow.

Set 'Store Cart Discount Key' to the cart discount's key, 'Store Key' to the target store, and optionally specify 'expand' to enrich the response.

Links

Discussion