POST api/offerintake/requests

Request Information

URI Parameters

None.

Body Parameters

OfferIntakeRequestViewModel
NameDescriptionTypeAdditional information
offerRequestId

integer

None.

createdDate

date

None.

consumerId

integer

None.

firstName

string

None.

lastName

string

None.

email

string

None.

phoneNumber

string

None.

offerId

integer

None.

startDate

date

None.

endDate

date

None.

notes

string

None.

states

Collection of StateViewModel

None.

prizes

Collection of Prize

None.

smsKeywords

Collection of SmsKeywordViewModel

None.

incentive

IncentiveViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "offerRequestId": 1,
  "createdDate": "2019-11-19T21:55:58.3110962-06:00",
  "consumerId": 3,
  "firstName": "sample string 4",
  "lastName": "sample string 5",
  "email": "sample string 6",
  "phoneNumber": "sample string 7",
  "offerId": 8,
  "startDate": "2019-11-19T21:55:58.3110962-06:00",
  "endDate": "2019-11-19T21:55:58.3110962-06:00",
  "notes": "sample string 11",
  "states": [
    {
      "stateCode": "sample string 1"
    },
    {
      "stateCode": "sample string 1"
    }
  ],
  "prizes": [
    {
      "prizeId": 1,
      "qty": 2,
      "level": "sample string 3",
      "package": "sample string 4",
      "description": "sample string 5",
      "amt": 6.0
    },
    {
      "prizeId": 1,
      "qty": 2,
      "level": "sample string 3",
      "package": "sample string 4",
      "description": "sample string 5",
      "amt": 6.0
    }
  ],
  "smsKeywords": [
    {
      "smsKeyword": "sample string 1",
      "priority": "sample string 2"
    },
    {
      "smsKeyword": "sample string 1",
      "priority": "sample string 2"
    }
  ],
  "incentive": {
    "region": "sample string 1",
    "numberOfRecipients": 2
  }
}

application/xml, text/xml

Sample:
<OfferIntakeRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YA.Common.SweepStakes.API.Models">
  <consumerId>3</consumerId>
  <createdDate>2019-11-19T21:55:58.3110962-06:00</createdDate>
  <email>sample string 6</email>
  <endDate>2019-11-19T21:55:58.3110962-06:00</endDate>
  <firstName>sample string 4</firstName>
  <incentive>
    <numberOfRecipients>2</numberOfRecipients>
    <region>sample string 1</region>
  </incentive>
  <lastName>sample string 5</lastName>
  <notes>sample string 11</notes>
  <offerId>8</offerId>
  <offerRequestId>1</offerRequestId>
  <phoneNumber>sample string 7</phoneNumber>
  <prizes>
    <Prize>
      <amt>6</amt>
      <description>sample string 5</description>
      <level>sample string 3</level>
      <package>sample string 4</package>
      <prizeId>1</prizeId>
      <qty>2</qty>
    </Prize>
    <Prize>
      <amt>6</amt>
      <description>sample string 5</description>
      <level>sample string 3</level>
      <package>sample string 4</package>
      <prizeId>1</prizeId>
      <qty>2</qty>
    </Prize>
  </prizes>
  <smsKeywords>
    <SmsKeywordViewModel>
      <priority>sample string 2</priority>
      <smsKeyword>sample string 1</smsKeyword>
    </SmsKeywordViewModel>
    <SmsKeywordViewModel>
      <priority>sample string 2</priority>
      <smsKeyword>sample string 1</smsKeyword>
    </SmsKeywordViewModel>
  </smsKeywords>
  <startDate>2019-11-19T21:55:58.3110962-06:00</startDate>
  <states>
    <StateViewModel>
      <stateCode>sample string 1</stateCode>
    </StateViewModel>
    <StateViewModel>
      <stateCode>sample string 1</stateCode>
    </StateViewModel>
  </states>
</OfferIntakeRequestViewModel>

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.