Logistics Infrastructure Built for Developers
Integrate nationwide shipping, real-time rate comparison, AWB generation, and webhook tracking into your application using clean, RESTful APIs.
curl -X POST https://api.onestallcargo.com/v1/shipments/create \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "pickup_pincode": "110001", "delivery_pincode": "400001", "weight_kg": 1.5, "payment_type": "COD", "cod_amount": 1499, "consignee": { "name": "Rahul Sharma", "phone": "9876543210" } }'
const axios = require('axios'); const response = await axios.post('https://api.onestallcargo.com/v1/shipments/create', { pickup_pincode: '110001', delivery_pincode: '400001', weight_kg: 1.5, payment_type: 'COD', cod_amount: 1499 }, { headers: { 'Authorization': `Bearer ${process.env.ONESTALL_API_KEY}` } });
$response = Http::withToken(env('ONESTALL_API_KEY')) ->post('https://api.onestallcargo.com/v1/shipments/create', [ 'pickup_pincode' => '110001', 'delivery_pincode' => '400001', 'weight_kg' => 1.5, 'payment_type' => 'COD', 'cod_amount' => 1499 ]);
import requests headers = {"Authorization": "Bearer YOUR_API_KEY"} payload = { "pickup_pincode": "110001", "delivery_pincode": "400001", "weight_kg": 1.5, "payment_type": "COD" } res = requests.post("https://api.onestallcargo.com/v1/shipments/create", json=payload, headers=headers)
Developer-First Logistics Features
Architected for reliability, scalability, and ease of integration into any software stack.
RESTful Shipping APIs
Calculate rates, generate AWB tracking numbers, and request pickups using clean JSON endpoints.
Real-Time Webhook Engine
Subscribe to instant HTTP webhooks for shipment tracking status, NDR alerts, and COD settlement events.
Sandbox & Test Keys
Test your entire order lifecycle in a isolated sandbox environment with simulated carrier responses.
SDKs & Client Libraries
Pre-built official SDKs for Node.js, Python, PHP (Laravel), and Go available on NPM and Packagist.
Granular API Token Scopes
Create restricted API keys (Read-Only, Write-Only, Webhook-Only) with IP whitelisting controls.
OpenAPI & Postman Specs
Download OpenAPI v3 schemas and Postman collection files to test endpoints in 30 seconds.
Build Powerful Logistics Into Your App
Get your free API key, test in our sandbox environment, and go live with nationwide shipping in hours.