Skip to content

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

ValueWhere the package isEvent
incomingAt the origin warehouse: received, being checked or waiting for the next shipment.package.created
on the wayLeft the origin, travelling to Iraq.package.shipped
ready for deliveryArrived in Iraq: ready for pickup at the Wasil office or out for home delivery.package.status_changed
deliveredHanded 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

ValueMeaning
In ReviewLogged at the warehouse and being checked (weight, contents, photos).
Ready to SendChecked and ready to leave with the next shipment.
on the wayOn a shipment to Iraq.
ready for deliveryIn Iraq, ready for the customer.
deliveredHanded to the customer.

Using them

  • Show customers the journey (track_status). Use status when 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.
  • arrived is the day the package reached the origin warehouse, and shipment appears once it has left; see the package object.
  • To be told about every change, listen to package.status_changed; its previous field holds both statuses before the change. See the event reference.
  • GET /v1/packages?status=on the way filters 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.