#Introduction
Welcome to the EcoRoute Core Engine API. Our infrastructure enables enterprises to perform precise, real-time multi-modal logistics audits, carbon tax calculations, and compliance verification under global reporting standards.
https://ecoroute.stims.co.zaAll requests require a valid live bearer token and must be structured as valid JSON payloads over secure HTTPS channels.
curl -X POST '/api/v1/logistics/audit' \ -H 'Authorization: Bearer ecoroute_live_...' \ -H 'Content-Type: application/json'
#Authentication
EcoRoute APIs authenticate requests using secret bearer tokens. Pass your token via the Authorization HTTP header on every call.
Authorization: Bearer ecoroute_live_YOUR_SECRET_TOKEN
#Rate Limits
Corporate accounts are governed by monthly active request tiers. Exceeding your token quota results in a 429 Too Many Requests response envelope.
#Pagination
Large record listings and historical audit queries accept optional 'page' and 'limit' cursor query parameters. The response envelope includes comprehensive metadata regarding total pages and record counts.
GET /api/v1/logistics/history?page=2&limit=50
{
"pagination": {
"current_page": 2,
"per_page": 50,
"total_records": 1420,
"total_pages": 29,
"has_next": true
}
}#Errors
EcoRoute uses standard HTTP response status codes coupled with explicit internal error codes to identify operational failures.
{
"success": false,
"error": {
"code": "UNPROCESSABLE_ENTITY",
"status_code": 422,
"message": "Field 'distance' must be a positive quantitative float value.",
"timestamp": "2026-08-14T09:15:00.000Z"
}
}#Webhooks
Configure your `webhook_destination_url` in your dashboard to receive automated real-time HTTPS POST pushes when critical telemetry benchmarks occur.
{
"event": "carbon_threshold_alert",
"organization": "Enterprise Logistics Ltd",
"timestamp": "2026-08-14T09:20:00.000Z",
"payload": {
"accrued_tax_zar": 14500.00,
"threshold_limit_zar": 20000.00
}
}API Documentation Specifications Reference
Audit Calculator
Executes real-time multi-category emissions footprint audits with organization quota tracking and ledger verification across 5 distinct modality profiles.
/api/v1/logistics/audit{
"reference_id": "YOUR_UNIQUE_REF_001",
"type": "vehicle",
"vehicle_id": "YOUR_UUID",
"distance": 124.5,
"unit": "km",
"emission_date": "2026-08-01",
"save_log": true
}{
"reference_id": "YOUR_UNIQUE_REF_002",
"type": "flight",
"origin_identifier": "31055",
"dest_identifier": "2775",
"passengers": 7,
"emission_date": "2026-08-05",
"save_log": true
}{
"reference_id": "YOUR_UNIQUE_REF_003",
"type": "shipping",
"cargo_weight": 18500.0,
"mass_unit": "kg",
"distance": 840.2,
"unit": "km",
"emission_date": "2026-08-06",
"save_log": true
}{
"reference_id": "YOUR_UNIQUE_REF_004",
"type": "electricity",
"energy_kwh": 4500.75,
"country_code": "ZA",
"emission_date": "2026-08-07",
"save_log": true
}{
"reference_id": "YOUR_UNIQUE_REF_005",
"type": "gas",
"gas_quantity": 120.0,
"gas_type": "LPG",
"gas_unit": "kg",
"emission_date": "2026-08-08",
"save_log": true
}{
"success": true,
"status": "TRANSACTION_AUDIT_VERIFIED",
"timestamp": "2026-08-08T01:45:00.000Z",
"organization": "Your Enterprise Profile Name",
"quota_requests_remaining": 99942,
"metrics": {
"carbon_kg": 230.20,
"carbon_g": 230200,
"carbon_mt": 0.2302,
"carbon_lb": 507.5
},
"telemetry": {
"userAssignedDate": "2026-08-08",
"processedViaSecureTunnel": true
},
"record": {
"id": "c7b508f2-11da-4bc3-9fae-cc9231f82110"
}
}Bulk Matrix Logger
Ingests and processes mixed parameter arrays of up to 50 concurrent items simultaneously. Applies conditional duplicate reference key filters.
/api/v1/bulk-log{
"cost_center": "Durban-Main-Hub",
"batch_items": [
{
"reference_id": "REF_9901_VEH",
"type": "vehicle",
"vehicle_id": "9cd3ed83-4d36-4fc8-857f-f19c0aaa2407",
"distance": 124.5,
"unit": "km",
"save_log": true
}
]
}{
"success": true,
"total_items_processed": 1,
"total_items_saved": 1,
"quota_requests_remaining": 2963,
"results": [
{
"reference_id": "REF_9901_VEH",
"type": "vehicle",
"saved_to_ledger": true
}
]
}Route Checker
Pre-dispatch distance simulation using sequential coordinate paths list coordinates array mapped strictly in Google format.
/api/v1/route-check{
"vehicle_id": "9cd3ed83-4d36-4fc8-857f-f19c0aaa2407",
"coordinates_string": [
"-25.966000, 28.233000",
"-28.212325, 30.675712"
]
}{
"success": true,
"dispatch_status": "APPROVED_HAVERSINE_SEQUENCE_ROUTE",
"route_projection": {
"actual_distance_km": 482.6,
"projected_fuel_litres": 55.50,
"projected_carbon_kg": 111.000
}
}Carbon Tax Report
Compiles aggregated emissions data matrix lines to compute real-time statutory carbon tax exposure statement balances under SARS constants.
/api/v1/tax-reportGET /api/v1/tax-report?start_date=2026-03-01&end_date=2026-05-31
{
"success": true,
"organization": "Express Carrier Hub",
"sars_tax_compliance_ledger": {
"statutory_base_rate_zar_per_tonne": 159.00,
"free_basic_allowance_exemption_percentage": "60%",
"taxable_emissions_volume_mt": 1.6800,
"total_accrued_liability_zar": 319.20
}
}Emission History
Retrieves complete transactional records ledger history rows lists. Free operation: does NOT bump or draw down your corporate request token usage allowance.
/api/v1/historyGET /api/v1/history?limit=25
{
"success": true,
"total_records": 1,
"history": [
{
"id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
"category_display": "VEHICLE",
"distance_km": 310.2,
"carbon_kg": 71.346
}
]
}Vehicle Roster
Fetches active tracking elements, model descriptors, and carbon multipliers associated with your profile. Free read query action.
/api/v1/vehiclesGET /api/v1/vehicles?limit=50
{
"success": true,
"total_vehicles": 1,
"vehicles": [
{
"id": "9cd3ed83-4d36-4fc8-857f-f19c0aaa2407",
"make": "Aston Martin",
"model": "DB12 V8",
"carbon_multiplier": 0.230
}
]
}Airport Registry
Queries high-volume 50,000-row stationary airport hub directories safely avoiding performance lag. Free read query implementation.
/api/v1/airportsGET /api/v1/airports?continent=AF&iso_country=ZA&page=1&limit=2
{
"success": true,
"pagination": { "total_records": 134, "current_page": 1, "per_page": 2 },
"airports": [
{ "id": 31055, "name": "Cape Town International", "municipality": "Cape Town" }
]
}Country Directory
Lists active stationary international boundary ISO codes matrix direct reference mappings records data cleanly without pagination. Free read operation.
/api/v1/countriesGET /api/v1/countries?continent=AF
{
"success": true,
"total_countries": 54,
"countries": [
{ "id": 182, "code": "ZA", "name": "South Africa", "continent": "AF" }
]
}