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:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <AgentId>2</AgentId> <Businessid>1</Businessid> <Flag>4</Flag> <StockData> <StockDataTable> <ApprovedQuantity>5</ApprovedQuantity> <ProductId>1</ProductId> <ProductName>sample string 2</ProductName> <QuantityAvailable>4</QuantityAvailable> <QuantityRequested>3</QuantityRequested> </StockDataTable> <StockDataTable> <ApprovedQuantity>5</ApprovedQuantity> <ProductId>1</ProductId> <ProductName>sample string 2</ProductName> <QuantityAvailable>4</QuantityAvailable> <QuantityRequested>3</QuantityRequested> </StockDataTable> </StockData> <StockRequestDate>sample string 3</StockRequestDate> </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/04 03:40:22", "StatusCode": 1, "ErrorMessage": "sample string 2", "Result": {} }
application/xml, text/xml
Sample:
<VCAPIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <ErrorMessage>sample string 2</ErrorMessage> <Result /> <StatusCode>1</StatusCode> </VCAPIResponse>