Reference
Package statuses
A package carries two statuses. track_status is the journey, the one to show a customer. status is the handling state inside Wasil.
The journey: track_status
| Value | Where the package is | Event |
|---|---|---|
incoming | At the origin warehouse: received, being checked or waiting for the next shipment. | package.created |
on the way | Left the origin, travelling to Iraq. | package.shipped |
ready for delivery | Arrived in Iraq: ready for pickup at the Wasil office or out for home delivery. | package.status_changed |
delivered | Handed to the customer. | package.delivered |
The journey only moves forward in normal operation. A package can skip a step in your view if two changes happen between two of your reads.
The handling state: status
| Value | Meaning |
|---|---|
In Review | Logged at the warehouse and being checked (weight, contents, photos). |
Ready to Send | Checked and ready to leave with the next shipment. |
on the way | On a shipment to Iraq. |
ready for delivery | In Iraq, ready for the customer. |
delivered | Handed to the customer. |
Using them
- Show customers the journey (
track_status). Usestatuswhen you need to know whether a package has been checked yet. - Compare the values without regard to upper and lower case, and treat a value you do not know as "in progress" rather than as an error: a new value may be added.
arrivedis the day the package reached the origin warehouse, andshipmentappears once it has left; see the package object.- To be told about every change, listen to
package.status_changed; itspreviousfield holds both statuses before the change. See the event reference. GET /v1/packages?status=on the wayfilters on either of the two statuses.
Announcements have their own states
A package you announced is expected, matched or cancelled until it arrives; see Announcing packages. From the match on, it is a package and follows the statuses above.