PrimeFreight Tracking API
PrimeFreight offers a tracking API that enables businesses to monitor ocean freight shipments. This API provides access to shipment information and status updates from shipping lines.What the API Does
The PrimeFreight Tracking API allows you to track ocean freight shipments using three core functionalities:1. Create Tracking Requests
- Submit tracking requests using bill of lading numbers or container numbers
- Specify the shipping line SCAC code for the carrier
- Initiate the tracking process for a shipment
2. Retrieve Tracking Information
- Get the current status of tracking requests
- Access shipment data when tracking is successful
- View tracking request details and any error information
3. Receive Webhook Notifications
- Get real-time updates when tracking requests succeed or fail
- Receive notifications when shipment data is updated
- Stay informed about tracking status changes
Authentication
Before calling other endpoints, obtain an access token.- Endpoint:
POST /auth/tokens - Headers:
Content-Type: application/json - Body (JSON):
{ "username": "primefreight", "password": "pass123" }
Authorization header for subsequent requests:
API Architecture
The API follows RESTful principles with JSON:API specification for consistent data formatting. All endpoints require authentication using bearer tokens.Core Endpoints
- POST /auth/tokens - Obtain an access token
- POST /tracking_requests - Create a new tracking request
- GET /tracking_requests/ - Retrieve tracking request details
- GET /containers/ - Retrieve container details
- GET /containers//raw_events - Retrieve container raw events
- GET /containers//transport_events - Retrieve container transport events
- Webhooks - Receive real-time status notifications
Technical Specifications
- API Version: v1
- Base URL:
https://api.primefreight.com - Data Format: JSON:API specification
- Authentication: Bearer token via
Authorizationheader - Webhook Support: Real-time event notifications
Use Cases
The PrimeFreight Tracking API serves basic tracking needs:Shipment Monitoring
- Track individual shipments using available identifiers
- Monitor tracking request status
- Receive notifications about tracking results
Integration
- Integrate tracking capabilities into existing systems
- Build custom tracking interfaces
- Automate tracking request creation
