Search Parcel

Use this endpoint to search for one parcel. This is a public endpoint and does not require API key.

Path

GET /search?tracking_no=<TRACKING_NUMBER>

Query Parameters

FieldDetailsComments
tracking_nostring, requiredTracking Number

Response

On success, response looks like below -

{
  "error": 0,
  "message": "Success",
  "data": {
    "tracking_no": "ABCDEFGHI",
    "status": "Picked Up",
    "registered_at": "2021-08-12T10:20:45Z",
    "timeline": [
      {
        "location": "Hub Ampang",
        "status": "Registered",
        "description": "Parcel registered in the system.",
        "time": "2021-08-12T10:20:45Z",
        "proof": [""]
      },
      {
        "location": "Hub Ampang",
        "status": "Picked Up",
        "description": "Parcel has been picked up from sender's location.",
        "time": "2021-08-12T14:15:27Z",
        "proof": [
          "https://proofs.com/path-to-proof.jpg"
        ]
      }
    ]
  }
}

If there is server error, the response would look like below -

{
  "error": 500,
  "message": "Internal Error occurred"
}

If tracking number is not found during search -

{
  "error": 404,
  "message": "Parcel not found"
}