POST api/V3/Distributor/StockCaping/{DistributorERPId}
Upload the stock caping for a distributors
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DistributorERPId |
Guid or ERP id of the distributor |
string |
Required |
Body Parameters
Stock of this distributor
Collection of SecondaryCategoryStock| Name | Description | Type | Additional information |
|---|---|---|---|
| EntityType | SecondaryOrderEntityType |
None. |
|
| EntityERPID | string |
None. |
|
| QuantityInUnits | integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"EntityType": "SecondaryCategory",
"EntityERPID": "sample string 1",
"QuantityInUnits": 2
},
{
"EntityType": "SecondaryCategory",
"EntityERPID": "sample string 1",
"QuantityInUnits": 2
}
]
application/xml, text/xml
Sample:
<ArrayOfSecondaryCategoryStock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Controllers">
<SecondaryCategoryStock>
<EntityERPID>sample string 1</EntityERPID>
<EntityType>SecondaryCategory</EntityType>
<QuantityInUnits>2</QuantityInUnits>
</SecondaryCategoryStock>
<SecondaryCategoryStock>
<EntityERPID>sample string 1</EntityERPID>
<EntityType>SecondaryCategory</EntityType>
<QuantityInUnits>2</QuantityInUnits>
</SecondaryCategoryStock>
</ArrayOfSecondaryCategoryStock>
Response Information
Resource Description
NSApiResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<NSApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.Common"> <Message>sample string 2</Message> <Success>true</Success> </NSApiResponse>