Order Status Change

{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier": "1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "COLLECTED",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "driver_name": "João",
  "driver_document": "17027297623",
  "delivery_type": "CARRIER",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "TAKEOUT",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "CREATED",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "DISPATCHED",
  "sub_status": "ROUTE_PLANNED",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "driver_name": "João",
  "driver_document": "17027297623",
  "delivery_type": "CARRIER",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "FAILED",
  "sub_status": "COLLECT_FAILED",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "driver_name": "João",
  "driver_document": "17027297623",
  "delivery_type": "CARRIER",
  "failure_code": 17, //number
  "failure_message": "FAILURE_MESSAGE",
  "failure_driver_message": "FAILURE_DRIVER_MESSAGE",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "HANDLING",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "delivery_type": "CARRIER",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "IN_TRANSIT",
  "sub_status": "COLLECTING",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "delivery_type": "CARRIER",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "MANUAL_HANDLE",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "delivery_type": "CARRIER",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "ORDER_FAILED",
  "sub_status": "CARRIER_TIMEOUT",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "delivery_type": "CARRIER",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "PENDING",
  "sub_status": "WAITING_FOR_CARRIER",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "RETURNED",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "delivery_type": "CARRIER",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "RETURNING",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "delivery_type": "CARRIER",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "START_DELIVERY",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "driver_name": "João",
  "driver_document": "17027297623",
  "delivery_type": "PRIVATE-FLEET",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}
{
  "order_id": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx",
  "order_number": "123456789",
  "order_type": "DELIVERY",
  "invoice_number": "xxxxxxxxxx",
  "access_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "invoice_created_timestamp": "2023-01-09T13:43:21.000Z",
  "seller_identifier":"1234569191",
  "seller_document_number": "1234569191",
  "external_order_id":"1892831",
  "status": "SUCCESSFUL",
  "sub_status": "DELIVERED",
  "event_type":"ORDER_STATUS_CHANGE",
  "tracking": "a7g92yd",
  "timestamp": 1661280476296,
  "event_at": "2023-01-10T10:18:44.000Z",
  "driver_name": "João",
  "driver_document": "17027297623",
  "delivery_type": "PRIVATE-FLEET",
  "seller_trading_name": "Go Go Salads",
  "customer_name": "John Doe",
  "customer_phone": "21999999999",
  "customer_email": "[email protected]"
}