GET api/Inventory/GetItemQuantity?itemCode={itemCode}&batchType={batchType}&batchCode={batchCode}
Renvoie les informations déjà saisies d’un article ou d’un lot pour l’inventaire en cours
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| itemCode |
code article |
string |
Required |
| batchType | boolean |
Required |
|
| batchCode |
code lot |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
Les propriétés de l’article ou lot (désignation, colisage, fractionnable, …), Le stock théorique au début de l’inventaire, Le stock total déjà saisie, Le détail des saisies sur cet article ou ce lot s’il y’en a déjà eu(utilisateur, date, quantités),
JSonGenericOfInventoryItemsQuantity| Name | Description | Type | Additional information |
|---|---|---|---|
| Response | InventoryItemsQuantity |
None. |
|
| Datas | InventoryItemsQuantity |
None. |
|
| ServiceName | string |
None. |
|
| Parameters | string |
None. |
|
| Status | ReturnErrorStatus |
None. |
|
| ErrorMessage | string |
None. |
|
| Error | jsonExceptionIES |
None. |
Response Formats
application/json, text/json
Sample:
{
"Response": {
"targetstock": {
"box": 1.1,
"unit": 2.1,
"weight": 3.1
},
"totalCountedStock": {
"box": 1.1,
"unit": 2.1,
"weight": 3.1
},
"countedDetails": [
{
"box": 1.1,
"unit": 2.1,
"weight": 3.1,
"user": "sample string 4",
"userName": "sample string 5",
"countedDate": "sample string 6",
"countedTime": "sample string 7"
},
{
"box": 1.1,
"unit": 2.1,
"weight": 3.1,
"user": "sample string 4",
"userName": "sample string 5",
"countedDate": "sample string 6",
"countedTime": "sample string 7"
}
]
},
"Datas": {
"targetstock": {
"box": 1.1,
"unit": 2.1,
"weight": 3.1
},
"totalCountedStock": {
"box": 1.1,
"unit": 2.1,
"weight": 3.1
},
"countedDetails": [
{
"box": 1.1,
"unit": 2.1,
"weight": 3.1,
"user": "sample string 4",
"userName": "sample string 5",
"countedDate": "sample string 6",
"countedTime": "sample string 7"
},
{
"box": 1.1,
"unit": 2.1,
"weight": 3.1,
"user": "sample string 4",
"userName": "sample string 5",
"countedDate": "sample string 6",
"countedTime": "sample string 7"
}
]
},
"ServiceName": "sample string 1",
"Parameters": "sample string 2",
"Status": 0,
"ErrorMessage": "sample string 3",
"Error": {
"Code": "sample string 1",
"Details": "sample string 2",
"Message": "sample string 3",
"Level": 1
}
}
application/xml, text/xml
Sample:
<JSonGenericOfInventoryItemsQuantityfyVIgxGa xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ForSagaMiddleware">
<Error>
<Code>sample string 1</Code>
<Details>sample string 2</Details>
<Level>Info</Level>
<Message>sample string 3</Message>
</Error>
<ErrorMessage>sample string 3</ErrorMessage>
<Parameters>sample string 2</Parameters>
<ServiceName>sample string 1</ServiceName>
<Status>Error</Status>
<Datas xmlns:d2p1="http://schemas.datacontract.org/2004/07/SAGACore.Model.Inventory">
<d2p1:countedDetails>
<d2p1:CountedDetail>
<d2p1:box>1.1</d2p1:box>
<d2p1:countedDate>sample string 6</d2p1:countedDate>
<d2p1:countedTime>sample string 7</d2p1:countedTime>
<d2p1:unit>2.1</d2p1:unit>
<d2p1:user>sample string 4</d2p1:user>
<d2p1:userName>sample string 5</d2p1:userName>
<d2p1:weight>3.1</d2p1:weight>
</d2p1:CountedDetail>
<d2p1:CountedDetail>
<d2p1:box>1.1</d2p1:box>
<d2p1:countedDate>sample string 6</d2p1:countedDate>
<d2p1:countedTime>sample string 7</d2p1:countedTime>
<d2p1:unit>2.1</d2p1:unit>
<d2p1:user>sample string 4</d2p1:user>
<d2p1:userName>sample string 5</d2p1:userName>
<d2p1:weight>3.1</d2p1:weight>
</d2p1:CountedDetail>
</d2p1:countedDetails>
<d2p1:targetstock>
<d2p1:box>1.1</d2p1:box>
<d2p1:unit>2.1</d2p1:unit>
<d2p1:weight>3.1</d2p1:weight>
</d2p1:targetstock>
<d2p1:totalCountedStock>
<d2p1:box>1.1</d2p1:box>
<d2p1:unit>2.1</d2p1:unit>
<d2p1:weight>3.1</d2p1:weight>
</d2p1:totalCountedStock>
</Datas>
<Response xmlns:d2p1="http://schemas.datacontract.org/2004/07/SAGACore.Model.Inventory">
<d2p1:countedDetails>
<d2p1:CountedDetail>
<d2p1:box>1.1</d2p1:box>
<d2p1:countedDate>sample string 6</d2p1:countedDate>
<d2p1:countedTime>sample string 7</d2p1:countedTime>
<d2p1:unit>2.1</d2p1:unit>
<d2p1:user>sample string 4</d2p1:user>
<d2p1:userName>sample string 5</d2p1:userName>
<d2p1:weight>3.1</d2p1:weight>
</d2p1:CountedDetail>
<d2p1:CountedDetail>
<d2p1:box>1.1</d2p1:box>
<d2p1:countedDate>sample string 6</d2p1:countedDate>
<d2p1:countedTime>sample string 7</d2p1:countedTime>
<d2p1:unit>2.1</d2p1:unit>
<d2p1:user>sample string 4</d2p1:user>
<d2p1:userName>sample string 5</d2p1:userName>
<d2p1:weight>3.1</d2p1:weight>
</d2p1:CountedDetail>
</d2p1:countedDetails>
<d2p1:targetstock>
<d2p1:box>1.1</d2p1:box>
<d2p1:unit>2.1</d2p1:unit>
<d2p1:weight>3.1</d2p1:weight>
</d2p1:targetstock>
<d2p1:totalCountedStock>
<d2p1:box>1.1</d2p1:box>
<d2p1:unit>2.1</d2p1:unit>
<d2p1:weight>3.1</d2p1:weight>
</d2p1:totalCountedStock>
</Response>
</JSonGenericOfInventoryItemsQuantityfyVIgxGa>