POST api/InstallerFeed/AssignPromoCode

Request Information

URI Parameters

None.

Body Parameters

Collection of InstallerPromoCodeModel
NameDescriptionTypeAdditional information
InstallerId

string

Required

Max length: 18

PromotionCode

string

Required

Max length: 100

Errors

Collection of string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "InstallerId": "sample string 1",
    "PromotionCode": "sample string 2",
    "Errors": [
      "sample string 1",
      "sample string 2"
    ]
  },
  {
    "InstallerId": "sample string 1",
    "PromotionCode": "sample string 2",
    "Errors": [
      "sample string 1",
      "sample string 2"
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfInstallerPromoCodeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Valvoline.Models">
  <InstallerPromoCodeModel>
    <Errors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Errors>
    <InstallerId>sample string 1</InstallerId>
    <PromotionCode>sample string 2</PromotionCode>
  </InstallerPromoCodeModel>
  <InstallerPromoCodeModel>
    <Errors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Errors>
    <InstallerId>sample string 1</InstallerId>
    <PromotionCode>sample string 2</PromotionCode>
  </InstallerPromoCodeModel>
</ArrayOfInstallerPromoCodeModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.