PUT api/shoppingcart/add/coupon?shoppingCartId={shoppingCartId}&coupon={coupon}&addMissingProducts={addMissingProducts}&couponInCart={couponInCart}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
shoppingCartId

globally unique identifier

Required

coupon

string

Required

addMissingProducts

boolean

Required

couponInCart

boolean

Required

Body Parameters

None.

Response Information

Resource Description

CouponValidation
NameDescriptionTypeAdditional information
EvaluateCoupon

boolean

None.

MissingProducts

string

None.

RemovePresetBundle

boolean

None.

RemovePresetBundleMessage

string

None.

CouponValidationMessage

ServiceMessage

None.

CouponInCart

boolean

None.

DiscountValue

string

None.

Response Formats

application/json, text/json

Sample:
{
  "EvaluateCoupon": true,
  "MissingProducts": "sample string 2",
  "RemovePresetBundle": true,
  "RemovePresetBundleMessage": "sample string 4",
  "CouponValidationMessage": {
    "MessageCode": "sample string 1",
    "MessageType": "sample string 2",
    "MessageDescription": "sample string 3"
  },
  "CouponInCart": true,
  "DiscountValue": "sample string 6"
}

application/xml, text/xml

Sample:
<CouponValidation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRCI.Services.BL.Models">
  <CouponInCart>true</CouponInCart>
  <CouponValidationMessage>
    <MessageCode>sample string 1</MessageCode>
    <MessageDescription>sample string 3</MessageDescription>
    <MessageType>sample string 2</MessageType>
  </CouponValidationMessage>
  <DiscountValue>sample string 6</DiscountValue>
  <EvaluateCoupon>true</EvaluateCoupon>
  <MissingProducts>sample string 2</MissingProducts>
  <RemovePresetBundle>true</RemovePresetBundle>
  <RemovePresetBundleMessage>sample string 4</RemovePresetBundleMessage>
</CouponValidation>