AfterShip
App · E-Commerce · 4 actions
Connect your AfterShip account to detect couriers, create shipment trackings, and check delivery status.
Actions
| Action | What it does |
|---|---|
| Create tracking | Start tracking a shipment. |
| Detect courier | Identify the likely courier(s) for a tracking number. |
| Get tracking | Look up a shipment's current status and checkpoint history. |
| List trackings | List the shipments currently being tracked in your AfterShip account. |
Create tracking
Start tracking a shipment.
Inputs
- Tracking number
tracking_numbertextRequired - Tracking number issued by the courier.
- Slug
slugtextRequired - Courier slug, for example 'ups' or 'fedex'. Use detect_courier to find it.
- Title
titletext - Optional title for the tracking, for example an order number.
- Order ID
order_idtext - Optional order ID to associate with the tracking.
Outputs
idtext- AfterShip tracking ID. Use with get_tracking.
tagtext- Initial tracking status, for example 'Pending'
Example output
{
"id": "5b7f1a2e4c3d2a0011f5f2a1",
"tag": "Pending"
}Detect courier
Identify the likely courier(s) for a tracking number.
Inputs
- Tracking number
tracking_numbertextRequired - Tracking number to identify the courier for.
Outputs
courierslist- Couriers that could match the tracking number
Example output
{
"couriers": [
{
"name": "UPS",
"slug": "ups"
}
]
}Get tracking
Look up a shipment's current status and checkpoint history.
Inputs
- Tracking ID
tracking_idtextRequired - The tracking's AfterShip ID (not the courier tracking number) -- returned as 'id' by create_tracking and list_trackings.
Outputs
checkpointslist- Tracking event history, oldest first
expected_deliverytext- Latest estimated delivery date/time, if known
idtext- AfterShip tracking ID
slugtext- Courier slug
tagtext- Current status, for example 'InTransit' or 'Delivered'
tracking_numbertext- Tracking number
Example output
{
"checkpoints": [
{
"checkpoint_time": "2026-01-28T10:00:00Z",
"location": "Louisville, KY",
"message": "Departed from facility",
"tag": "InTransit"
}
],
"expected_delivery": "2026-02-01T10:00:00-05:00",
"id": "5b7f1a2e4c3d2a0011f5f2a1",
"slug": "ups",
"tag": "InTransit",
"tracking_number": "1Z999AA10123456784"
}List trackings
List the shipments currently being tracked in your AfterShip account.
Inputs
None.
Outputs
trackingslist- List of tracked shipments
Example output
{
"trackings": [
{
"id": "5b7f1a2e4c3d2a0011f5f2a1",
"slug": "ups",
"tag": "InTransit",
"tracking_number": "1Z999AA10123456784"
}
]
}