GET api/SweepstakesService

Request Information

URI Parameters

None.

Body Parameters

Collection of SweepstakeApplication
NameDescriptionTypeAdditional information
bonus

boolean

None.

facebookPageId

string

None.

leadActivityType

LeadActivityType

None.

productType

ProductType

None.

sweepstakesId

integer

None.

buyerId

integer

None.

active

boolean

None.

agentId

integer

None.

cookieId

globally unique identifier

None.

email

string

None.

Email_Sort

string

None.

phone

string

None.

id

string

None.

leadActivityTypeDescription

string

None.

LeadActivityTypeDescription_Sort

string

None.

name

string

None.

Name_Sort

string

None.

productTypeDescription

string

None.

ProductTypeDescription_Sort

string

None.

timestamp

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "bonus": true,
    "facebookPageId": "sample string 2",
    "leadActivityType": 5,
    "productType": 4,
    "sweepstakesId": 3,
    "buyerId": 1,
    "active": true,
    "agentId": 5,
    "cookieId": "e62bc4f6-b884-486c-aea1-770ff2add4f6",
    "email": "sample string 6",
    "Email_Sort": "sample string 6",
    "phone": "sample string 7",
    "id": "sample string 8",
    "leadActivityTypeDescription": "Sweepstake Application",
    "LeadActivityTypeDescription_Sort": "sweepstake application",
    "name": "sample string 9",
    "Name_Sort": "sample string 9",
    "productTypeDescription": "Dream Sweeps",
    "ProductTypeDescription_Sort": "dream sweeps",
    "timestamp": "2022-11-27T05:45:38.9699046+00:00"
  },
  {
    "bonus": true,
    "facebookPageId": "sample string 2",
    "leadActivityType": 5,
    "productType": 4,
    "sweepstakesId": 3,
    "buyerId": 1,
    "active": true,
    "agentId": 5,
    "cookieId": "e62bc4f6-b884-486c-aea1-770ff2add4f6",
    "email": "sample string 6",
    "Email_Sort": "sample string 6",
    "phone": "sample string 7",
    "id": "sample string 8",
    "leadActivityTypeDescription": "Sweepstake Application",
    "LeadActivityTypeDescription_Sort": "sweepstake application",
    "name": "sample string 9",
    "Name_Sort": "sample string 9",
    "productTypeDescription": "Dream Sweeps",
    "ProductTypeDescription_Sort": "dream sweeps",
    "timestamp": "2022-11-27T05:45:38.9699046+00:00"
  }
]

text/html

Sample:
[{"bonus":true,"facebookPageId":"sample string 2","leadActivityType":5,"productType":4,"sweepstakesId":3,"buyerId":1,"active":true,"agentId":5,"cookieId":"e62bc4f6-b884-486c-aea1-770ff2add4f6","email":"sample string 6","Email_Sort":"sample string 6","phone":"sample string 7","id":"sample string 8","leadActivityTypeDescription":"Sweepstake Application","LeadActivityTypeDescription_Sort":"sweepstake application","name":"sample string 9","Name_Sort":"sample string 9","productTypeDescription":"Dream Sweeps","ProductTypeDescription_Sort":"dream sweeps","timestamp":"2022-11-27T05:45:38.9699046+00:00"},{"bonus":true,"facebookPageId":"sample string 2","leadActivityType":5,"productType":4,"sweepstakesId":3,"buyerId":1,"active":true,"agentId":5,"cookieId":"e62bc4f6-b884-486c-aea1-770ff2add4f6","email":"sample string 6","Email_Sort":"sample string 6","phone":"sample string 7","id":"sample string 8","leadActivityTypeDescription":"Sweepstake Application","LeadActivityTypeDescription_Sort":"sweepstake application","name":"sample string 9","Name_Sort":"sample string 9","productTypeDescription":"Dream Sweeps","ProductTypeDescription_Sort":"dream sweeps","timestamp":"2022-11-27T05:45:38.9699046+00:00"}]

application/xml, text/xml

Sample:
<ArrayOfSweepstakeApplication xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models">
  <SweepstakeApplication>
    <Active>true</Active>
    <AgentId>5</AgentId>
    <BuyerId>1</BuyerId>
    <CookieId>e62bc4f6-b884-486c-aea1-770ff2add4f6</CookieId>
    <Email>sample string 6</Email>
    <Id>sample string 8</Id>
    <LeadActivityType>SweepstakeApplication</LeadActivityType>
    <Name>sample string 9</Name>
    <Phone>sample string 7</Phone>
    <TimeStamp>2022-11-27T05:45:38.9699046+00:00</TimeStamp>
    <SweepstakesId>3</SweepstakesId>
    <Bonus>true</Bonus>
    <FacebookPageId>sample string 2</FacebookPageId>
  </SweepstakeApplication>
  <SweepstakeApplication>
    <Active>true</Active>
    <AgentId>5</AgentId>
    <BuyerId>1</BuyerId>
    <CookieId>e62bc4f6-b884-486c-aea1-770ff2add4f6</CookieId>
    <Email>sample string 6</Email>
    <Id>sample string 8</Id>
    <LeadActivityType>SweepstakeApplication</LeadActivityType>
    <Name>sample string 9</Name>
    <Phone>sample string 7</Phone>
    <TimeStamp>2022-11-27T05:45:38.9699046+00:00</TimeStamp>
    <SweepstakesId>3</SweepstakesId>
    <Bonus>true</Bonus>
    <FacebookPageId>sample string 2</FacebookPageId>
  </SweepstakeApplication>
</ArrayOfSweepstakeApplication>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IEnumerable`1'.

Response Information

Resource Description

string

Response Formats

application/json, text/json, text/html

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>