Integration
SDK for Developer
Integrate TOPSALE label printing directly into your own application
The TOPSALE label printing API and barcode label API give developers full control over template management and print job dispatch. Use the label printing SDK to trigger ZPL or TSPL print jobs via REST API label printing — and embed label printing into any web, desktop, or mobile application without building the printer layer from scratch.
Full documentation, code samples, and sandbox access will be available at launch.
import { TopSale } from '@topsale/sdk';
const client = new TopSale({
apiKey: 'YOUR_API_KEY',
});
// Print a label with dynamic data
await client.labels.print({
template: 'shipping-label',
printer: 'warehouse-01',
data: {
name: 'Acme Corp',
sku: 'SKU-20481',
barcode: '9421902830124',
},
});