API & Integrations
Connect your software with Pacelio's logistics network. Create shipments, track parcels, compare rates, and receive real-time updates — all through our RESTful API and webhooks.
Secure Authentication
All API requests require an API key passed via the Authorization header. Keys are tied to your account with granular permissions.
Real-Time Webhooks
Subscribe to order events and receive HTTP callbacks instantly. Never poll for status updates again — we push them to you.
Comprehensive Docs
Every endpoint is documented with request/response examples, error codes, and rate limits. SDK libraries for Python, JS, PHP, and Dart.
API Endpoints
Base URL: https://api.pacelio.com
/api/v1/ordersCreate a new shipment order with pickup and delivery details.
API Key/api/v1/orders/:idRetrieve order details, status, and tracking information.
API Key/api/v1/orders/:id/trackGet real-time tracking data and courier location.
API Key/api/v1/orders/:id/cancelCancel a pending or confirmed order.
API Key/api/v1/carriersList all active carriers with coverage areas and rates.
API Key/api/v1/carriers/:id/ratesGet rate card and pricing for a specific carrier.
API Key/api/v1/rates/quoteGet instant quotes across carriers for a route.
API Key/api/v1/webhooksRegister a webhook URL for order status events.
Secret KeyWebhook Events
Subscribe to real-time events and receive HTTP POST callbacks to your endpoint. Automatic retry with exponential backoff for failed deliveries.
order.createdA new order has been placed
order.confirmedOrder has been confirmed by the carrier
order.picked_upParcel has been picked up by the courier
order.in_transitParcel is in transit to destination
order.deliveredParcel has been delivered successfully
order.cancelledOrder has been cancelled
order.cod_paidCOD payment has been confirmed
courier.locationReal-time courier location update
Quick Start
Create a shipment and track it with just a few lines of code.
const pacelio = new PacelioClient({
apiKey: 'sk_live_your_api_key_here'
});
// Create a shipment
const order = await pacelio.orders.create({
pickup: {
city: 'Mbeya',
street: '123 Mbalizi Road',
contact: 'John Doe',
phone: '+255712345678'
},
delivery: {
city: 'Dar es Salaam',
street: '45 Kariakoo Street',
contact: 'Jane Smith',
phone: '+255765432109'
},
package: {
description: 'Documents',
weight: 0.5,
size: 'small'
}
});
console.log('Tracking:', order.trackingNumber);
// Track in real-time
const live = await pacelio.orders.track(order.id);
console.log('Status:', live.status);
console.log('Courier Position:', live.courierLocation);Platform Integrations
Connect Pacelio with the tools you already use. Our API and webhooks make integration straightforward.
E-Commerce Platforms
Integrate Pacelio with WooCommerce, Shopify, and custom online stores. Automate order creation and tracking updates directly from your checkout.
ERP & Accounting Systems
Connect with SAP, Oracle, Odoo, and local ERP systems. Sync shipments, invoices, and financial data automatically.
Communication Tools
Integrate with Slack, Telegram, and WhatsApp for real-time delivery alerts. Notify your team and customers automatically.
Warehouse Management
Connect with WMS platforms to automate dispatch triggers. When inventory is picked, a Pacelio courier is dispatched automatically.
Business Intelligence
Export delivery data to Power BI, Tableau, or Google Data Studio. Build custom dashboards with real-time logistics metrics.
Custom Integrations
RESTful API with comprehensive documentation. SDK libraries for Python, JavaScript, PHP, and Dart available for rapid development.
Get Your API Key
Ready to integrate? Request your API key today and get access to full documentation, sandbox environment, and developer support.
