GET api/Winning/GetWinningsByMail?mail={mail}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
mail

string

Required

Body Parameters

None.

Response Information

Resource Description

WinningViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

Code

string

None.

CustomerId

integer

None.

CouponId

integer

None.

WinningDate

decimal number

None.

DateUsed

date

None.

ExpiryDate

decimal number

None.

IsFromSpin

boolean

None.

IconUrl

string

None.

BusinessName

string

None.

BusinessLogo

string

None.

NameCoupon

string

None.

NumDaysToExpiryDate

integer

None.

NumberOfDiners

integer

None.

PaymentAmount

decimal number

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Code": "sample string 2",
  "CustomerId": 3,
  "CouponId": 4,
  "WinningDate": 5.1,
  "DateUsed": "2019-07-23T12:12:02.3330355+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:
<WinningViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.ViewModel">
  <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:12:02.3330355+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>