The basic flow of a cart requires a new cart to be generated first. This is done by a client making a request to “/Cart,New” which will return the Key and Token of a new cart. At this point a timer starts to prevent idle carts from building up. If no commands are issued in time, the cart is voided. Then commands can be issued to the cart by addressing “/Cart-Y4-M2-D2-H2-N2-S2,Seq~Token”, using the appropriate Key and Token with the desired commands in the query. The last command that should be issued to a card is to mark it as done with: “/Cart-Y4-M2-D2-H2-N2-S2,Seq~Token?Cart_Done”. The cart is put into the “Done” state and the token is deleted which prevents new commands for executing on the cart. |