Overview
API Versioning
Deprecated
dw.order
Class CreateCouponLineItemException
Object
TopLevel.Error
TopLevel.APIException
dw.order.CreateCouponLineItemException
This exception could be thrown by
LineItemCtnr.createCouponLineItem(String, Boolean)
when the provided coupon code is invalid.
'errorCode' property is set to one of the following values:
CouponStatusCodes.COUPON_CODE_ALREADY_IN_BASKET
= Indicates that coupon code has already been added to basket.
CouponStatusCodes.COUPON_ALREADY_IN_BASKET
= Indicates that another code of the same MultiCode/System coupon has already been added to basket.
CouponStatusCodes.COUPON_CODE_ALREADY_REDEEMED
= Indicates that code of MultiCode/System coupon has already been redeemed.
CouponStatusCodes.COUPON_CODE_UNKNOWN
= Indicates that coupon not found for given coupon code or that the code itself was not found.
CouponStatusCodes.COUPON_DISABLED
= Indicates that coupon is not enabled.
CouponStatusCodes.REDEMPTION_LIMIT_EXCEEDED
= Indicates that number of redemptions per code exceeded.
CouponStatusCodes.CUSTOMER_REDEMPTION_LIMIT_EXCEEDED
= Indicates that number of redemptions per code and customer exceeded.
CouponStatusCodes.TIMEFRAME_REDEMPTION_LIMIT_EXCEEDED
= Indicates that number of redemptions per code, customer and time exceeded.
CouponStatusCodes.NO_ACTIVE_PROMOTION
= Indicates that coupon is not assigned to an active promotion.
Properties
errorCode :
String
(Read Only)
Returns one of the error codes listed in the class doc.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
Methods inherited from class
Error
toString
Methods inherited from class
Object
hasOwnProperty
,
isPrototypeOf
,
propertyIsEnumerable
,
toLocaleString
,
toString
,
valueOf
© Copyright 2000-2020, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.
X
Privacy Update:
We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this.
Privacy Policy.