POST pos/discounts/validate

Authorized only.

Request Information

URI Parameters

None.

Body Parameters

Collection of ApiValidateDiscountRequest
NameDescriptionTypeAdditional information
DiscountId

integer

None.

DiscountCode

string

None.

DiscountSource

integer

None.

DiscountLimitationType

integer

None.

LimitationTimes

integer

None.

CustomerId

integer

None.

CartUsageTimes

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "DiscountId": 1,
    "DiscountCode": "sample string 2",
    "DiscountSource": 1,
    "DiscountLimitationType": 3,
    "LimitationTimes": 4,
    "CustomerId": 5,
    "CartUsageTimes": 6
  },
  {
    "DiscountId": 1,
    "DiscountCode": "sample string 2",
    "DiscountSource": 1,
    "DiscountLimitationType": 3,
    "LimitationTimes": 4,
    "CustomerId": 5,
    "CartUsageTimes": 6
  }
]

application/xml, text/xml

Sample:
<ArrayOfApiValidateDiscountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Api">
  <ApiValidateDiscountRequest>
    <CartUsageTimes>6</CartUsageTimes>
    <CustomerId>5</CustomerId>
    <DiscountCode>sample string 2</DiscountCode>
    <DiscountId>1</DiscountId>
    <DiscountLimitationType>3</DiscountLimitationType>
    <DiscountSource>1</DiscountSource>
    <LimitationTimes>4</LimitationTimes>
  </ApiValidateDiscountRequest>
  <ApiValidateDiscountRequest>
    <CartUsageTimes>6</CartUsageTimes>
    <CustomerId>5</CustomerId>
    <DiscountCode>sample string 2</DiscountCode>
    <DiscountId>1</DiscountId>
    <DiscountLimitationType>3</DiscountLimitationType>
    <DiscountSource>1</DiscountSource>
    <LimitationTimes>4</LimitationTimes>
  </ApiValidateDiscountRequest>
</ArrayOfApiValidateDiscountRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.