Libraries & SDKs
Choose your favorite programming language and quickly integrate with atoship API. We provide official SDKs and complete example projects to help you build logistics management applications.
JavaScript/TypeScript
Universal SDK supporting Node.js, browser and serverless environments
v1.0.0
@atoship/sdkInstallation
npm install @atoship/sdkQuick Start Code
import { atoshipSDK } from '@atoship/sdk'
// Initialize SDK
const atoship = new atoshipSDK({
apiKey: 'your-api-key'
})
// Create order
const order = await atoship.createOrder({
orderNumber: 'ORDER-001',
recipientName: 'John Doe',
recipientStreet1: '123 Main St',
recipientCity: 'San Francisco',
recipientState: 'CA',
recipientPostalCode: '94105',
recipientCountry: 'US',
items: [{
name: 'Product',
sku: 'SKU-001',
quantity: 1,
unitPrice: 29.99,
weight: 2.0,
weightUnit: 'lb'
}]
})
console.log('Order created:', order.data.id)SDK Features
- Complete TypeScript type support
- CommonJS and ES Modules support
- Automatic retry and error handling
- Works in Node.js and browsers
- Promise and async/await support
Documentation