GET v1/complex-margin/get?profileId={profileId}&distributorId={distributorId}&passcode={passcode}&anumber={anumber}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| profileId | string |
Required |
|
| distributorId | string |
Required |
|
| passcode | string |
Required |
|
| anumber | string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
Collection of ComplexMarginCollection| Name | Description | Type | Additional information |
|---|---|---|---|
| Anumber | string |
None. |
|
| ProductMargins | Dictionary of decimal number [key] and Dictionary of integer [key] and decimal number [value] [value] |
None. |
|
| UseSellingPrices | boolean |
None. |
|
| UseBuyingPrices | boolean |
None. |
|
| CreateTiers | boolean |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Anumber": "sample string 1",
"ProductMargins": {
"1": {
"1": 2.0,
"3": 4.0
},
"2": {
"1": 2.0,
"3": 4.0
}
},
"UseSellingPrices": true,
"UseBuyingPrices": true,
"CreateTiers": true
},
{
"Anumber": "sample string 1",
"ProductMargins": {
"1": {
"1": 2.0,
"3": 4.0
},
"2": {
"1": 2.0,
"3": 4.0
}
},
"UseSellingPrices": true,
"UseBuyingPrices": true,
"CreateTiers": true
}
]
application/xml, text/xml
Sample:
<ArrayOfComplexMarginCollection xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CalculatorApi.Models.NewMargins">
<ComplexMarginCollection>
<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>
<Anumber>sample string 1</Anumber>
</ComplexMarginCollection>
<ComplexMarginCollection>
<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>
<Anumber>sample string 1</Anumber>
</ComplexMarginCollection>
</ArrayOfComplexMarginCollection>