POST api/UserMasters/ApplyPromocode

Request Information

URI Parameters

None.

Body Parameters

PromoCart
NameDescriptionTypeAdditional information
CartItems

Collection of CartItemModel

None.

PromoCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CartItems": [
    {
      "PackId": 1,
      "Price": 2.0,
      "IsCollection": true,
      "Type": true,
      "Quantity": 5
    },
    {
      "PackId": 1,
      "Price": 2.0,
      "IsCollection": true,
      "Type": true,
      "Quantity": 5
    }
  ],
  "PromoCode": "sample string 1"
}

application/xml, text/xml

Sample:
<PromoCart xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpellingAPI.Models">
  <CartItems>
    <CartItemModel>
      <IsCollection>true</IsCollection>
      <PackId>1</PackId>
      <Price>2</Price>
      <Quantity>5</Quantity>
      <Type>true</Type>
    </CartItemModel>
    <CartItemModel>
      <IsCollection>true</IsCollection>
      <PackId>1</PackId>
      <Price>2</Price>
      <Quantity>5</Quantity>
      <Type>true</Type>
    </CartItemModel>
  </CartItems>
  <PromoCode>sample string 1</PromoCode>
</PromoCart>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>