commercetools icon

commercetools

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

Actions671

Product-discount → Get ProductDiscount by Key

AI-generated

Summary

Retrieve a ProductDiscount entity from commercetools using its unique key, optionally expanding referenced resources.

Inputs

  • Product-discount Key (required) — The unique key identifying the ProductDiscount to retrieve.
  • Filters — Optional filters to modify the response, such as the 'expand' parameter to include referenced resources inline.

Output shape

a single ProductDiscount JSON object

Returns the full ProductDiscount details matching the provided key; optionally expanded fields are included when the 'expand' parameter is set. If the key does not exist, the operation will throw an error unless 'continue on fail' is enabled.

Links

Discussion