Operation of iCaas
OPERATION OF ICAAS
When a request is sent to ICAAS, it will attempt to find one of up to 10 virtual tills for you to operate with, the list of tills may be limited by the API KEY you supplied (when a single ICAAS is used for both web and tablet ordering).
If it finds a virtual till, it will convert the JSON request into a sequent of iCell commands and execute them, if an error occurs at any given point it will abort with an error code. The response transaction will have the ID of the instance used to assist with fault tracking etc.
If it cannot find an available till, it will return with an error saying as much.
Full sample JSON input (for tablet API call):
{
"transactionId": "14",
"apikey": "04A7E88F-0933-4295-AA02-34A79472BB2C",
"login":
{
"cashier": "123",
"password": "1234"
},
"products":
[
{
"product" : "28002",
"quantity" : "1",
"instructions" : "No Beetroot,Extra Cheese $2,184",
"comment" : "Gluten Free"
},
{
"product" : "28004",
"quantity" : "1",
"price" : "@2",
"comment" : "Two for One Deal"
}
],
"order":
{
"tag" : "WEB",
"name" : "Freddy Mercury",
"phone" : "(07) 4454 1231",
"receipt" : "yes",
"kitchen" : "yes",
"type": "delivery"
},
"extras" :
{
"tip": "2.5",
"surcharge": "5",
"covers": "2"
},
"payments":
[
{
"kind": "CASH",
"amount": "?",
"comment": "Online Payment"
}
]
}