SyncShip
Labels Api

Purchase Labels From Your Stack

Create carrier-generated labels for eligible orders with one authenticated POST. Use the same shipment contract as SyncShip Create Label.

Overview

The Labels API creates a shipment and returns tracking plus label artifacts when the selected carrier service is available on your account. Pair it with the Rates API to choose a service before purchase.

  • POST /api/v1/shipments
  • PDF and carrier-supported label formats
  • Void and reprint flows where supported
  • Works with order-based fulfillment workflows

Authentication

Authenticate every request with a Bearer token issued for your SyncShip developer account.

Endpoint

Send order and package details to create a label. Responses include shipment id, tracking number, and label metadata when generation succeeds.

POST/api/v1/shipments

Request

orderId is required. Carrier, service, weight, and dimensions should match a rate you already shopped when using carrier-generated labels.

ParameterTypeRequiredDescription
orderIdstringYesSyncShip order id to fulfill.
carrierstringNoCarrier code such as usps or ups.
serviceCodestringNoCarrier service code selected from rates.
serviceNamestringNoHuman-readable service name.
weightOznumberNoTotal package weight in ounces.
lengthnumberNoPackage length in inches.
widthnumberNoPackage width in inches.
heightnumberNoPackage height in inches.
packageTypestringNoPackaging type when required by the carrier.
labelSourcestringNoUsually carrier_generated for purchased labels.

Response

Successful responses return the created shipment, including tracking and label format details when available.

Example response

Errors

Standard HTTP status codes are used. Treat 4xx as client corrections and retry 429 with backoff.

  • 401Missing or invalid API key.
  • 422Validation failed — check order id, service, or package details.
  • 429Too many requests — retry with exponential backoff.

Next steps

After labels, subscribe to tracking events or shop rates before purchase.

Bring Every Order Into One Queue

Start free