POST api/V3/VanSales/UpdateLatestVanDetails
API can be used to fetch 10 incremental records of Approved Van Load Out Details.
Request Information
URI Parameters
None.
Body Parameters
For a given lastUpdated, the next 10 values for the company are sent. DATA FOR THE PARAM ID IS NOT INCLUDED.If lastUpdated is empty then it is assumed 0 and first 100 values are sent.
Collection of StockRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| VanStockId |
VanStockId |
integer |
None. |
| ApprovalStatus |
The status of approval as accepted or rejected |
ApprovedStatus |
None. |
| Time |
Time of the Load Out appproval |
date |
None. |
| StockItems |
Final list of items that are approved for the loadout |
Collection of V3.LoadOutStockItems |
None. |
| CompanyId |
CompanyId |
integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"VanStockId": 1,
"ApprovalStatus": "Pending",
"Time": "2025-11-05T06:59:58.7167807+00:00",
"StockItems": [
{
"ProductErpId": "sample string 1",
"ProductName": "sample string 2",
"Variant": "sample string 3",
"Material": "sample string 4",
"Quantity": 5.1,
"Price": 6.1,
"MininumNormQuanitity": 7.1,
"MaximumNormQuanitity": 8.1,
"FreshStock": 9,
"FreshCases": 1.1,
"CarryforwardCases": 1.1,
"CasePrice": 1.1,
"CarryForwardStock": 10,
"IsEdited": true
},
{
"ProductErpId": "sample string 1",
"ProductName": "sample string 2",
"Variant": "sample string 3",
"Material": "sample string 4",
"Quantity": 5.1,
"Price": 6.1,
"MininumNormQuanitity": 7.1,
"MaximumNormQuanitity": 8.1,
"FreshStock": 9,
"FreshCases": 1.1,
"CarryforwardCases": 1.1,
"CasePrice": 1.1,
"CarryForwardStock": 10,
"IsEdited": true
}
],
"CompanyId": 3
},
{
"VanStockId": 1,
"ApprovalStatus": "Pending",
"Time": "2025-11-05T06:59:58.7167807+00:00",
"StockItems": [
{
"ProductErpId": "sample string 1",
"ProductName": "sample string 2",
"Variant": "sample string 3",
"Material": "sample string 4",
"Quantity": 5.1,
"Price": 6.1,
"MininumNormQuanitity": 7.1,
"MaximumNormQuanitity": 8.1,
"FreshStock": 9,
"FreshCases": 1.1,
"CarryforwardCases": 1.1,
"CasePrice": 1.1,
"CarryForwardStock": 10,
"IsEdited": true
},
{
"ProductErpId": "sample string 1",
"ProductName": "sample string 2",
"Variant": "sample string 3",
"Material": "sample string 4",
"Quantity": 5.1,
"Price": 6.1,
"MininumNormQuanitity": 7.1,
"MaximumNormQuanitity": 8.1,
"FreshStock": 9,
"FreshCases": 1.1,
"CarryforwardCases": 1.1,
"CasePrice": 1.1,
"CarryForwardStock": 10,
"IsEdited": true
}
],
"CompanyId": 3
}
]
application/xml, text/xml
Sample:
<ArrayOfStockRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StockManagementSystem.Models">
<StockRequest>
<ApprovalStatus>Pending</ApprovalStatus>
<CompanyId>3</CompanyId>
<StockItems xmlns:d3p1="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3">
<d3p1:StockItem>
<d3p1:CarryForwardStock>10</d3p1:CarryForwardStock>
<d3p1:CarryforwardCases>1.1</d3p1:CarryforwardCases>
<d3p1:CasePrice>1.1</d3p1:CasePrice>
<d3p1:FreshCases>1.1</d3p1:FreshCases>
<d3p1:FreshStock>9</d3p1:FreshStock>
<d3p1:IsEdited>true</d3p1:IsEdited>
<d3p1:Material>sample string 4</d3p1:Material>
<d3p1:MaximumNormQuanitity>8.1</d3p1:MaximumNormQuanitity>
<d3p1:MininumNormQuanitity>7.1</d3p1:MininumNormQuanitity>
<d3p1:Price>6.1</d3p1:Price>
<d3p1:ProductErpId>sample string 1</d3p1:ProductErpId>
<d3p1:ProductName>sample string 2</d3p1:ProductName>
<d3p1:Quantity>5.1</d3p1:Quantity>
<d3p1:Variant>sample string 3</d3p1:Variant>
</d3p1:StockItem>
<d3p1:StockItem>
<d3p1:CarryForwardStock>10</d3p1:CarryForwardStock>
<d3p1:CarryforwardCases>1.1</d3p1:CarryforwardCases>
<d3p1:CasePrice>1.1</d3p1:CasePrice>
<d3p1:FreshCases>1.1</d3p1:FreshCases>
<d3p1:FreshStock>9</d3p1:FreshStock>
<d3p1:IsEdited>true</d3p1:IsEdited>
<d3p1:Material>sample string 4</d3p1:Material>
<d3p1:MaximumNormQuanitity>8.1</d3p1:MaximumNormQuanitity>
<d3p1:MininumNormQuanitity>7.1</d3p1:MininumNormQuanitity>
<d3p1:Price>6.1</d3p1:Price>
<d3p1:ProductErpId>sample string 1</d3p1:ProductErpId>
<d3p1:ProductName>sample string 2</d3p1:ProductName>
<d3p1:Quantity>5.1</d3p1:Quantity>
<d3p1:Variant>sample string 3</d3p1:Variant>
</d3p1:StockItem>
</StockItems>
<Time>2025-11-05T06:59:58.7167807+00:00</Time>
<VanStockId>1</VanStockId>
</StockRequest>
<StockRequest>
<ApprovalStatus>Pending</ApprovalStatus>
<CompanyId>3</CompanyId>
<StockItems xmlns:d3p1="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3">
<d3p1:StockItem>
<d3p1:CarryForwardStock>10</d3p1:CarryForwardStock>
<d3p1:CarryforwardCases>1.1</d3p1:CarryforwardCases>
<d3p1:CasePrice>1.1</d3p1:CasePrice>
<d3p1:FreshCases>1.1</d3p1:FreshCases>
<d3p1:FreshStock>9</d3p1:FreshStock>
<d3p1:IsEdited>true</d3p1:IsEdited>
<d3p1:Material>sample string 4</d3p1:Material>
<d3p1:MaximumNormQuanitity>8.1</d3p1:MaximumNormQuanitity>
<d3p1:MininumNormQuanitity>7.1</d3p1:MininumNormQuanitity>
<d3p1:Price>6.1</d3p1:Price>
<d3p1:ProductErpId>sample string 1</d3p1:ProductErpId>
<d3p1:ProductName>sample string 2</d3p1:ProductName>
<d3p1:Quantity>5.1</d3p1:Quantity>
<d3p1:Variant>sample string 3</d3p1:Variant>
</d3p1:StockItem>
<d3p1:StockItem>
<d3p1:CarryForwardStock>10</d3p1:CarryForwardStock>
<d3p1:CarryforwardCases>1.1</d3p1:CarryforwardCases>
<d3p1:CasePrice>1.1</d3p1:CasePrice>
<d3p1:FreshCases>1.1</d3p1:FreshCases>
<d3p1:FreshStock>9</d3p1:FreshStock>
<d3p1:IsEdited>true</d3p1:IsEdited>
<d3p1:Material>sample string 4</d3p1:Material>
<d3p1:MaximumNormQuanitity>8.1</d3p1:MaximumNormQuanitity>
<d3p1:MininumNormQuanitity>7.1</d3p1:MininumNormQuanitity>
<d3p1:Price>6.1</d3p1:Price>
<d3p1:ProductErpId>sample string 1</d3p1:ProductErpId>
<d3p1:ProductName>sample string 2</d3p1:ProductName>
<d3p1:Quantity>5.1</d3p1:Quantity>
<d3p1:Variant>sample string 3</d3p1:Variant>
</d3p1:StockItem>
</StockItems>
<Time>2025-11-05T06:59:58.7167807+00:00</Time>
<VanStockId>1</VanStockId>
</StockRequest>
</ArrayOfStockRequest>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.