POST api/sweepstakes/Validateconsumer/Pepsi?clientId={clientId}&offerId={offerId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

string

Required

offerId

string

Required

Body Parameters

SweepStakeEntry
NameDescriptionTypeAdditional information
SweepstakesCode

string

Max length: 25

ExternalID

string

Required

Max length: 100

Email

string

Max length: 255

FirstName

string

Max length: 25

LastName

string

Max length: 25

Address1

string

Max length: 50

Address2

string

Max length: 50

City

string

Max length: 30

State

string

Max length: 2

PostalCode

string

Max length: 10

County

string

Max length: 25

Country

string

Max length: 25

Phone

string

Max length: 10

AltPhone

string

Max length: 10

BirthDate

date

None.

OptIn1

boolean

None.

OptIn2

boolean

None.

OptIn3

boolean

None.

Company

string

Max length: 50

StoreName

string

Max length: 50

TagInfo

string

Max length: 150

TrxNumber

string

Max length: 50

UserDefined1

string

Max length: 250

UserDefined2

string

Max length: 250

UserDefined3

string

Max length: 250

EntryUserDefined1

string

Max length: 250

EntryUserDefined3

string

Max length: 250

EntryAdditionalData

string

None.

IpAddress

string

None.

Browser

string

None.

Captcha

string

None.

token

string

None.

tokenseed

string

None.

EntryOrigin

string

None.

EntryMethodID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "SweepstakesCode": "sample string 1",
  "ExternalID": "sample string 2",
  "Email": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "Address1": "sample string 6",
  "Address2": "sample string 7",
  "City": "sample string 8",
  "State": "sample string 9",
  "PostalCode": "sample string 10",
  "County": "sample string 11",
  "Country": "sample string 12",
  "Phone": "sample string 13",
  "AltPhone": "sample string 14",
  "BirthDate": "2019-11-12T05:35:52.798592-06:00",
  "OptIn1": true,
  "OptIn2": true,
  "OptIn3": true,
  "Company": "sample string 16",
  "StoreName": "sample string 17",
  "TagInfo": "sample string 18",
  "TrxNumber": "sample string 19",
  "UserDefined1": "sample string 20",
  "UserDefined2": "sample string 21",
  "UserDefined3": "sample string 22",
  "EntryUserDefined1": "sample string 23",
  "EntryUserDefined3": "sample string 24",
  "EntryAdditionalData": "sample string 25",
  "IpAddress": "sample string 26",
  "Browser": "sample string 27",
  "Captcha": "sample string 28",
  "token": "sample string 29",
  "tokenseed": "sample string 30",
  "EntryOrigin": "sample string 31",
  "EntryMethodID": "sample string 32"
}

application/xml, text/xml

Sample:
<SweepStakeEntry xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YA.Common.SweepStakes.API.Models">
  <Address1>sample string 6</Address1>
  <Address2>sample string 7</Address2>
  <AltPhone>sample string 14</AltPhone>
  <BirthDate>2019-11-12T05:35:52.798592-06:00</BirthDate>
  <Browser>sample string 27</Browser>
  <Captcha>sample string 28</Captcha>
  <City>sample string 8</City>
  <Company>sample string 16</Company>
  <Country>sample string 12</Country>
  <County>sample string 11</County>
  <Email>sample string 3</Email>
  <EntryAdditionalData>sample string 25</EntryAdditionalData>
  <EntryMethodID>sample string 32</EntryMethodID>
  <EntryOrigin>sample string 31</EntryOrigin>
  <EntryUserDefined1>sample string 23</EntryUserDefined1>
  <EntryUserDefined3>sample string 24</EntryUserDefined3>
  <ExternalID>sample string 2</ExternalID>
  <FirstName>sample string 4</FirstName>
  <IpAddress>sample string 26</IpAddress>
  <LastName>sample string 5</LastName>
  <OptIn1>true</OptIn1>
  <OptIn2>true</OptIn2>
  <OptIn3>true</OptIn3>
  <Phone>sample string 13</Phone>
  <PostalCode>sample string 10</PostalCode>
  <State>sample string 9</State>
  <StoreName>sample string 17</StoreName>
  <SweepstakesCode>sample string 1</SweepstakesCode>
  <TagInfo>sample string 18</TagInfo>
  <TrxNumber>sample string 19</TrxNumber>
  <UserDefined1>sample string 20</UserDefined1>
  <UserDefined2>sample string 21</UserDefined2>
  <UserDefined3>sample string 22</UserDefined3>
  <token>sample string 29</token>
  <tokenseed>sample string 30</tokenseed>
</SweepStakeEntry>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.