POST Api/ProcessMRP/GetMRPDetails
Request Information
URI Parameters
None.
Body Parameters
WorkOrderListVM| Name | Description | Type | Additional information |
|---|---|---|---|
| ids | Collection of integer |
None. |
|
| SkipTransitQty | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"ids": [
1,
2
],
"SkipTransitQty": true
}
application/xml, text/xml
Sample:
<WorkOrderListVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netsoft.Web.Api.ViewModel">
<SkipTransitQty>true</SkipTransitQty>
<ids xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:long>1</d2p1:long>
<d2p1:long>2</d2p1:long>
</ids>
</WorkOrderListVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of MRPDetailVM| Name | Description | Type | Additional information |
|---|---|---|---|
| ItemId | integer |
None. |
|
| ItemCode | string |
None. |
|
| ItemName | string |
None. |
|
| Description | string |
None. |
|
| TotalQuantity | decimal number |
None. |
|
| StockQuantity | decimal number |
None. |
|
| AllottedQty | decimal number |
None. |
|
| MinQuantity | decimal number |
None. |
|
| TransitQuantity | decimal number |
None. |
|
| ToBeOrderedQuantity | decimal number |
None. |
|
| LeadTime | integer |
None. |
|
| Unit | string |
None. |
|
| UnitPrice | decimal number |
None. |
|
| SupplierName | string |
None. |
|
| GroupName | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"ItemId": 1,
"ItemCode": "sample string 2",
"ItemName": "sample string 3",
"Description": "sample string 4",
"TotalQuantity": 5.1,
"StockQuantity": 6.1,
"AllottedQty": 7.1,
"MinQuantity": 8.1,
"TransitQuantity": 9.1,
"ToBeOrderedQuantity": 10.1,
"LeadTime": 11,
"Unit": "sample string 12",
"UnitPrice": 13.1,
"SupplierName": "sample string 14",
"GroupName": "sample string 15"
},
{
"ItemId": 1,
"ItemCode": "sample string 2",
"ItemName": "sample string 3",
"Description": "sample string 4",
"TotalQuantity": 5.1,
"StockQuantity": 6.1,
"AllottedQty": 7.1,
"MinQuantity": 8.1,
"TransitQuantity": 9.1,
"ToBeOrderedQuantity": 10.1,
"LeadTime": 11,
"Unit": "sample string 12",
"UnitPrice": 13.1,
"SupplierName": "sample string 14",
"GroupName": "sample string 15"
}
]
application/xml, text/xml
Sample:
<ArrayOfMRPDetailVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netsoft.Web.Api.ViewModel">
<MRPDetailVM>
<AllottedQty>7.1</AllottedQty>
<Description>sample string 4</Description>
<GroupName>sample string 15</GroupName>
<ItemCode>sample string 2</ItemCode>
<ItemId>1</ItemId>
<ItemName>sample string 3</ItemName>
<LeadTime>11</LeadTime>
<MinQuantity>8.1</MinQuantity>
<StockQuantity>6.1</StockQuantity>
<SupplierName>sample string 14</SupplierName>
<ToBeOrderedQuantity>10.1</ToBeOrderedQuantity>
<TotalQuantity>5.1</TotalQuantity>
<TransitQuantity>9.1</TransitQuantity>
<Unit>sample string 12</Unit>
<UnitPrice>13.1</UnitPrice>
</MRPDetailVM>
<MRPDetailVM>
<AllottedQty>7.1</AllottedQty>
<Description>sample string 4</Description>
<GroupName>sample string 15</GroupName>
<ItemCode>sample string 2</ItemCode>
<ItemId>1</ItemId>
<ItemName>sample string 3</ItemName>
<LeadTime>11</LeadTime>
<MinQuantity>8.1</MinQuantity>
<StockQuantity>6.1</StockQuantity>
<SupplierName>sample string 14</SupplierName>
<ToBeOrderedQuantity>10.1</ToBeOrderedQuantity>
<TotalQuantity>5.1</TotalQuantity>
<TransitQuantity>9.1</TransitQuantity>
<Unit>sample string 12</Unit>
<UnitPrice>13.1</UnitPrice>
</MRPDetailVM>
</ArrayOfMRPDetailVM>