---
schema_version: "1"
id: 3b90d6a0458d036e8af29a22feddd46393ad5e86986f50f2ba08099a011e998e
title: Shop the Future
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/commerce-api/guides/shopper-context-api-future.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/shopper-context-api-future.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: d1f8adebf89083d0f06318adbdd4030d2a8ee163320d014c7ad0603f0ac2f7c4
products:
  - Composable Storefront
  - Salesforce APIs
---
# 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:

## Set Shopper Context

Follow the instructions in [Set and Retrieve Shopper Context](https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/shopper-context-api.md#set-and-retrieve-shopper-context).

## Set Effective Date

To retrieve promotions that are active within a particular time window, set an effective date as a context parameter.

![Shopper Context storefront configuration interface](https://developer.salesforce.com/docs/media/commerce-api/shopper-context-stf.png)

```json
{"effectiveDateTime": "2020-12-20T00:00:00Z"
}
```

**note:** If the effect date time isn’t provided, the current `dateTime` is assumed.

## See Also

- [createShopperContext](https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-context?meta=createShopperContext)
- [Shopper Login (SLAS)](https://developer.salesforce.com/docs/commerce/commerce-api/references/auth?meta=Summary)
- [Assign a Price Book or Promotion to a Specific Store in B2C Commerce](https://help.salesforce.com/s/articleView?id=cc.b2c_assigning_a_pricebook_or_promotion_specific.htm&type=5) in _Salesforce Help_
