POST api/Transactions/IsValidCouponCode
Request Information
URI Parameters
None.
Body Parameters
IsValidCouponCodePostModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CouponCode | string |
None. |
|
| CardId | integer |
None. |
|
| CountryFrom | integer |
None. |
|
| CountryTo | integer |
None. |
|
| Price | decimal number |
None. |
|
| TransType | TransactionType |
None. |
Request Formats
application/json, text/json
Sample:
{
"CouponCode": "sample string 1",
"CardId": 2,
"CountryFrom": 3,
"CountryTo": 4,
"Price": 5.1,
"TransType": 1
}
application/xml, text/xml
Sample:
<IsValidCouponCodePostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Web.Api.Models.Transactions"> <CardId>2</CardId> <CountryFrom>3</CountryFrom> <CountryTo>4</CountryTo> <CouponCode>sample string 1</CouponCode> <Price>5.1</Price> <TransType>R</TransType> </IsValidCouponCodePostModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ValidCouponCode| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | boolean |
None. |
|
| ErrorMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": true,
"ErrorMessage": "sample string 2"
}
application/xml, text/xml
Sample:
<ValidCouponCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Transactions"> <ErrorMessage>sample string 2</ErrorMessage> <Status>true</Status> </ValidCouponCode>