Source Code Based Price Books and Promotions

To activate source code based price books and promotions, follow the steps listed below:

After enabling the shopper context feature in Business Manager:

  1. Call Shopper Context PUT API to set the shopper context
  2. Set the qualifier as key and value pair, making sure you use the same qualifier name as in the assignment.
    • customQualifiers: Set when you want to trigger pricing and promotion experiences using a dynamic session-based customer group.
    • assignmentQualifiers: Set when using the assignment framework. Can be used to trigger pricing and promotion experiences in pages such as Products, Product Search, Basket, and Shipping method. Be sure to use the same qualifier name as in the assignment.
    • sourceCode: Set the source code to evaluate source code group that triggers the promotion (campaign assignment) and Price books (assigned to Source code group).

Shopper Context | B2C Commerce API | Salesforce Developers

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

Salesforce Commerce Cloud Infocenter