POST api/Customer/RedeemCouponByEmail

Request Information

URI Parameters

None.

Body Parameters

RedeemCouponByEmailViewModel
NameDescriptionTypeAdditional information
BusinessId

integer

None.

Mail

string

None.

Request Formats

application/json, text/json

Sample:
{
  "BusinessId": 1,
  "Mail": "sample string 2"
}

application/xml, text/xml

Sample:
<RedeemCouponByEmailViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.ViewModel">
  <BusinessId>1</BusinessId>
  <Mail>sample string 2</Mail>
</RedeemCouponByEmailViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

WinningDetails
NameDescriptionTypeAdditional information
Winning

Collection of WinningViewModel

None.

Response Formats

application/json, text/json

Sample:
{
  "Winning": [
    {
      "Id": 1,
      "Code": "sample string 2",
      "CustomerId": 3,
      "CouponId": 4,
      "WinningDate": 5.1,
      "DateUsed": "2019-07-23T12:13:48.692246+00:00",
      "ExpiryDate": 6.1,
      "IsFromSpin": true,
      "IconUrl": "sample string 7",
      "BusinessName": "sample string 8",
      "BusinessLogo": "sample string 9",
      "NameCoupon": "sample string 10",
      "NumDaysToExpiryDate": 11,
      "NumberOfDiners": 1,
      "PaymentAmount": 1.1
    },
    {
      "Id": 1,
      "Code": "sample string 2",
      "CustomerId": 3,
      "CouponId": 4,
      "WinningDate": 5.1,
      "DateUsed": "2019-07-23T12:13:48.692246+00:00",
      "ExpiryDate": 6.1,
      "IsFromSpin": true,
      "IconUrl": "sample string 7",
      "BusinessName": "sample string 8",
      "BusinessLogo": "sample string 9",
      "NameCoupon": "sample string 10",
      "NumDaysToExpiryDate": 11,
      "NumberOfDiners": 1,
      "PaymentAmount": 1.1
    }
  ]
}

application/xml, text/xml

Sample:
<WinningDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.ViewModel">
  <Winning>
    <WinningViewModel>
      <BusinessLogo>sample string 9</BusinessLogo>
      <BusinessName>sample string 8</BusinessName>
      <Code>sample string 2</Code>
      <CouponId>4</CouponId>
      <CustomerId>3</CustomerId>
      <DateUsed>2019-07-23T12:13:48.692246+00:00</DateUsed>
      <ExpiryDate>6.1</ExpiryDate>
      <IconUrl>sample string 7</IconUrl>
      <Id>1</Id>
      <IsFromSpin>true</IsFromSpin>
      <NameCoupon>sample string 10</NameCoupon>
      <NumDaysToExpiryDate>11</NumDaysToExpiryDate>
      <NumberOfDiners>1</NumberOfDiners>
      <PaymentAmount>1.1</PaymentAmount>
      <WinningDate>5.1</WinningDate>
    </WinningViewModel>
    <WinningViewModel>
      <BusinessLogo>sample string 9</BusinessLogo>
      <BusinessName>sample string 8</BusinessName>
      <Code>sample string 2</Code>
      <CouponId>4</CouponId>
      <CustomerId>3</CustomerId>
      <DateUsed>2019-07-23T12:13:48.692246+00:00</DateUsed>
      <ExpiryDate>6.1</ExpiryDate>
      <IconUrl>sample string 7</IconUrl>
      <Id>1</Id>
      <IsFromSpin>true</IsFromSpin>
      <NameCoupon>sample string 10</NameCoupon>
      <NumDaysToExpiryDate>11</NumDaysToExpiryDate>
      <NumberOfDiners>1</NumberOfDiners>
      <PaymentAmount>1.1</PaymentAmount>
      <WinningDate>5.1</WinningDate>
    </WinningViewModel>
  </Winning>
</WinningDetails>