GET api/Winning/GetCouponByCode?code={code}&businessId={businessId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

string

Required

businessId

integer

Required

Body Parameters

None.

Response Information

Resource Description

UseCouponViewModel
NameDescriptionTypeAdditional information
Text

string

None.

CustomerFirstName

string

None.

CustomerLastName

string

None.

IconId

integer

None.

IsUsed

boolean

None.

IconUrl

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Text": "sample string 1",
  "CustomerFirstName": "sample string 2",
  "CustomerLastName": "sample string 3",
  "IconId": 4,
  "IsUsed": true,
  "IconUrl": "sample string 6"
}

application/xml, text/xml

Sample:
<UseCouponViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpinToWin.Models.ViewModel">
  <CustomerFirstName>sample string 2</CustomerFirstName>
  <CustomerLastName>sample string 3</CustomerLastName>
  <IconId>4</IconId>
  <IconUrl>sample string 6</IconUrl>
  <IsUsed>true</IsUsed>
  <Text>sample string 1</Text>
</UseCouponViewModel>