Integration Guide
Get your e-commerce platform connected with Kenya's leading courier and fulfillment services in minutes. Step-by-step guide for all major platforms.
5-Step Integration Process
Follow our simple integration process to connect your platform with our services
Get Your API Key
Sign up for a Royal Truck account and get your API credentials
Create your account, verify your business, and receive your unique API key for authentication.
Install SDK/Plugin
Choose your platform and install our integration package
We provide SDKs for popular platforms like Shopify, WooCommerce, and REST APIs for custom solutions.
Configure Settings
Set up your pickup locations, service preferences, and pricing
Configure your fulfillment centers, default pickup addresses, and preferred delivery services.
Test Integration
Run test orders to ensure everything works correctly
Use our sandbox environment to test order creation, tracking, and webhook notifications.
Go Live
Switch to production and start processing real orders
Update to production endpoints and start fulfilling customer orders with Royal Truck.
Platform Integrations
Choose your e-commerce platform for specific integration instructions
Shopify
One-click installation from Shopify App Store
- Automatic order sync
- Real-time rates
- Tracking integration
WooCommerce
WordPress plugin for seamless integration
- Order management
- Rate calculation
- Status updates
Custom Platform
REST API for custom e-commerce solutions
- Full API access
- Webhook support
- Custom workflows
Google Sheets
Simple integration for order management
- Order import
- Bulk processing
- Status tracking
Code Examples
Quick start code snippets for popular programming languages
const RoyalTruck = require('@royaltruck/api'); const client = new RoyalTruck({ apiKey: 'your-api-key', environment: 'production' }); // Create a delivery order const order = await client.orders.create({ pickup: { address: 'Kenyatta Avenue, Nairobi', contact: '+254712345678' }, delivery: { address: 'Moi Avenue, Mombasa', contact: '+254787654321' }, package: { weight: 2.5, value: 5000 } }); console.log('Order created:', order.id);
<?php require_once 'vendor/autoload.php'; use RoyalTruck\Api\Client; $client = new Client([ 'api_key' => 'your-api-key', 'environment' => 'production' ]); // Create a delivery order $order = $client->orders->create([ 'pickup' => [ 'address' => 'Kenyatta Avenue, Nairobi', 'contact' => '+254712345678' ], 'delivery' => [ 'address' => 'Moi Avenue, Mombasa', 'contact' => '+254787654321' ], 'package' => [ 'weight' => 2.5, 'value' => 5000 ] ]); echo "Order created: " . $order['id']; ?>
Integration Benefits
Quick Setup
Get integrated in minutes with our simple SDKs and plugins
Secure & Reliable
Enterprise-grade security with 99.9% uptime guarantee
Kenya Coverage
Deliver to all 47 counties with real-time tracking
Customizable
Flexible API that adapts to your business needs
Ready to Get Started?
Join hundreds of businesses using our API to power their delivery operations across Kenya