sauladam / shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.
93 stars 32 forks source link

UPS Label Created status has no date; not sortable #31

Open kingIZZZY opened 1 year ago

kingIZZZY commented 1 year ago

Here is an example UPS API json response trackDetails[0].shipmentProgressActivities, see the last one about shipping label

[
    {
        "date": "12/08/2022",
        "time": "1:01 P.M.",
        "location": "BROOKLYN, NY, US",
        "activityScan": "DELIVERED ",
        "milestoneName": {
            "name": "Delivered",
            "nameKey": "cms.stapp.delivered"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": true,
        "isRFIDIconEvent": false,
        "actCode": "9E"
    },
    {
        "date": "12/08/2022",
        "time": "9:34 A.M.",
        "location": "Maspeth, NY, United States",
        "activityScan": "Out For Delivery Today",
        "milestoneName": {
            "name": "Out for Delivery",
            "nameKey": "cms.stapp.outForDelivery"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": false,
        "isRFIDIconEvent": false,
        "actCode": "OT"
    },
    {
        "date": "12/08/2022",
        "time": "3:01 A.M.",
        "location": "Maspeth, NY, United States",
        "activityScan": "Loaded on Delivery Vehicle ",
        "milestoneName": {
            "name": "On the Way",
            "nameKey": "cms.stapp.inTransit"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": false,
        "isRFIDIconEvent": false,
        "actCode": "OF"
    },
    {
        "date": "",
        "time": "",
        "location": "United States",
        "activityScan": "Shipper created a label, UPS has not received the package yet. ",
        "milestoneName": {
            "name": "Label Created",
            "nameKey": "cms.stapp.orderReceived"
        },
        "isInOverViewTable": false,
        "activityAdditionalDescription": null,
        "trailer": "",
        "isDisplayPodLink": false,
        "isRFIDIconEvent": false,
        "actCode": "MP"
    }
]