POST api/ChannelPartnerCompany/CommissionLadder/Save

Request Information

URI Parameters

None.

Body Parameters

SaveCommissionLadderVm
NameDescriptionTypeAdditional information
Id

integer

None.

ChannelPartnerCompanyId

integer

None.

Name

string

None.

LadderType

string

None.

PeriodType

string

None.

IsActive

boolean

None.

ProjectIds

Collection of integer

None.

Tiers

Collection of SaveCommissionLadderTierVm

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ChannelPartnerCompanyId": 2,
  "Name": "sample string 3",
  "LadderType": "sample string 4",
  "PeriodType": "sample string 5",
  "IsActive": true,
  "ProjectIds": [
    1,
    2
  ],
  "Tiers": [
    {
      "Id": 1,
      "TierOrder": 2,
      "Name": "sample string 3",
      "MinBookings": 1,
      "MaxBookings": 1,
      "MinAmount": 1.1,
      "MaxAmount": 1.1,
      "BonusPercentage": 4.1
    },
    {
      "Id": 1,
      "TierOrder": 2,
      "Name": "sample string 3",
      "MinBookings": 1,
      "MaxBookings": 1,
      "MinAmount": 1.1,
      "MaxAmount": 1.1,
      "BonusPercentage": 4.1
    }
  ]
}

application/xml, text/xml

Sample:
<SaveCommissionLadderVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models.ChannelPartnerModels">
  <ChannelPartnerCompanyId>2</ChannelPartnerCompanyId>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <LadderType>sample string 4</LadderType>
  <Name>sample string 3</Name>
  <PeriodType>sample string 5</PeriodType>
  <ProjectIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </ProjectIds>
  <Tiers>
    <SaveCommissionLadderTierVm>
      <BonusPercentage>4.1</BonusPercentage>
      <Id>1</Id>
      <MaxAmount>1.1</MaxAmount>
      <MaxBookings>1</MaxBookings>
      <MinAmount>1.1</MinAmount>
      <MinBookings>1</MinBookings>
      <Name>sample string 3</Name>
      <TierOrder>2</TierOrder>
    </SaveCommissionLadderTierVm>
    <SaveCommissionLadderTierVm>
      <BonusPercentage>4.1</BonusPercentage>
      <Id>1</Id>
      <MaxAmount>1.1</MaxAmount>
      <MaxBookings>1</MaxBookings>
      <MinAmount>1.1</MinAmount>
      <MinBookings>1</MinBookings>
      <Name>sample string 3</Name>
      <TierOrder>2</TierOrder>
    </SaveCommissionLadderTierVm>
  </Tiers>
</SaveCommissionLadderVm>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.