The order
interface is available starting from version 2.2 and is used solely for the PTLCart, where it can be used as a stand alone order picking system.
URL |
| ||||||
---|---|---|---|---|---|---|---|
Method | GET | ||||||
Description | Receive a list of all available orders in the PTLControl. | ||||||
Response |
Note that | ||||||
Possible Error | HTTP404 with no body when no orders found. | ||||||
Status |
|
URL |
| |||||
---|---|---|---|---|---|---|
Method | GET | |||||
Description | Receive the lines in order | |||||
Response |
Note that | |||||
Possible Error | HTTP404 with no body when the order was not found. | Status |
| |||
colour | Purple | title | Design
URL |
| ||||||||
---|---|---|---|---|---|---|---|---|---|
Method | DELETE | ||||||||
Description | Delete all orders | ||||||||
Response | HTTP204 | Status
|
URL |
| |
---|---|---|
Method | DELETE | |
Description | Delete order with orderid | |
Response | HTTP204 | |
Possble Error | HTTP404 with no body if order not found | |
Status |
| |
colour | Purple | title | DesignNote, when the order did not exist, this call still returns a HTTP204.
Response | HTTP204d |
URL |
| |||||
---|---|---|---|---|---|---|
Method | POST | |||||
Description | Create a new order. The
new orders, if an order already exists, it will be overwritten, whatever the status of the order. | |||||
Request |
| |||||
Response | HTTP201 without body if created or updated | |||||
Possible Error | HTTP400 if request was invalid (e.g. invalid JSON). A human readable error message can be found in the body. HTTP503 if order exists, but has picked lines | Status |
| |||
colour | Purple | title | Design
URL |
| |||||
---|---|---|---|---|---|---|
Method | PUT | |||||
Description | Set the tote for this order. | |||||
Request |
| |||||
Response | HTTP200 without body if updated | |||||
Possible Error | HTTP404 if order was not found. |