POST Api/Vendor/CreateAffiliateCode

Request Information

URI Parameters

None.

Body Parameters

AffiliateCodeRequest
NameDescriptionTypeAdditional information
UserExternalSourceCode

string

None.

UserExternalSourceId

string

None.

VendorGroupId

integer

None.

VendorExternalSourceCode

string

None.

VendorExternalSourceId

string

None.

AffiliateCode

string

None.

Name

string

None.

Description

string

None.

Location

string

None.

StartDate

date

None.

EndDate

date

None.

StatusCode

string

None.

TypeCode

string

None.

MinimumOffer

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "userExternalSourceCode": "sample string 1",
  "userExternalSourceId": "sample string 2",
  "vendorGroupId": 3,
  "vendorExternalSourceCode": "sample string 4",
  "vendorExternalSourceId": "sample string 5",
  "affiliateCode": "sample string 6",
  "name": "sample string 7",
  "description": "sample string 8",
  "location": "sample string 9",
  "startDate": "2025-05-02T08:53:11.3705244-05:00",
  "endDate": "2025-05-02T08:53:11.3705244-05:00",
  "statusCode": "sample string 12",
  "typeCode": "sample string 13",
  "minimumOffer": 14
}

application/xml, text/xml

Sample:
<AffiliateCodeRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <UserExternalSourceCode>sample string 1</UserExternalSourceCode>
  <UserExternalSourceId>sample string 2</UserExternalSourceId>
  <VendorGroupId>3</VendorGroupId>
  <VendorExternalSourceCode>sample string 4</VendorExternalSourceCode>
  <VendorExternalSourceId>sample string 5</VendorExternalSourceId>
  <AffiliateCode>sample string 6</AffiliateCode>
  <Name>sample string 7</Name>
  <Description>sample string 8</Description>
  <Location>sample string 9</Location>
  <StartDate>2025-05-02T08:53:11.3705244-05:00</StartDate>
  <EndDate>2025-05-02T08:53:11.3705244-05:00</EndDate>
  <StatusCode>sample string 12</StatusCode>
  <TypeCode>sample string 13</TypeCode>
  <MinimumOffer>14</MinimumOffer>
</AffiliateCodeRequest>

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 'AffiliateCodeRequest'.

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.