Objective: Search order status (summary)
This is the only method that allows retrieving the order ID from TPL.
JSON Composition for sending:
{
*"auth" : key obtained in get/auth method
*,"order" :
{
"id" : unique identification of the order returned by put/order
,"number": order number existing in TPL
}
}
Note: If both ID and NUMBER are sent, only the ID tag will be taken into account. For searching by order number, send only NUMBER.
Returns with:
{
"code" : integer
,"message" : text
,"order" :
{
"code" : integer
,"message" : text
,"dt" : status date/time (generated by TPL)
,"dtshipping" : date/time reported by the carrier
,"detail" :
[
{
"description" : text provided by the carriers
,"datetime" : dd/mm/yyy hh:mm – with the information date
}
]
}
}
Code:
200: Request fulfilled, see order->code TAG
404: ID not found
405: No movement
500: Invalid auth