Analytics API
Access shipping analytics and cost optimization insights.
Cost savings summary
GET /v1/analytics/savings
Returns potential cost savings across all active shipping lanes.
{
"totalPotentialSavings": 2450.00,
"lanesAnalyzed": 87,
"lanesWithSavings": 23,
"topLanes": [
{
"lane": "80202 -> 10001",
"currentCarrier": "fedex",
"recommendedCarrier": "usps",
"currentAvgCost": 12.50,
"recommendedAvgCost": 8.75,
"estimatedSavings": 375.00,
"shipmentCount": 100
}
]
}
Carrier performance
GET /v1/analytics/carriers
Returns on-time rates, average transit times, and exception rates per carrier.
Delivery predictions
POST /v1/analytics/predict
Predicts delivery dates based on historical performance data.
{
"carrierCode": "usps",
"originPostalCode": "80202",
"destinationPostalCode": "97201"
}
Response includes P25/P50/P75/P95 delivery date estimates with confidence scores.