validateCouponUE

The validateCouponUE mappings allow for validation of coupons between Sterling Order Management and HCL Commerce. When a shopper adds a manual coupon from Sterling Call Center, validateCouponUE is implemented to call HCL Commerce for validation of entered coupons against their definitions in HCL Commerce.

validateCouponUE Request

validateCouponUE request mapping to ValidatePromoCodeBOD

Sterling Order Management API Path HCL Commerce Path
Coupon / @CouponID PromoCode / Code
Coupon /@BuyerUserId PromoCode / BuyerIdentifier / ExternalIdentifier/ Identifier
Coupon /@OrganizationCode Use ValueMap.xml to convert it to storeId, then put the storeId in the service context data
Coupon / @PricingDate PromoCode / PricingDate
validateCouponUE Response

ValidatePromoCodeBOD response mapping to validateCouponUE

HCL Commerce Path Sterling Order Management API Path
PromoCode / Code Coupon /@CouponID
PromoCode/ Reason / Valid (true/false) Coupon /@Valid (Y/N)
PromoCode / Reason / ReasonCode Use ValueMap.xml to convert it to Coupon / @CouponStatusMsgCode