ZeusLite

Summary

ZeusLite is a REST API for a simple warehouse system.

Terminal client applications communicate with warehouse system using REST service calls.

You can download the REST API source from http://zeuslite.codeplex.com

How does it work

Application sends HTTP GET requests, the API calls stored procedures and send back the result in JSON format.

Device ZeusLite REST API Database
GET

API functions in version 1.0

Settings Loading in Loading out Inventory
Login Package receiving Picking list Package Inventory
Package storing Change picked quantity
Refill list Picking close
Unstored List
Package information

Login

/REST/v1/user/?login=demo&password=MTIzNA==

Name Description
login UserID of warehouse employee
password base64 coded password
Success { "ErrorCode":0, "ErrorText":"", "Result":[ { "ID":"1", "Name":"Name of warehouse employee" } ] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }

Package receiving

/REST/v1/PackageReceive/?token=1&code=1234&ean=020871067913825715160522370063&quantity=63

Name Description
token User ID or access token
code Package or palette ID
ean ean8, ean13, ean128, upc or something
quantity quantity of product
Success { "ErrorCode": 0, "ErrorText": "", "Result": [ { "Code": "1234", "ArticleCode": "300", "ArticleName": "Oven Crinkle 12x750g", "Expired": "2016.05.22", "Quantity": "63.00", "LocationCode": "", "UnitCode": "Carton" } ] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }

Package storing

/REST/v1/PackageStore/?token=1&code=1026&location=A0101

Name Description
token User ID or access token
code Package or palette ID
location Location ID
Success { "ErrorCode": 0, "ErrorText": "", "Result": [ { "Code": "0136", "ArticleCode": "200100", "ArticleName": "Green peas", "Expired": "2015.12.31", "Quantity": "660.00", "LocationCode": "A0101", "UnitCode": "Kg" } ] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }

Refill list

/REST/v1/PackageRefill/?token=1

Name Description
token User ID or access token
Success { "ErrorCode": 0, "ErrorText": "", "Result": [ { "Code": "2045", "ArticleCode": "200100", "ArticleName": "Green peas", "Expired": "2015.12.31", "Quantity": "660.00", "LocationCode": "A0103", "UnitCode": "Kg" }, { "Code": "2367", "ArticleCode": "100100", "ArticleName": "Carrot cubes", "Expired": "2015.12.31", "Quantity": "660.00", "LocationCode": "B0305", "UnitCode": "Kg" } ] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }

Unstored list

/REST/v1/PackageUnstored/?token=1

Name Description
token User ID or access token
Success { "ErrorCode": 0, "ErrorText": "", "Result": [ { "Code": "0136", "ArticleCode": "200100", "ArticleName": "Green peas", "Expired": "2015.12.31", "Quantity": "660.00", "LocationCode": "", "UnitCode": "Kg" }, { "Code": "1028", "ArticleCode": "100100", "ArticleName": "Carrot cubes", "Expired": "2015.12.31", "Quantity": "660.00", "LocationCode": "", "UnitCode": "Kg" } ] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }

Package info

/REST/v1/PackageInfo/?token=1&code=2045

Name Description
token User ID or access token
code Package or palette ID
Success { "ErrorCode": 0, "ErrorText": "", "Result": [ { "Code": "2045", "ArticleCode": "200100", "ArticleName": "Green peas", "Expired": "2015.12.31", "Quantity": "660.00", "LocationCode": "A0103", "UnitCode": "Kg" } ] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }

Picking list

/REST/v1/PickingList/?token=1

Name Description
token User ID or access token
Success { "ErrorCode": 0, "ErrorText": "", "Result": [ { "ID": "2", "PartnerName": "PartnerName", "Items": [ { "ID": "9", "Code": "0136", "ArticleCode": "200100", "ArticleName": "Green peas", "Expired": "2015.12.31", "Quantity": "10.00", "LocationCode": "A0101", "UnitCode": "Kg" }, { "ID": "10", "Code": "1024", "ArticleCode": "100100", "ArticleName": "Carrot cubes", "Expired": "2015.05.31", "Quantity": "20.00", "LocationCode": "A0102", "UnitCode": "Kg" } ] } ] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }

Change picked quantity

/REST/v1/PickingQuantity/?token=1&itemid=9&quantity=12

Name Description
token User ID or access token
itemid Picking item ID
quantity Picked quantity
Success { "ErrorCode": 0, "ErrorText": "", "Result": [] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }

Picking close

/REST/v1/PickingClose/?token=1&id=2

Name Description
token User ID or access token
id Picking list ID
Success { "ErrorCode": 0, "ErrorText": "", "Result": [] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }

Package inventory

/REST/v1/PackageInventory/?token=1&code=2045&location=A0102&quantity=640&type=1

Name Description
token User ID or access token
code Package or palette ID
location Location ID
quantity Counted quantity
type 1 => Inventory team 1
2 => Inventory team 2
Success { "ErrorCode": 0, "ErrorText": "", "Result": [ { "Code": "2045", "ArticleCode": "200100", "ArticleName": "Green peas", "Expired": "2015.12.31", "Quantity": "640.00", "LocationCode": "A0102", "UnitCode": "Kg" } ] }
Error { "ErrorCode":1, "ErrorText":"Something went wrong !", "Result":[] }