Personalization Overview
SCAPI provides the following capabilities for personalizing headless storefront shopper experiences:
- Shopper Context API
- Hooks/Script API
The Shopper Context API provides the following benefits versus using hooks and Script API:
- You don't need to write hooks or deploy a cartridge.
- You don't need to understand the qualification rules and corresponding Script API.
- You can set qualifiers, including
effectiveDate
andcouponCodes
, that aren't available in the Script API. - You can set context one time and have it respected across all SCAPI calls, with state maintained for several days.
The following table provides shopper personalization example use cases:
Example Use Case | Preferred Personalization Method | Qualifier Used | Cache Support |
---|---|---|---|
Shop the Store | Shop the Future Shopper Context "store" | "effectiveDateTime" | No |
All Salesforce employees get employee pricing. | Native SCAPI | Dynamic Customer Group – Email endswith @salesforce.com | Yes |