POST api/product/{id}/buyinglimits
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
Collection of CustomBuyingLimit| Name | Description | Type | Additional information |
|---|---|---|---|
| Type | string |
None. |
|
| Name | string |
None. |
|
| ID | integer |
None. |
|
| BuyingLimit | integer |
None. |
|
| BuyingLimitIndependent | boolean |
None. |
|
| BuyingLimitType | BuyingLimitType |
None. |
|
| IncludeInDistinctLimit | boolean |
None. |
|
| DistinctCategoryLimit | integer |
None. |
|
| StoreIDs | Collection of integer |
None. |
|
| DeptCode | string |
None. |
|
| SubDeptCode | string |
None. |
|
| MinorDeptCode | string |
None. |
|
| LesserDeptCode | string |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"$id": "1",
"type": "sample string 1",
"name": "sample string 2",
"id": 3,
"buyingLimit": 1,
"buyingLimitIndependent": true,
"buyingLimitType": 0,
"includeInDistinctLimit": true,
"distinctCategoryLimit": 1,
"storeIDs": [
1,
2
],
"deptCode": "sample string 4",
"subDeptCode": "sample string 5",
"minorDeptCode": "sample string 6",
"lesserDeptCode": "sample string 7"
},
{
"$ref": "1"
}
]
application/xml, text/xml
Sample:
<ArrayOfCustomBuyingLimit xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Common">
<CustomBuyingLimit>
<BuyingLimit>1</BuyingLimit>
<BuyingLimitIndependent>true</BuyingLimitIndependent>
<BuyingLimitType>CategoryWide</BuyingLimitType>
<DeptCode>sample string 4</DeptCode>
<DistinctCategoryLimit>1</DistinctCategoryLimit>
<ID>3</ID>
<IncludeInDistinctLimit>true</IncludeInDistinctLimit>
<LesserDeptCode>sample string 7</LesserDeptCode>
<MinorDeptCode>sample string 6</MinorDeptCode>
<Name>sample string 2</Name>
<StoreIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</StoreIDs>
<SubDeptCode>sample string 5</SubDeptCode>
<Type>sample string 1</Type>
</CustomBuyingLimit>
<CustomBuyingLimit>
<BuyingLimit>1</BuyingLimit>
<BuyingLimitIndependent>true</BuyingLimitIndependent>
<BuyingLimitType>CategoryWide</BuyingLimitType>
<DeptCode>sample string 4</DeptCode>
<DistinctCategoryLimit>1</DistinctCategoryLimit>
<ID>3</ID>
<IncludeInDistinctLimit>true</IncludeInDistinctLimit>
<LesserDeptCode>sample string 7</LesserDeptCode>
<MinorDeptCode>sample string 6</MinorDeptCode>
<Name>sample string 2</Name>
<StoreIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>1</d3p1:int>
<d3p1:int>2</d3p1:int>
</StoreIDs>
<SubDeptCode>sample string 5</SubDeptCode>
<Type>sample string 1</Type>
</CustomBuyingLimit>
</ArrayOfCustomBuyingLimit>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.