This feature is a Beta Service. You may opt-in to try this service at your sole discretion. Any use of this service is subject to the Customer Agreements and User Terms for Products and Services.


Shop the Future

You can retrieve promotions that are active at a particular time. Implement this use case in your storefront by following the steps below:

  1. Log in to Business Manager, and navigate to Administration > Feature Switches.
  2. Search for “Enable Shopper Context awareness”, and enable the feature toggle. There’s no need to specify the Base URL Override unless there’s a routing issue.

To retrieve promotions that are active within a particular time window, set an effective date as a context parameter.

ShopperContextSTF

If the effect date time isn’t provided, the current dateTime is assumed.

Shopper Context | B2C Commerce API | Salesforce Developers

Shopper Login (SLAS) | B2C Commerce API | Salesforce Developers

Salesforce Commerce Cloud Infocenter