PacelioPacelio
Developers

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

POST/api/v1/orders

Create a new shipment order with pickup and delivery details.

API Key
GET/api/v1/orders/:id

Retrieve order details, status, and tracking information.

API Key
GET/api/v1/orders/:id/track

Get real-time tracking data and courier location.

API Key
POST/api/v1/orders/:id/cancel

Cancel a pending or confirmed order.

API Key
GET/api/v1/carriers

List all active carriers with coverage areas and rates.

API Key
GET/api/v1/carriers/:id/rates

Get rate card and pricing for a specific carrier.

API Key
GET/api/v1/rates/quote

Get instant quotes across carriers for a route.

API Key
POST/api/v1/webhooks

Register a webhook URL for order status events.

Secret Key

Webhook Events

Subscribe to real-time events and receive HTTP POST callbacks to your endpoint. Automatic retry with exponential backoff for failed deliveries.

order.created

A new order has been placed

order.confirmed

Order has been confirmed by the carrier

order.picked_up

Parcel has been picked up by the courier

order.in_transit

Parcel is in transit to destination

order.delivered

Parcel has been delivered successfully

order.cancelled

Order has been cancelled

order.cod_paid

COD payment has been confirmed

courier.location

Real-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.