Method: https://oms.tpl.com.br/api/get/ordersbystate

Objective: Search Orders by Status - Returns a list of orders filtered by outbound status (alabel, awms, anf)
          
            
{
"auth"*: "key_obtained_in_get_auth_method",
"ordersstate"*: "",
}

AVAILABLE STATUSES:
- alabel: Waiting for Labels - orders waiting for label generation
- awms: Waiting for WMS - orders waiting for transfer to WMS.
- anf: Waiting for NF - orders waiting for invoice

PARAMETERS:

- auth (mandatory): key obtained in get/auth method
- ordersstate (mandatory): order status to be consulted (alabel, awms, or anf)

SUCCESS RESPONSE (200):
{
"code": 200,
"message": "OK",
"status": "Waiting for Labels",
"ordersstate": "alabel",
"total": 15,
"orders": [...]
}

ERROR CODES:

- 400: Invalid content
- 401: Unauthorized
- 405: Invalid status
- 503: Request excess