commercetools icon

commercetools

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

Actions671

Discount Code → Get DiscountCode by Key

AI-generated

Summary

Retrieve a Discount Code from commercetools by its unique key.

Inputs

  • Discount Code Key (required) — The unique key of the discount code to retrieve.
  • Filters — Optional filters such as 'expand' parameter to include referenced resources inline in the response.

Output shape

a single Discount Code object in JSON format

The request fetches the discount code by key and returns its full details as JSON. Optional 'expand' query parameters can be used to modify the response. Errors are returned as workflow errors unless continued on fail.

Links

Discussion