2.1 Internal Use-Stock Lines
Interface
It allows you:
to insert new documents (master&details in one json file)
This document is used for:
internal use (in) of finished good
internal use (in) of supplementary inventory
Internal Use Stock Lines/Details/Response
#
Field Name
Warehouse_ID
Product_ID
ExtPrtner_ID
SerialNumber_ID
Barcode1Name
Barcode1
Barcode2Name
Barcode2
Barcode3Name
Barcode3
Barcode4Name
Barcode4
Box1Name
Box1Barcode
Box2Name
Box2Barcode
Box3Name
Box3Barcode
Box4Name
Box4Barcode
StockLine_ID
Description
Stock Lines (This segment is optional for non-WMS warehouses).
The unique ID of the warehouse
The unique ID of the product
Stock Line Details(This segment is optional for non-WMS warehouses).
The unique ID of the WMS module unique serial.
The name of the first barcode
The first barcode
The name of the second barcode
The second barcode
The name of the third barcode
The third barcode
The name of the forth barcode
The forth barcode
Barcode name of the first packing level
Barcode of the first packing level
Barcode name of the second packing level
Barcode of the second packing level
Barcode name of the third packing level
Barcode of the third packing level
Barcode name of the forth packing level
Barcode of the forth packing level
Response
Numeric
(whole)
Numeric
(whole)
Numeric
(whole)
Numeric
(whole)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
String(40)
Numeric
(whole)
Data
type
Action
Mandatory
Y
Y
Y
The unique ID of the WMS module stock line
API Method
Create one stock line with serial numbers
URL: https://api.socratecloud.com/scwi/rest/stock_line/full/internal_use/{version}?startRow={0}&endRow={100}&accessToken={access_token}&LocationWarehouse_ID={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.
Method: POST
Return: stockline ID for success or error message (start with "ERROR: ")
Data format:
{
"Warehouse_ID": 1001883,
"Product_ID": 1011809,
"ExtPartner_ID": 12345,
"SerialNumbers":
[
{
"Barcode1": "902"
},
{
"Barcode1": "901"
}
]
}
Create stock lines with serial numbers
URL: https://api.socratecloud.com/scwi/rest/stock_line/full/internal_use_array/{version}?startRow={0}&endRow={100}&accessToken={access_token}&LocationWarehouse_ID={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.
Method: POST
Return: stockline IDs for success or error message (start with "ERROR: ")
Data format:
{
"StockLines":
[
{
"Warehouse_ID": 1001883,
"Product_ID": 1014170,
"SerialNumbers":
[
{
"Barcode1": "33"
},
{
"Barcode1": "34"
}
]
},
{
"Warehouse_ID": 1001883,
"Product_ID": 1011809,
"SerialNumbers":
[
{
"Barcode1": "S001"
}
]
}
]
}