PUT api/Affiliate/UpdateAffiliateFields

Request Information

URI Parameters

None.

Body Parameters

UpdateAffiliateDetailsRequestVM
NameDescriptionTypeAdditional information
AffiliateId

string

Required

AdminUserId

string

Required

Field

AffiliateEditableFields

Required

Address

AddressFields

None.

TimeZoneId

string

None.

SalePercentage

decimal number

None.

SalesSourceId

string

None.

PhoneNumber

string

None.

CountryCode

string

None.

CompanyName

string

None.

Website

string

None.

CookieExpirationDays

integer

None.

SourceAffiliateId

string

None.

Status

AffiliateAccountStatus

None.

CommissionRate

AffiliateCommissionInputs

None.

BusinessType

AffiliateBussinessType

None.

PaymentType

PaymentModeType

None.

PayeeName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AffiliateId": "sample string 1",
  "AdminUserId": "sample string 2",
  "Field": "Address",
  "Address": {
    "Address1": "sample string 1",
    "Address2": "sample string 2",
    "City": "sample string 3",
    "StateId": "sample string 4",
    "CountryId": "sample string 5",
    "ZipCode": "sample string 6"
  },
  "TimeZoneId": "sample string 3",
  "SalePercentage": 4.0,
  "SalesSourceId": "sample string 5",
  "PhoneNumber": "sample string 6",
  "CountryCode": "sample string 7",
  "CompanyName": "sample string 8",
  "Website": "sample string 9",
  "CookieExpirationDays": 10,
  "SourceAffiliateId": "sample string 11",
  "Status": "None",
  "CommissionRate": {
    "Type": "Standard",
    "CommissionRate": 1.0
  },
  "BusinessType": "Individual",
  "PaymentType": "Check",
  "PayeeName": "sample string 12"
}

application/xml, text/xml

Sample:
<UpdateAffiliateDetailsRequestVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.AffiliateAndCommissions">
  <Address>
    <Address1>sample string 1</Address1>
    <Address2>sample string 2</Address2>
    <City>sample string 3</City>
    <CountryId>sample string 5</CountryId>
    <StateId>sample string 4</StateId>
    <ZipCode>sample string 6</ZipCode>
  </Address>
  <AdminUserId>sample string 2</AdminUserId>
  <AffiliateId>sample string 1</AffiliateId>
  <BusinessType>Individual</BusinessType>
  <CommissionRate>
    <CommissionRate>1</CommissionRate>
    <Type>Standard</Type>
  </CommissionRate>
  <CompanyName>sample string 8</CompanyName>
  <CookieExpirationDays>10</CookieExpirationDays>
  <CountryCode>sample string 7</CountryCode>
  <Field>Address</Field>
  <PayeeName>sample string 12</PayeeName>
  <PaymentType>Check</PaymentType>
  <PhoneNumber>sample string 6</PhoneNumber>
  <SalePercentage>4</SalePercentage>
  <SalesSourceId>sample string 5</SalesSourceId>
  <SourceAffiliateId>sample string 11</SourceAffiliateId>
  <Status>None</Status>
  <TimeZoneId>sample string 3</TimeZoneId>
  <Website>sample string 9</Website>
</UpdateAffiliateDetailsRequestVM>

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.