POST v1/complex-margin/insert

Request Information

URI Parameters

None.

Body Parameters

NewMarginInsertModel
NameDescriptionTypeAdditional information
Anumber

string

None.

Margin

CompleteComplexMargin

None.

ProfileId

string

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Anumber": "sample string 1",
  "Margin": {
    "ProductMargins": {
      "1": {
        "1": 2.0,
        "3": 4.0
      },
      "2": {
        "1": 2.0,
        "3": 4.0
      }
    },
    "UseSellingPrices": true,
    "UseBuyingPrices": true,
    "CreateTiers": true
  },
  "ProfileId": "sample string 2",
  "Token": "sample string 3"
}

application/xml, text/xml

Sample:
<NewMarginInsertModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CalculatorApi.Models.NewMargins">
  <Anumber>sample string 1</Anumber>
  <Margin>
    <CreateTiers>true</CreateTiers>
    <ProductMargins xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfdecimalArrayOfKeyValueOfintdecimalty7Ep6D1>
        <d3p1:Key>1</d3p1:Key>
        <d3p1:Value>
          <d3p1:KeyValueOfintdecimal>
            <d3p1:Key>1</d3p1:Key>
            <d3p1:Value>2</d3p1:Value>
          </d3p1:KeyValueOfintdecimal>
          <d3p1:KeyValueOfintdecimal>
            <d3p1:Key>3</d3p1:Key>
            <d3p1:Value>4</d3p1:Value>
          </d3p1:KeyValueOfintdecimal>
        </d3p1:Value>
      </d3p1:KeyValueOfdecimalArrayOfKeyValueOfintdecimalty7Ep6D1>
      <d3p1:KeyValueOfdecimalArrayOfKeyValueOfintdecimalty7Ep6D1>
        <d3p1:Key>2</d3p1:Key>
        <d3p1:Value>
          <d3p1:KeyValueOfintdecimal>
            <d3p1:Key>1</d3p1:Key>
            <d3p1:Value>2</d3p1:Value>
          </d3p1:KeyValueOfintdecimal>
          <d3p1:KeyValueOfintdecimal>
            <d3p1:Key>3</d3p1:Key>
            <d3p1:Value>4</d3p1:Value>
          </d3p1:KeyValueOfintdecimal>
        </d3p1:Value>
      </d3p1:KeyValueOfdecimalArrayOfKeyValueOfintdecimalty7Ep6D1>
    </ProductMargins>
    <UseBuyingPrices>true</UseBuyingPrices>
    <UseSellingPrices>true</UseSellingPrices>
  </Margin>
  <ProfileId>sample string 2</ProfileId>
  <Token>sample string 3</Token>
</NewMarginInsertModel>

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.