POST api/V3/CompanyStock/UpdateStock
Creates or updates multiple Company Stocks.
Request Information
URI Parameters
None.
Body Parameters
New Company Stocks to be created or updated
Collection of V3.CompanyStockName | Description | Type | Additional information |
---|---|---|---|
ProductERPId |
ERPId of the product |
string |
Required |
Quantity |
Quantity of the product |
integer |
Required |
Request Formats
application/json, text/json
Sample:
[ { "ProductERPId": "sample string 1", "Quantity": 2 }, { "ProductERPId": "sample string 1", "Quantity": 2 } ]
application/xml, text/xml
Sample:
<ArrayOfCompanyStock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.V3.Models"> <CompanyStock> <ProductERPId>sample string 1</ProductERPId> <Quantity>2</Quantity> </CompanyStock> <CompanyStock> <ProductERPId>sample string 1</ProductERPId> <Quantity>2</Quantity> </CompanyStock> </ArrayOfCompanyStock>
Response Information
Resource Description
Response object with Guid and message or an Error Message
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.