您在此处:
优惠券验证 API
在应用折扣之前,使用优惠券验证 API 验证手动输入的优惠券代码。提前验证优惠券,而不是等到 Checkout,可以让客户立即反馈他们的代码是否有效。API 会检查优惠券是否存在、是否处于活动状态、是否未达到兑换限制,以及购物车是否有资格参加促销。
在应用折扣之前,使用优惠券验证 API 验证手动输入的优惠券代码。提前验证优惠券,而不是等到 Checkout,可以让客户立即反馈他们的代码是否有效。API 会检查优惠券是否存在、是否处于活动状态、是否未达到兑换限制,以及购物车是否有资格参加促销。
| 适用于:Lightning Experience |
| 适用于:具有实时优惠管理的 Enterprise、Unlimited 和 Developer Edition |
将优惠券验证 API 与购物网站和销售点 (POS) 系统等系统集成。要验证优惠券,请在 couponsToValidate 请求属性中提供最多 1,000 个手动输入的优惠券代码。
如果购物车的优惠券字段中已经包含优惠券代码,API 也会发现并验证这些代码。您不需要将这些代码复制到 couponsToValidate 中。对于通过优惠券级别检查的优惠券,API 会根据附加每个代码的位置评估促销资格。
使用与合格促销 API 和促销评估和执行 API 相同的购物车结构,在请求中提供购物车及其行项目。
对于每个优惠券代码,响应会提供这些详细信息。
Valid。否则,状态为“Invalid”。Line范围,适用购物车行项目 ID。
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.