POST api/Offer/SaveContactAndRedeemOffer

Request Information

URI Parameters

None.

Body Parameters

SaveContactAndRedeemOfferViewModel
NameDescriptionTypeAdditional information
OfferRedeemRequestViewModel

OfferRedeemRequestViewModel

None.

ContactDetails

ContactCaptureDetailsViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "OfferRedeemRequestViewModel": {
    "OfferId": "sample string 1",
    "ContactId": "sample string 2",
    "AccountId": "sample string 3",
    "SendModuleId": "sample string 4",
    "OfferBuilderElementId": "sample string 5",
    "SendSummaryId": "sample string 6",
    "OfferElementRenderForModule": "SmsCampaign",
    "OfferSendDetailId": "sample string 7"
  },
  "ContactDetails": {
    "FirstName": "sample string 1",
    "LastName": "sample string 2",
    "EmailAddress": "sample string 3",
    "MobilePhone": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<SaveContactAndRedeemOfferViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels">
  <ContactDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/MindMe.Common.Standard.Models.ServiceModel">
    <d2p1:EmailAddress>sample string 3</d2p1:EmailAddress>
    <d2p1:FirstName>sample string 1</d2p1:FirstName>
    <d2p1:LastName>sample string 2</d2p1:LastName>
    <d2p1:MobilePhone>sample string 4</d2p1:MobilePhone>
  </ContactDetails>
  <OfferRedeemRequestViewModel>
    <AccountId>sample string 3</AccountId>
    <ContactId>sample string 2</ContactId>
    <OfferBuilderElementId>sample string 5</OfferBuilderElementId>
    <OfferElementRenderForModule>SmsCampaign</OfferElementRenderForModule>
    <OfferId>sample string 1</OfferId>
    <OfferSendDetailId>sample string 7</OfferSendDetailId>
    <SendModuleId>sample string 4</SendModuleId>
    <SendSummaryId>sample string 6</SendSummaryId>
  </OfferRedeemRequestViewModel>
</SaveContactAndRedeemOfferViewModel>

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.