API Documentation
The River Point Works API provides a unified interface for tracking shipments across multiple carriers in the Americas. All endpoints return JSON and require authentication via API key.
Authentication
All API requests require an API key passed in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Contact our team to obtain an API key for your organization.
Tracking
Submit a tracking request to retrieve shipment status and events.
Request
{
"carrier": "ups",
"tracking_number": "1Z999AA10123456784",
"reference": "ORDER-12345"
}
Response
{
"tracking_number": "1Z999AA10123456784",
"carrier": "UPS",
"status": "in_transit",
"status_label": "In Transit",
"origin": "Dallas, TX",
"destination": "Monterrey, MX",
"estimated_delivery": "2025-01-18T14:00:00Z",
"events": [
{
"timestamp": "2025-01-15T14:30:00Z",
"status": "picked_up",
"description": "Shipment picked up",
"location": "Dallas, TX"
},
{
"timestamp": "2025-01-16T06:20:00Z",
"status": "in_transit",
"description": "Crossed border",
"location": "Nuevo Laredo, MX"
}
]
}
Get Track Result
Retrieve the current tracking result for a previously submitted tracking number.
Carriers
List all supported carriers and their configuration.
{
"carriers": [
{
"code": "ups",
"name": "UPS",
"region": "US",
"type": "express",
"active": true
},
{
"code": "estafeta",
"name": "Estafeta",
"region": "MX",
"type": "ground",
"active": true
},
{
"code": "correios",
"name": "Correios",
"region": "BR",
"type": "postal",
"active": true
}
]
}
Carrier Detail
Get detailed information about a specific carrier including supported services and coverage areas.
Webhooks
Configure webhook endpoints to receive real-time tracking event notifications.
{
"url": "https://your-domain.com/webhooks/rpw",
"events": ["tracking.updated", "tracking.delivered"],
"secret": "whsec_your_webhook_secret"
}
Webhook Events
The following event types are available for webhook subscriptions:
tracking.createdβ New tracking request submittedtracking.updatedβ Shipment status changedtracking.deliveredβ Shipment deliveredtracking.exceptionβ Delivery exception occurred
Error Codes
The API uses standard HTTP status codes and returns error details in the response body.
{
"error": {
"code": "invalid_tracking_number",
"message": "The provided tracking number is invalid",
"status": 400
}
}
Common error codes:
400Bad Request β Invalid parameters401Unauthorized β Invalid or missing API key404Not Found β Tracking number or carrier not found429Too Many Requests β Rate limit exceeded500Internal Server Error β Temporary server issue