retrieve - Promotion Module Reference
This documentation provides a reference to the retrieve
method. This belongs to the Promotion Module.
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
stringRequiredThe ID of the promotion.
config
FindConfig<PromotionDTO>The configurations determining how the promotion is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a promotion.
config
FindConfig<PromotionDTO>select
or relations
, accept the
attributes or relations associated with a promotion.Returns
The retrieved promotion.
Was this section helpful?