Prompt
How do I send tracking updates to customers from my app?
Latest observation
Nov 4, 2026
OpenAI APIWeb search: off
To send tracking updates to customers from your app, you typically need 4 pieces:
-
A shipment tracking source
- A carrier API like FedEx, UPS, DHL, USPS, etc., or
- A multi-carrier tracking service like AfterShip, EasyPost, Shippo, 17TRACK, etc.
-
A way to detect status changes
- Webhooks from the tracking provider if supported
- Or polling the tracking API on a schedule if webhooks aren’t available
-
A customer notification channel
- SMS
- Push notifications
- In-app notifications
-
Your app logic
- Store the customer’s shipment/tracking number
- Map tracking events to user-friendly messages
- Deduplicate updates so users don’t get spammed
Typical flow
- Customer places an order.
- Your app creates a shipment record with tracking number and carrier.
- Your backend subscribes to tracking events or periodically checks the status.
- When a status changes, your backend receives it.
- Your app sends a notification:
- “Your package has shipped”
- “Out for delivery”
- “Delivered”
- Optionally, show a tracking timeline inside your app.
Best practice approach
Option A: Use a tracking platform with webhooks
This is the easiest and most reliable approach.
Example flow:
- Create tracking object in AfterShip/EasyPost/Shippo
- Register a webhook endpoint in your backend
- When the carrier status changes, provider sends a webhook
- Your backend updates the order and sends a customer notification
Option B: Poll carrier APIs
If webhooks aren’t available:
- Run a scheduled job every 15–60 minutes
- Query each shipment’s latest status
- Compare with stored status
- Send update only if it changed
What to send customers
Common events:
- Label created
- Shipped / in transit
- Arrived at facility
- Out for delivery
- Delivered
- Exception / delayed / failed delivery attempt
Implementation tips
- Normalize statuses from different carriers into your own internal statuses
- Include tracking links in messages
- Support customer preferences for notification type
- Make sure you have consent for SMS/email where required
- Handle time zones and duplicates carefully
Simple architecture
- Frontend app: shows tracking timeline
- Backend API: stores shipments and notifications
- Tracking provider: receives carrier updates
- Notification service: SendGrid/Twilio/FCM/etc.
If you want a quick setup
A common stack is:
- Tracking: AfterShip or EasyPost
- Email: SendGrid
- SMS: Twilio
- Push: Firebase Cloud Messaging
- Backend: your existing server with a webhook endpoint
If you want, I can also show:
- a Node.js example
- a Python example
- or a full webhook-based architecture for tracking updates.