Skip to main content
Once an order is confirmed, you can assign a delivery partner and track its progress through each stage of the fulfillment journey. Meneja records every stage transition with a timestamp and partner identifier, giving you a full audit trail from pickup to final delivery.

Delivery record structure

A delivery record is created when you assign a delivery partner to an order. It contains the following fields:
FieldDescription
idUnique delivery identifier
order_idThe order this delivery belongs to
pickup_pointsArray of PickupPoint objects (partner and timestamp)
stagesArray of DeliveryStage objects recording each status transition
current_stageThe active DeliveryStageType value
estimated_delivery_timeExpected delivery timestamp, or null
actual_delivery_timeConfirmed delivery timestamp, or null
created_atWhen the delivery record was created
updated_atWhen the delivery record was last modified

Delivery stages

Each entry in the stages array represents a transition in the delivery lifecycle and contains:
FieldDescription
partner_idThe delivery partner responsible at this stage
stageThe DeliveryStageType value for this transition
proofOptional proof-of-delivery reference, or null
timestampISO timestamp of when this stage was recorded
locationOptional { latitude, longitude } coordinates, or null

Stage values

StageMeaning
assignedA delivery partner has been assigned to the order
at_pickupThe partner has arrived at the pickup location
in_transitThe parcel is on its way to the customer
deliveredThe parcel has been delivered successfully
failedA delivery attempt failed
cancelledThe delivery was cancelled
The current_stage field always reflects the most recent stage in the stages array.
The delivery detail view shows the full stage history in chronological order, so you can see exactly when each transition occurred and which partner was responsible.

Pickup points

Pickup points record the intermediate handoff locations where a partner collects the parcel. Each PickupPoint contains:
FieldDescription
partner_idThe partner who collected the parcel at this point
timestampWhen the pickup occurred

Assigning a delivery partner

To assign a delivery partner to an order, you create a new delivery record. The following fields are required:
FieldRequiredDescription
order_idYesThe order to assign the delivery to
stagesYesInitial array of DeliveryStage entries
current_stageYesThe starting stage: assigned, in_transit, delivered, or failed
pickup_pointsNoOptional array of PickupPoint entries
estimated_delivery_timeNoExpected delivery timestamp
1

Open the order detail view

Navigate to Orders and click the order you want to assign a delivery partner to. The order must be in a status that allows fulfillment (for example, confirmed).
2

Open the delivery section

Scroll to the Delivery section of the order detail view. If no delivery has been assigned yet, you will see an option to assign a partner.
3

Select a delivery partner

Choose the delivery partner from the available list. The system creates a delivery record with the initial stage set to assigned.
4

Confirm the assignment

Submit the form. The delivery record is created and current_stage is set to assigned.

Adding a delivery stage

As the delivery progresses, you can record each stage transition. The following fields are required:
FieldDescription
partner_idThe partner responsible for this stage
stageThe new stage: assigned, in_transit, delivered, or failed
1

Open the delivery detail

From the order detail view, open the delivery record. You can also access deliveries directly from the Deliveries section of the dashboard.
2

Add a new stage

Use the Add Stage action and select the appropriate stage value. The new stage is appended to the stages array and current_stage is updated automatically.
Stage transitions are permanent. Once a stage is added to the delivery record, it cannot be removed.

Filtering deliveries

You can filter the deliveries list by the following criteria:
FilterDescription
searchSearch by order number or delivery ID
statusFilter by delivery status: active, completed, or cancelled
stageFilter by a specific DeliveryStageType
partnerIdShow deliveries for a specific partner
orderIdLook up the delivery for a specific order