POST api/ApplyCoupon
Request Information
URI Parameters
None.
Body Parameters
ApplyCouponRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CouponCode | string |
None. |
|
| OrderID | string |
None. |
|
| Subtotal | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"CouponCode": "sample string 1",
"OrderID": "sample string 2",
"Subtotal": 3.0
}
application/xml, text/xml
Sample:
<ApplyCouponRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MnbebookApi.Models"> <CouponCode>sample string 1</CouponCode> <OrderID>sample string 2</OrderID> <Subtotal>3</Subtotal> </ApplyCouponRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | integer |
None. |
|
| Data | Object |
None. |
|
| Message | string |
None. |
|
| refresh_token | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 1,
"Data": {},
"Message": "sample string 3",
"refresh_token": "sample string 4"
}
application/xml, text/xml
Sample:
<CommonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MnbebookApi.Models"> <Data /> <Message>sample string 3</Message> <Status>1</Status> <refresh_token>sample string 4</refresh_token> </CommonResponse>