您位於此處:
優惠券驗證 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 範圍)。
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.