POST v1/complex-margin/insert
Request Information
URI Parameters
None.
Body Parameters
NewMarginInsertModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Anumber | string |
None. |
|
| Margin | CompleteComplexMargin |
None. |
|
| DistId | string |
None. |
|
| ProfileId | string |
None. |
|
| Token | string |
None. |
|
| UserName | 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
},
"DistId": "sample string 2",
"ProfileId": "sample string 3",
"Token": "sample string 4",
"UserName": "sample string 5"
}
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>
<DistId>sample string 2</DistId>
<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 3</ProfileId>
<Token>sample string 4</Token>
<UserName>sample string 5</UserName>
</NewMarginInsertModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.