POST api/Rep/PayoutProfile

Allows you to create Rep's Payout profile.

Request Information

URI Parameters

None.

Body Parameters

RepsPayoutProfileViewModel
NameDescriptionTypeAdditional information
RepDID

string

None.

PayoutMethodID

integer

None.

SetAsDefaultPayoutMethod

boolean

None.

profileValues

Collection of RepsPayoutProfileItemValue

None.

Request Formats

application/xml, text/xml

Sample:
<RepsPayoutProfileViewModel>
  <RepDID>sample string 1</RepDID>
  <PayoutMethodID>2</PayoutMethodID>
  <SetAsDefaultPayoutMethod>True</SetAsDefaultPayoutMethod>
  <profileValues>
    <RepsPayoutProfileItemValue>
      <DetailNumber>1</DetailNumber>
      <Value>sample string 2</Value>
    </RepsPayoutProfileItemValue>
    <RepsPayoutProfileItemValue>
      <DetailNumber>1</DetailNumber>
      <Value>sample string 2</Value>
    </RepsPayoutProfileItemValue>
  </profileValues>
</RepsPayoutProfileViewModel>

application/json, text/json

Sample:
{
  "RepDID": "sample string 1",
  "PayoutMethodID": 2,
  "SetAsDefaultPayoutMethod": true,
  "profileValues": [
    {
      "DetailNumber": 1,
      "Value": "sample string 2"
    },
    {
      "DetailNumber": 1,
      "Value": "sample string 2"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'FormUrlEncodedFormatter' to write type 'RepsPayoutProfileViewModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/xml, text/xml, application/json, text/json

Sample:

Sample not available.