...
Code Block | ||
---|---|---|
| ||
{ "orderNumber": "123456", "trayNumber": "31776", "poNumber": "SP40KGTA", "message": "Printing in process" } |
Error
If the order is not found, an HTTP 404 code will be returned with an error
Code Block | ||
---|---|---|
| ||
{
"error": "No record found",
"details": [
"Provided: 9999999"
]
} |
If the order is waiting to be assigned a tray, an HTTP 400 code will be returned with an error
Code Block | ||
---|---|---|
| ||
{
"error": "Printing request rejected",
"details": [
"Order waiting for tray"
]
} |
If the system is not using XML work tickets, an HTTP 500 code will be returned with an error
Code Block | ||
---|---|---|
| ||
{
"error": "Printing request rejected",
"details": [
"Only the XML Work Ticket system setting is supported"
]
} |
If the order is a stock order, an HTTP 400 code will be returned with an error
Code Block | ||
---|---|---|
| ||
{
"error": "Printing request rejected",
"details": [
"Order is a stock order and there is no work ticket"
]
} |
If no work ticket template has been selected, an HTTP 500 code will be returned with an error
Code Block | ||
---|---|---|
| ||
{
"error": "Printing request rejected",
"details": [
"No XML template is selected in system settings"
]
} |
If a work ticket template has been selected but no longer exists, an HTTP 500 code will be returned with an error
Code Block | ||
---|---|---|
| ||
{
"error": "Printing request rejected",
"details": [
"The XML template set in system settings does not exist",
"Set: bad_xml_ticket_name.xml"
]
} |
If no printer has been defined for the requested LPT on workstation 00 an HTPP 500 code will be returned with an error
Code Block | ||
---|---|---|
| ||
{
"error": "Printing request rejected",
"details": [
"No printer defined for workstation 00"
]
} |