POST api/Emails?coupon={coupon}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| coupon | string |
Required |
Body Parameters
None.
Response Information
Resource Description
CouponViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IsValid | boolean |
None. |
|
| Mount | integer |
None. |
|
| PercentOff | decimal number |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsValid": true,
"Mount": 1,
"PercentOff": 1.0,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<CouponViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WumeCore.ViewModels"> <IsValid>true</IsValid> <Message>sample string 2</Message> <Mount>1</Mount> <PercentOff>1</PercentOff> </CouponViewModel>