POST api/Stock/AddStockRequest
Request Information
URI Parameters
None.
Body Parameters
AddStockRequestName | Description | Type | Additional information |
---|---|---|---|
Businessid | integer |
None. |
|
AgentId | integer |
None. |
|
StockData | Collection of StockDataTable |
None. |
|
StockRequestDate | string |
None. |
|
Flag | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Businessid": 1, "AgentId": 2, "StockData": [ { "ProductId": 1, "ProductName": "sample string 2", "QuantityRequested": 3, "QuantityAvailable": 4, "ApprovedQuantity": 5 }, { "ProductId": 1, "ProductName": "sample string 2", "QuantityRequested": 3, "QuantityAvailable": 4, "ApprovedQuantity": 5 } ], "StockRequestDate": "sample string 3", "Flag": 4 }
application/xml, text/xml
Sample:
<AddStockRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Businessid>1</Businessid> <AgentId>2</AgentId> <StockData> <StockDataTable> <ProductId>1</ProductId> <ProductName>sample string 2</ProductName> <QuantityRequested>3</QuantityRequested> <QuantityAvailable>4</QuantityAvailable> <ApprovedQuantity>5</ApprovedQuantity> </StockDataTable> <StockDataTable> <ProductId>1</ProductId> <ProductName>sample string 2</ProductName> <QuantityRequested>3</QuantityRequested> <QuantityAvailable>4</QuantityAvailable> <ApprovedQuantity>5</ApprovedQuantity> </StockDataTable> </StockData> <StockRequestDate>sample string 3</StockRequestDate> <Flag>4</Flag> </AddStockRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VCAPIResponseName | Description | Type | Additional information |
---|---|---|---|
Version | string |
None. |
|
dateTime | string |
None. |
|
StatusCode | integer |
None. |
|
ErrorMessage | string |
None. |
|
Result | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "Version": "1.0.0", "dateTime": "2025/04/28 13:36:20", "StatusCode": 1, "ErrorMessage": "sample string 2", "Result": {} }
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <StatusCode>1</StatusCode> <ErrorMessage>sample string 2</ErrorMessage> <Result /> </VCAPIResponse>