Get available deliveries for GPS tracking
GET/truckers/deliveries/trackable
This endpoint returns a list of in-progress deliveries that can be tracked via real-time GPS.
Key Features:
- Only includes deliveries with a 'collected' status (picked up but not delivered)
- Excludes deliveries associated with auctions
- Provides essential information for tracking:
- Unique service code
- Current delivery status
- Complete loading (ETL) and unloading (ETD) addresses
- Geographic coordinates if available
- Last known vehicle position (if available)
Typical Use Cases:
- Display all active deliveries on the carrier's map
- Select a specific delivery to initiate GPS tracking
- Verify which deliveries are currently en route
- Plan multiple routes when several deliveries are active
- Monitor progress of ongoing deliveries
Validations and Restrictions:
- Requires valid JWT carrier authentication
- Only shows deliveries assigned to the authenticated carrier
- Deliveries must be in 'collected' status to appear
- Does not include completed or canceled deliveries
- Maximum query frequency: once per minute
Example Flow:
- Carrier logs into the mobile app
- The app queries this endpoint periodically (every 2-5 minutes)
- Active deliveries are displayed on the map with their last known position
- The carrier selects one to initiate detailed tracking
Technical Notes:
- Coordinates are returned in [longitude, latitude] format (GeoJSON)
- The 'collected' status indicates the cargo has been picked up but not delivered
- Addresses include city, postal code, and province
- The response includes an X-Total-Count header with the total number of deliveries
Responses
- 200
- 401
- 403
- 429
List of deliveries available for GPS tracking
Response Headers
X-Total-Count
Total number of trackable deliveries
Example:
2X-RateLimit-Remaining
Number of remaining queries in the current period
Example:
58Unauthorized
Authorization or validation error.
Occurs when the user lacks permissions or the data is invalid.
Too many requests. The query limit is 60 per hour. Wait before making new queries.
Response Headers
Retry-After
Seconds until another query can be made
Example:
60