- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
retrievePromotion - Promotion Module Reference
This documentation provides a reference to the retrievePromotion
method. This belongs to the Promotion Module.
Note: You should only use this methods when implementing complex customizations. For common cases, check out available workflows instead.
This method retrieves a promotion by its ID.
Example#
A simple example that retrieves a promotion by its ID:
To specify relations that should be retrieved:
Parameters#
id
stringThe ID of the promotion.
The configurations determining how the promotion is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a promotion.
select
or relations
, accept the
attributes or relations associated with a promotion.Returns#
Promise
Promise<PromotionDTO>The retrieved promotion.
Promise
Promise<PromotionDTO>Was this page helpful?