POST pos/discount/validate
Authorized only.
Request Information
URI Parameters
None.
Body Parameters
ApiValidateDiscountRequestName | Description | Type | Additional 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 }
application/xml, text/xml
Sample:
<ApiValidateDiscountRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.Mobile.Api"> <CartUsageTimes>6</CartUsageTimes> <CustomerId>5</CustomerId> <DiscountCode>sample string 2</DiscountCode> <DiscountId>1</DiscountId> <DiscountLimitationType>3</DiscountLimitationType> <DiscountSource>1</DiscountSource> <LimitationTimes>4</LimitationTimes> </ApiValidateDiscountRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |