Articles on: What's new

Reduce Shipment Delays with Pending Time Visibility

Overview 


AfterShip Tracking Pending Time filter provides merchants with clear visibility into shipments that are stuck in the 'Pending' status. By showing how long shipments have been awaiting processing, the Pending Time feature helps merchants manage delayed shipments more efficiently.


How AfterShip calculates a shipment’s pending time


Field name

Formula

Description

Pending time

Pending time = current_time - created_at

The pending time for a shipment is calculated by taking the difference between the current time and the time the shipment was initially created. This metric provides insight into how long a shipment has been awaiting further processing or movement since its inception.

Last mile pending time

Last mile pending time = current_time - segment[2].created_at

The last mile pending time is determined by subtracting the creation time of the last segment in the journey from the current time. This measures the duration that a shipment has been pending, specifically during the final phase of its delivery journey.


Both current_time and created_at are always calculated using the organization’s time zone.


How to leverage pending time visibility in AfterShip


By tracking how long shipments have been awaiting processing or delivery, both overall and in the last mile, users can filter, export, create saved views, and set up notifications to manage pending shipments more efficiently.


1. Pending time filter


Plans: All plans


Filter shipments by pending/last mile pending time in the Shipment dashboard.


  1. On the Shipments dashboard, go to Add filters > Pending time (Timeline) or Last mile pending time (Advanced).


Filtering last time pending time shipments data is only available for Enterprise plan users.


  1. Apply conditions such as *“is equal to”, “is between”, “is less than”, “is greater than”, “is greater than or equal to”, and “is greater than or equal to”.
  2. Enter a value (e.g., “>72 hours”) to filter and view shipments that have been pending processing for a specified time period.


Pending time filter


  • The time range for filtering pending shipments is defined in hours. You can enter any value from 1 to 720 hours, which allows you to view shipments that have been stuck in the pending state for up to 30 days.


2. Export pending time shipments data 


Plans: Premium, Enterprise


Get a complete list of pending and last-mile pending time shipments for further analysis with a custom export.


  1. On the Shipments dashboard, go to Export > Select the file type > Custom format.
  2. Search or directly select Pending time/ Last mile pending time from the list of available fields to export along with the default fields.
  3. Click Export to download the CSV file with the chosen fields.



Export pending time shipments data using custom format



  1. The export file will be sent to the registered email addresses. The CSV file will remain valid for up to 72 hours.



CSV export email



3. Create and save the pending time view 


Plans: All plans


A. Create and save a view using the pending time template


  1. On the Shipments dashboard, click + > Create new view using template.
  2. Select Shipments stuck "Pending" for more than 72 hours.
  3. Add the name of the view for easy reference for you and your organization members (with relevant access)
  4. Click Create view to confirm and save the view on the Shipments dashboard.


Create and save a view using the pending time template


B. Create and save a view using pending time filters


  1. On the Shipments dashboard,  go to Add filters > Pending time (Timeline) or Last mile pending time (Advanced).
  2. Apply conditions such as *“is equal to”, “is between”, “is less than”, “is greater than”, “is greater than or equal to”, and “is greater than or equal to”. ***
  3. Enter a value (e.g., “>72 hours”) to filter and view shipments that have been pending for the specified time period.
  4.  Click + > Create new view with current filters.
  5. Add the name of the view for easy reference.
  6. Click Create view to confirm and save the view on the Shipments dashboard.



Create and save a view using pending time filters


4. Set up pending time webhook notifications


Plans: Pro, Premium, Enterprise


Sends automated notifications when shipments cross a pending time threshold.


⚠️ Applies only to shipments created after webhook configuration.


  1. Go to Notifications  > Webhooks > Events > Pending time
  2. Select Pending time updates
  3. Enter a specific pending time threshold (e.g., 48 hours)  
  4. Click Save
  5. The system will send webhook notifications whenever shipments cross that threshold.



Pending time webhook notifications


Best practices


  1. Set alerts: Use webhooks to trigger alerts when shipments cross critical pending times (e.g., 48 or 72 hours).
  2. Save views: Create saved views for “high pending shipments” so teams can monitor daily and take counter measures.
  3. Export data regularly: Export pending time data weekly for analysis of bottlenecks.
  4. Segment by last mile: Use last mile pending time filter to identify courier performance issues.


FAQs


1. Why am I not able to use last mile pending time filter?


The Last Mile Pending Time filter is available exclusively on the Enterprise plan. If you are on the Premium plan or below and would like access to this feature, please reach out to our Customer Support team or contact Sales to upgrade to Enterprise.


If you’d like to explore this feature before subscribing, you can request a 7-day Free Enterprise Trial. Simply contact our Sales team with your requirements to get started.


2. Do pending time webhook alerts apply to past shipments?


No. Pending time webhooks only apply to shipments created after the webhook is configured.


3. Is there a way to share pending time shipments data with my organization members?


Yes, you can filter your shipment data using the Pending Time or Last Mile Pending Time filter, create a new view with those filters, save it, and then send or schedule recurring email reports to your organization members. You can also use the Pending Time template to create a view of shipments that have been in Pending status for up to 72 hours. For more information on creating and managing views, refer to this guide


Key takeaways 


  • Calculation: "Pending time" is the difference between the current time and the shipment's creation time. "Last mile pending time" focuses on the duration a shipment has been pending in its final delivery phase. Both are calculated using the organization's time zone.
  • Filter shipments: Users can filter shipments on the Shipment dashboard by "Pending time" (All plans) or "Last mile pending time" (Enterprise plan only) using various conditions and a time range of 1 to 720 hours (up to 30 days).
  • Export data: Users on Premium and Enterprise plans can export pending time data for analysis.
  • Create saved views: Users can create saved views, such as for shipments pending over 72 hours, irrespective of the plan they are on.
  • Set up webhook notifications: Pro, Premium, and Enterprise plans can set up automated notifications when shipments cross a specified pending time threshold.

```

Updated on: 24/09/2025