您在此处:
促销评估和执行 API
促销评估和执行 API 会评估购物车详细信息,并在根据选定的促销评估方法应用合格的促销后返回购物车和行项目的调整后价格。
促销评估和执行 API 会评估购物车详细信息,并在根据选定的促销评估方法应用合格的促销后返回购物车和行项目的调整后价格。
| 适用于:Lightning Experience |
| 适用于:具有实时优惠管理的 Enterprise、Unlimited 和 Developer Edition |
通过应用促销折扣和适合您业务需求的评估方法,向客户显示调整后的价格。
对于评估,为每个规则库创建一个父组。该组中的促销根据其应用分为三个类别:行级、跨行或购物车级。促销评估 API 获取购物车详细信息和可用的优惠券,然后根据配置的评估方法按顺序应用所有相关折扣,以确定最终调整后的价格。评估促销项目时,API 会扫描产品类别层次结构的 5 个级别,然后根据选定的评估方法应用正确的促销。
API 响应提供了折扣购物车的完整分类,包括最终调整后的总价、每个行项目的调整后的价格以及任何可用的非定价奖励的列表。如果购物车包含 Salesforce 目录中不存在的产品,API 会在评估行级和跨行级促销时忽略未同步的产品,并应用购物车的合格促销。

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.