POST api/coupon/claimcoupon
Request Information
URI Parameters
None.
Body Parameters
CouponHistory| Name | Description | Type | Additional information |
|---|---|---|---|
| CouponId | integer |
None. |
|
| CustomerId | integer |
None. |
|
| ContactId | integer |
None. |
|
| IsDefaultCoupon | boolean |
None. |
|
| CouponProgramId | integer |
None. |
|
| LocationId | integer |
None. |
|
| PaymentCheckOutMappingId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"CouponId": 1,
"CustomerId": 2,
"ContactId": 3,
"IsDefaultCoupon": true,
"CouponProgramId": 5,
"LocationId": 6,
"PaymentCheckOutMappingId": 7
}
application/xml, text/xml
Sample:
<CouponHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model"> <ContactId>3</ContactId> <CouponId>1</CouponId> <CouponProgramId>5</CouponProgramId> <CustomerId>2</CustomerId> <IsDefaultCoupon>true</IsDefaultCoupon> <LocationId>6</LocationId> <PaymentCheckOutMappingId>7</PaymentCheckOutMappingId> </CouponHistory>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
APICommonWrapperOfClaimCouponResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | HttpStatusCode |
None. |
|
| Message | string |
None. |
|
| Data | ClaimCouponResponse |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": 100,
"Message": "sample string 1",
"Data": {
"Status": true,
"Message": "sample string 2"
}
}
application/xml, text/xml
Sample:
<APICommonWrapperOfClaimCouponResponseZdSfSp5S xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model">
<Data>
<Message>sample string 2</Message>
<Status>true</Status>
</Data>
<Message>sample string 1</Message>
<Status>Continue</Status>
</APICommonWrapperOfClaimCouponResponseZdSfSp5S>