POST api/Stock/ApproveStockRequest
Request Information
URI Parameters
None.
Body Parameters
ApproveStockRequestName | Description | Type | Additional information |
---|---|---|---|
Businessid | integer |
None. |
|
Loginuserid | integer |
None. |
|
AgentId | integer |
None. |
|
StockRequestId | string |
None. |
|
StockData | Collection of StockDataTable |
None. |
Request Formats
application/json, text/json
Sample:
{ "Businessid": 1, "Loginuserid": 2, "AgentId": 3, "StockRequestId": "sample string 4", "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 } ] }
application/xml, text/xml
Sample:
<ApproveStockRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOPWAAPI.Model"> <AgentId>3</AgentId> <Businessid>1</Businessid> <Loginuserid>2</Loginuserid> <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> <StockRequestId>sample string 4</StockRequestId> </ApproveStockRequest>
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:55: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>