POST v1/complex-margin/get-own
Request Information
URI Parameters
None.
Body Parameters
GetOwnMarginModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Token | string |
None. |
|
| Anumber | string |
None. |
|
| ProfileId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Token": "sample string 1",
"Anumber": "sample string 2",
"ProfileId": "sample string 3"
}
application/xml, text/xml
Sample:
<GetOwnMarginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CalculatorApi.Models.NewMargins"> <Anumber>sample string 2</Anumber> <ProfileId>sample string 3</ProfileId> <Token>sample string 1</Token> </GetOwnMarginModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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>