POST api/storeSize/{id}/deals
Save a list of investment buy deals
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Store size identifier |
integer |
Required |
Body Parameters
List of investment buy deals to save
Collection of StoreSizeDeal| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| StoreSizeID |
References StoreSize ID |
integer |
None. |
| MinDealPercentage |
Minimum deal better percentage |
decimal number |
None. |
| MaxDealPercentage |
Maximum deal better percentage (optional) |
decimal number |
None. |
| DaysStockOrder |
Number of stock order days to apply |
integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"$id": "1",
"id": 1,
"storeSizeID": 1,
"minDealPercentage": 2.1,
"maxDealPercentage": 1.1,
"daysStockOrder": 3
},
{
"$ref": "1"
}
]
application/xml, text/xml
Sample:
<ArrayOfStoreSizeDeal xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EziManager.Models.EMC.Stores">
<StoreSizeDeal>
<DaysStockOrder>3</DaysStockOrder>
<ID>1</ID>
<MaxDealPercentage>1.1</MaxDealPercentage>
<MinDealPercentage>2.1</MinDealPercentage>
<StoreSizeID>1</StoreSizeID>
</StoreSizeDeal>
<StoreSizeDeal>
<DaysStockOrder>3</DaysStockOrder>
<ID>1</ID>
<MaxDealPercentage>1.1</MaxDealPercentage>
<MinDealPercentage>2.1</MinDealPercentage>
<StoreSizeID>1</StoreSizeID>
</StoreSizeDeal>
</ArrayOfStoreSizeDeal>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.