Replace Offers

Replace source item strucuture with target item structure. Excute the runCartValidation API externally after calling replaceOffers API so that prices are populated and advance rules are respected.

This API supports the guest user enhancements that Salesforce introduced with the Winter ‘21 release. To encrypt and decrypt data for guest users, use the UserSecurity class with this API. See Guest User Technical Details.

For additional information, ​see UserSecurity Class and CPQ and Digital Commerce Changes for Guest Users.