Just for WMS warehouse and WMS/SEN level of detail
URL: https://api.socratecloud.com/scwi/rest/stock_line/full/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}&Warehouse_ID={Warehouse}
Method: GET
Available filter parameters:
Organization_ID
Product_ID
StockLine_ID
Return: JSON object with next format:
{
"data": [
{
"Line": 1,
"Organization_ID": 1000001,
"Organization": "Demo SRL",
"Warehouse_ID": 1001883,
"Warehouse": "Gestiune WMS fizica Brasov",
"WarehouseTo_ID": null,
"WarehouseTo": null,
"Created": "2018-02-16 09:15:11+0000",
"CreatedBy_ID": 1000002,
"CreatedBy": "AdminTitular",
"Updated": "2018-02-16 09:15:48+0000",
"UpdatedBy_ID": 1000002,
"UpdatedBy": "AdminTitular",
"ReceivingDate": "2018-02-16 00:00:00+0000",
"Product_ID": 1011809,
"Product": "ART1 SN WMS",
"ProductName": "Art1 SN WMS",
"Locator_ID": 1000082,
"Locator": "D211",
"SSCC": "13",
"TransportUnitType": "Standard EUR",
"LotNumber": null,
"ProductionDate": null,
"GuaranteeDate": null,
"Damaged": "N",
"Quarantine": "N",
"Expired": "N",
"StockBlock": "1",
"BlockReason_ID": null,
"BlockReason": null,
"StockLineQuantity": 4,
"Description": null,
"StockLine_ID": 1001561,
"MovementLine_ID": 0,
"MovementConfirmationLine_ID": 0,
"InventoryLine_ID": 0,
"InOutLine_ID": 0,
"ExtPartner_ID": null,
"SerialNumbers": [
{
"Organization_ID": 1000001,
"Organization": "Demo SRL",
"Warehouse_ID": 1001883,
"Warehouse": "Gestiune WMS fizica Brasov",
"Created": "2018-02-13 10:06:09+0000",
"CreatedBy_ID": 1000002,
"CreatedBy": "AdminTitular",
"Updated": "2018-03-06 08:52:06+0000",
"UpdatedBy_ID": 1000002,
"UpdatedBy": "AdminTitular",
"Line": 1,
"Product": "ART1 SN WMS",
"Product_ID": 1011809,
"Barcode1Name": null,
"Barcode1": "903",
"Barcode2Name": null,
"Barcode2": null,
"Barcode3Name": null,
"Barcode3": null,
"Barcode4Name": null,
"Barcode4": null,
"Box1Name": null,
"Box1Barcode": "222",
"Box2Name": null,
"Box2Barcode": "333",
"Box3Name": null,
"Box3Barcode": null,
"Box4Name": null,
"Box4Barcode": null,
"SerialNumber_ID": 1000058,
"StockLine_ID": 1001561
},
{
"Organization_ID": 1000001,
"Organization": "Demo SRL",
"Warehouse_ID": 1001883,
"Warehouse": "Gestiune WMS fizica Brasov",
"Created": "2018-02-13 13:04:06+0000",
"CreatedBy_ID": 1000002,
"CreatedBy": "AdminTitular",
"Updated": "2018-03-06 08:52:17+0000",
"UpdatedBy_ID": 1000002,
"UpdatedBy": "AdminTitular",
"Line": 4,
"Product": "ART1 SN WMS",
"Product_ID": 1011809,
"Barcode1Name": null,
"Barcode1": "906",
"Barcode2Name": null,
"Barcode2": null,
"Barcode3Name": null,
"Barcode3": null,
"Barcode4Name": null,
"Barcode4": null,
"Box1Name": null,
"Box1Barcode": "222",
"Box2Name": null,
"Box2Barcode": "333",
"Box3Name": null,
"Box3Barcode": null,
"Box4Name": null,
"Box4Barcode": null,
"SerialNumber_ID": 1000061,
"StockLine_ID": 1001561
},
{
"Organization_ID": 1000001,
"Organization": "Demo SRL",
"Warehouse_ID": 1001883,
"Warehouse": "Gestiune WMS fizica Brasov",
"Created": "2018-02-13 10:06:24+0000",
"CreatedBy_ID": 1000002,
"CreatedBy": "AdminTitular",
"Updated": "2018-03-20 09:41:05+0000",
"UpdatedBy_ID": 1000002,
"UpdatedBy": "AdminTitular",
"Line": 3,
"Product": "ART1 SN WMS",
"Product_ID": 1011809,
"Barcode1Name": "SN",
"Barcode1": "905",
"Barcode2Name": null,
"Barcode2": null,
"Barcode3Name": null,
"Barcode3": null,
"Barcode4Name": null,
"Barcode4": null,
"Box1Name": null,
"Box1Barcode": "222",
"Box2Name": null,
"Box2Barcode": "333",
"Box3Name": null,
"Box3Barcode": null,
"Box4Name": null,
"Box4Barcode": null,
"SerialNumber_ID": 1000060,
"StockLine_ID": 1001561
},
{
"Organization_ID": 1000001,
"Organization": "Demo SRL",
"Warehouse_ID": 1001883,
"Warehouse": "Gestiune WMS fizica Brasov",
"Created": "2018-02-13 10:06:17+0000",
"CreatedBy_ID": 1000002,
"CreatedBy": "AdminTitular",
"Updated": "2018-02-16 09:15:11+0000",
"UpdatedBy_ID": 1000002,
"UpdatedBy": "AdminTitular",
"Line": 2,
"Product": "ART1 SN WMS",
"Product_ID": 1011809,
"Barcode1Name": null,
"Barcode1": "904",
"Barcode2Name": null,
"Barcode2": null,
"Barcode3Name": null,
"Barcode3": null,
"Barcode4Name": null,
"Barcode4": null,
"Box1Name": null,
"Box1Barcode": "222",
"Box2Name": null,
"Box2Barcode": "333",
"Box3Name": null,
"Box3Barcode": null,
"Box4Name": null,
"Box4Barcode": null,
"SerialNumber_ID": 1000059,
"StockLine_ID": 1001561
}
]
}
],
"totalRows": 1
}
Create one stock line with serial numbers
URL: https://api.socratecloud.com/scwi/rest/stock_line/full/create/{version}?accessToken={access_token}&LocationWarehouse_ID={Physical Warehouse_ID}
Mandatory parameter:
LocationWarehouse_ID - generic warehouse ID or WMS warehouse ID from login. For using generic warehouse in login, role must have "Generic Warehouse" = true
Warehouse_ID - the warehouse where the stock movement is done. The Organization is determined on base of this warehouse definition.
Note: for non WMS warehouses it is necessary to define one storage location and one deleted stock location in Warehouse Storage Locations window.
Method: POST
Return: StockLine ID for success or error message (start with "ERROR: ")
Data format:
{
"Warehouse_ID": 1001883,
"Locator_ID": 1000173,
"Product_ID": 1014170,
"SerialNumbers":
[
{
"Barcode1": 667788
}
]
}
Create stock lines with serial numbers
URL: https://api.socratecloud.com/scwi/rest/stock_line/full/create_array/{version}?accessToken={access_token}&LocationWarehouse_ID={Physical Warehouse_ID}
Mandatory parameter:
LocationWarehouse_ID - generic warehouse ID or WMS warehouse ID from login. For using generic warehouse in login, role must have "Generic Warehouse" = true
Warehouse_ID - the warehouse where the stock movement is done. The Organization is determined on base of this warehouse definition.
Note: for non WMS warehouses it is necessary to define one storage location and one deleted stock location in Warehouse Storage Locations window.
Method: POST
Return: StockLine IDs for success or error message (start with "ERROR: ")
Data format:
{
"StockLines":
[
{
"Warehouse_ID": 1001883,
"Locator_ID": 1000173,
"Product_ID": 1014170,
"SerialNumbers":
[
{
"Barcode1": 087
},
{
"Barcode1": 0087
}, {
"Barcode1": 0887
}
]
},
{
"Warehouse_ID": 1001883,
"Locator_ID": 1000173,
"Product_ID": 1014170,
"SerialNumbers":
[
{
"Barcode1": 0876
},
{
"Barcode1": 00876
}, {
"Barcode1": 08876
}
]
}
]
}