API - Tracking

Created by KloudShip Support Admin, Modified on Fri, 24 Oct at 7:45 PM by KloudShip Support

GET: Tracking

This API retrieves real-time tracking details of a shipment based on the tracking number. It provides the current status, tracking URL, and event history for the shipment. 


Endpoint details:

MethodPOST
Production Environment URLhttps://api.kloudship.com/api/v1/Tracking/{id}
Test Environment URLhttps://api-ppd.kloudship.com:960/api/v1/Tracking/{id}
Content-Typeapplication/json


Path variable:

ParameterTypeRequiredDescriptionExample
IdstringYes This id can be Tracking id / Shipment id / Transaction id / TrackingNumber / Tracking Barcode Number
151730780008322


Query parameters:

ParameterTypeRequiredDescriptionExample
trackingIdTypestringYesSpecifies the type of tracking ID. Possible values: Id, ShipmentId, TransactionId, TrackingNumber, TrackingBarcodeNumberTrackingNumber
getLatestTrackingbooleanNoIf true, returns only the latest tracking event. If false, returns the full tracking history.false


Example cURL:

curl --location 'https://api-ppd.kloudship.com:960/api/v1/Tracking/151730780008322?trackingIdType=TrackingNumber&getLatestTracking=false' \
--header 'Authorization: ••••••'

Response fields:

Root Level

FieldTypeDescription
carrierstringName of the carrier handling the shipment (e.g., XpressBees, Delhivery, All).
trackingBarcodeNumberstringBarcode number associated with the shipment.
trackingNumberstringUnique tracking number of the shipment.
processedStatusstringCurrent processed status of the shipment (e.g., PreTransit, InTransit, Delivered).
processedStatusCodestringCode representing the processed status.
statusstringDescriptive message for the shipment’s current status.
statusCodestringShort identifier or description of the shipment’s current status.
trackingUrlstringURL to the carrier’s official tracking page for this shipment.
eventsarrayList of tracking events recorded for the shipment (see Events Object below).
errorsarrayList of errors encountered while fetching tracking information (if any).


Events Object (events[])

FieldTypeDescription
datestring (ISO 8601)Timestamp of the tracking event (e.g., "2025-10-16T10:30:56.850Z").
citystringCity where the tracking event occurred.
statestringState where the tracking event occurred.
countrystringCountry where the event took place.
zipstringPostal / PIN code of the event location.
referenceIdstringReference identifier associated with the event (if any).
processedStatusstringStatus of the shipment at the time of this event (e.g., PreTransit, Delivered).
processedStatusCodestringCode representing the event-level processed status.
statusstringDescriptive message for this tracking event.
statusCodestringShort description or label for this event.
locationstringDetailed event location (may include hub or facility name).
referenceTypestringType of event reference (e.g., Activity, Exception).
scopestringVisibility scope of the event (e.g., Public, Internal).


Errors Array (errors[])

FieldTypeDescription
N/a
stringDescriptive message indicating an error or issue encountered during tracking data retrieval.


Example response:

{
    "carrier": "XpressBees",
    "trackingBarcodeNumber": "151730780008322",
    "trackingNumber": "151730780008322",
    "processedStatus": "PreTransit",
    "processedStatusCode": "100",
    "status": "Shipment 151730780008322 created by Guest Admin",
    "statusCode": "Shipment created",
    "trackingUrl": "https://www.xpressbees.com/shipment/tracking?awbNo=151730780008322",
    "events": [
        {
            "date": "2025-09-18T15:27:48.17Z",
            "referenceId": "",
            "processedStatus": "PreTransit",
            "processedStatusCode": "100",
            "status": "Shipment 151730780008322 created by Guest Admin",
            "statusCode": "Shipment created",
            "referenceType": "Activity"
        }
    ],
    "errors": []
}


Not Yet Signed Up?

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article