- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
retrieveCampaign - Promotion Module Reference
This documentation provides a reference to the retrieveCampaign
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 campaigns 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 campaigns.
The configurations determining how the campaign is retrieved. Its properties, such as select
or relations
, accept the
attributes or relations associated with a campaign.
select
or relations
, accept the
attributes or relations associated with a campaign.Returns#
Promise
Promise<CampaignDTO>The retrieved campaigns.
Promise
Promise<CampaignDTO>Was this page helpful?