您在此处:
优惠券使用情况 API
使用优惠券使用情况 API 准确跟踪客户的优惠券使用情况。在客户为购物车选择优惠券时,使用优惠券使用情况增加 API,以增加优惠券使用情况计数。如果客户将选定优惠券从购物车中移除,使用优惠券使用情况减少 API 恢复优惠券使用情况计数。
使用优惠券使用情况 API 准确跟踪客户的优惠券使用情况。在客户为购物车选择优惠券时,使用优惠券使用情况增加 API,以增加优惠券使用情况计数。如果客户将选定优惠券从购物车中移除,使用优惠券使用情况减少 API 恢复优惠券使用情况计数。
| 适用于:Lightning Experience |
| 适用于:具有实时优惠管理的 Enterprise、Unlimited 和 Developer Edition |
API 通过跟踪每个优惠券的整体使用情况和每个客户的使用情况来管理优惠券兑换。
在客户选择优惠券并应用到购物车进行促销时,运行优惠券使用情况增加 API 为客户兑换所选优惠券。API 会增加优惠券的总使用次数和客户的优惠券使用次数。
API 响应提供有关优惠券的详细信息,包括更新的使用计数、优惠券的兑换限制以及优惠券和客户可用的剩余兑换次数。
当客户从购物车中取消选择优惠券时,使用优惠券使用减少 API 来减少优惠券的使用计数。优惠券使用减少 API 也可用于在交易失败或取消时减少优惠券使用计数。
API 响应会提供有关使用计数已减少的优惠券的详细信息。该信息还包括优惠券的更新兑换限制,以及优惠券和客户可用的剩余兑换次数。
[
{
"couponCode": "SNEAKER50",
"isSuccess": true,
"redemptionLimit": 15000,
"redemptionLimitPerCustomer": 5,
"remainingRedemptionCount": 13447,
"remainingRedemptionCountForCustomer": 2
}
]SNEAKER50 优惠券最初被选中,但客户稍后将其从购物车中移除。使用优惠券使用情况减少 API 恢复计数。结果显示,总体而言,仍有 13,448 笔兑换,该特定客户仍有 3 笔兑换。{
"couponCode": "SNEAKER50",
"isSuccess": false
"redemptionLimit": 15000,
"redemptionLimitPerCustomer": 5,
"remainingRedemptionCount": 13448,
"remainingRedemptionCountForCustomer": 3
}
]
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.