POST api/V3/CompanyFactoryStock/CreateUpdateCompanyFactoryStock
This API is used to create or update the company factory stock
Request Information
URI Parameters
None.
Body Parameters
Collection of FactoryStocks| Name | Description | Type | Additional information |
|---|---|---|---|
| FactoryErpId |
ErpId of the factory |
string |
None. |
| ProductErpId |
ErpId of the product/SKU |
string |
None. |
| Quantity |
Quantity of the products in Units |
integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"FactoryErpId": "sample string 1",
"ProductErpId": "sample string 2",
"Quantity": 3
},
{
"FactoryErpId": "sample string 1",
"ProductErpId": "sample string 2",
"Quantity": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfFactoryStocks xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3">
<FactoryStocks>
<FactoryErpId>sample string 1</FactoryErpId>
<ProductErpId>sample string 2</ProductErpId>
<Quantity>3</Quantity>
</FactoryStocks>
<FactoryStocks>
<FactoryErpId>sample string 1</FactoryErpId>
<ProductErpId>sample string 2</ProductErpId>
<Quantity>3</Quantity>
</FactoryStocks>
</ArrayOfFactoryStocks>
Response Information
Resource Description
Collection of FactoryStockResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Status |
Status for request |
string |
None. |
| Message |
Status Message for the request |
string |
None. |
| FactoryErpId |
ErpId of the factory |
string |
None. |
| ProductErpId |
ErpId of the product/SKU |
string |
None. |
| Quantity |
Quantity of the products in Units |
integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Status": "sample string 1",
"Message": "sample string 2",
"FactoryErpId": "sample string 3",
"ProductErpId": "sample string 4",
"Quantity": 5
},
{
"Status": "sample string 1",
"Message": "sample string 2",
"FactoryErpId": "sample string 3",
"ProductErpId": "sample string 4",
"Quantity": 5
}
]
application/xml, text/xml
Sample:
<ArrayOfFactoryStockResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3">
<FactoryStockResponse>
<FactoryErpId>sample string 3</FactoryErpId>
<ProductErpId>sample string 4</ProductErpId>
<Quantity>5</Quantity>
<Message>sample string 2</Message>
<Status>sample string 1</Status>
</FactoryStockResponse>
<FactoryStockResponse>
<FactoryErpId>sample string 3</FactoryErpId>
<ProductErpId>sample string 4</ProductErpId>
<Quantity>5</Quantity>
<Message>sample string 2</Message>
<Status>sample string 1</Status>
</FactoryStockResponse>
</ArrayOfFactoryStockResponse>