您位於此處:
優惠券用量 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 優惠券,但客戶稍後將其從手推車中移除。使用 Coupon Usage Decrease 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.