Developer-Friendly API

Build Smarter Shipping with BoxShip's API

Connect to 400+ carriers through a single, powerful API. Streamline operations, reduce development time, and ship faster.

create-shipment.js
// Create a shipment with BoxShip API
const response = await fetch('https://api.boxship.com/v1/shipments', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer bxs_pk_live_xxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    sender: {
      name: 'My Store',
      phone: '+966501234567',
      city: 'Riyadh',
      country: 'SA',
    },
    recipient: {
      name: 'Ahmed Al-Rashid',
      phone: '+966509876543',
      city: 'Jeddah',
      country: 'SA',
    },
    packages: [{
      weight: 2.5,
      dimensions: { length: 30, width: 20, height: 15 },
    }],
    auto_assign_carrier: true,
    generate_label: true,
  }),
});

const shipment = await response.json();
console.log(shipment.tracking_number);
// => "BXS7X8K2M9"

Get Started in 3 Steps

1

Register & Get API Key

Sign up for free and generate your API key from the dashboard.

2

Explore in Sandbox

Test all endpoints with our sandbox environment. No real shipments created.

3

Go Live

Switch to production keys and start shipping. Full support available.

A Complete API Suite for Shipping

10+ APIs covering every aspect of the shipping lifecycle

Shipping API

Create shipments, generate labels, and manage deliveries

Tracking API

Real-time shipment tracking via API and webhooks

Shipping Rates API

Instant rate retrieval and comparison across carriers

Returns API

Manage return requests, approvals, and reverse logistics

Order Management API

Sync and manage orders from any source

Notifications API

Send branded tracking notifications programmatically

Marketplace API

Vendor management for multi-seller platforms

Address Validation API

Validate and standardize shipping addresses

Carrier Integrations API

Connect and manage carrier accounts

Products API

Manage product catalog and inventory

Unique API Features

Real-Time Webhooks

Get instant notifications for every shipment status change. No polling required.

Sandbox Environment

Test your integration risk-free with our full-featured sandbox before going live.

ZPL Label Support

Generate labels in PDF, PNG, or ZPL format optimized for thermal printers.

Bulk Operations

Create hundreds of shipments in a single API call with batch processing.

Rate Limiting

100 requests/minute on standard plans, unlimited on enterprise. Fair and transparent.

Comprehensive Docs

Interactive API reference, code examples in 6 languages, and step-by-step guides.

Ready to Build?

Get your API key in seconds. Start with our sandbox — no credit card required.