Endpoints
Authentication
All requests must include a Bearer token in theAuthorization header.
Request Body
string
required
The order number to retrieve or generate a label for.
number
Parcel weight. When provided,
weightUnit is also required.string
Unit for the
weight field. Required when weight is set. Accepted values: "grams" or "pounds".number
Parcel length. When any dimension is provided,
dimensionsUnit is also required.number
Parcel width. When any dimension is provided,
dimensionsUnit is also required.number
Parcel height. When any dimension is provided,
dimensionsUnit is also required.string
Unit for
length, width, and height. Required when any dimension is set. Accepted values: "cm" or "in".boolean
When
true, the label is returned as a base64-encoded string in addition to the PDF URL.array
Required for partial label generation. An array of SKU objects describing the items in this parcel.
object
The origin address. Required when
skus is provided.object
The destination address. Required when
skus is provided.string
A reference string printed directly on the label. Required when
skus is provided.string
Parcel weight in grams. Required when
skus is provided.string
Your brand code as provided by OpenBorder. Required when
skus is provided.string
An optional location code used for partial label consolidation across fulfillment centers.
boolean
When
true, the response includes a URL to the label in ZPL format (for thermal printers).Request Examples
Response
When the label is available, the endpoint returns a structured result object.boolean
false when the request was processed successfully.object
The label result data.
Label Ready Response
string
required
The order number to retrieve or generate a label for.
number
Parcel weight. When provided,
weightUnit is also required.string
Unit for the
weight field. Required when weight is set. Accepted values: "grams" or "pounds".number
Parcel length. When any dimension is provided,
dimensionsUnit is also required.number
Parcel width. When any dimension is provided,
dimensionsUnit is also required.number
Parcel height. When any dimension is provided,
dimensionsUnit is also required.string
Unit for
length, width, and height. Required when any dimension is set. Accepted values: "cm" or "in".boolean
When
true, the label is returned as a base64-encoded string in addition to the PDF URL.array
Required for partial label generation. An array of SKU objects describing the items in this parcel.
object
The origin address. Required when
skus is provided.object
The destination address. Required when
skus is provided.string
A reference string printed directly on the label. Required when
skus is provided.string
Parcel weight in grams. Required when
skus is provided.string
Your brand code as provided by OpenBorder. Required when
skus is provided.string
An optional location code used for partial label consolidation across fulfillment centers.
boolean
When
true, the response includes a URL to the label in ZPL format (for thermal printers).Request Examples
string
required
The order number to retrieve or generate a label for.
number
Parcel weight. When provided,
weightUnit is also required.string
Unit for the
weight field. Required when weight is set. Accepted values: "grams" or "pounds".number
Parcel length. When any dimension is provided,
dimensionsUnit is also required.number
Parcel width. When any dimension is provided,
dimensionsUnit is also required.number
Parcel height. When any dimension is provided,
dimensionsUnit is also required.string
Unit for
length, width, and height. Required when any dimension is set. Accepted values: "cm" or "in".boolean
When
true, the label is returned as a base64-encoded string in addition to the PDF URL.array
Required for partial label generation. An array of SKU objects describing the items in this parcel.
object
The origin address. Required when
skus is provided.object
The destination address. Required when
skus is provided.string
A reference string printed directly on the label. Required when
skus is provided.string
Parcel weight in grams. Required when
skus is provided.string
Your brand code as provided by OpenBorder. Required when
skus is provided.string
An optional location code used for partial label consolidation across fulfillment centers.
boolean
When
true, the response includes a URL to the label in ZPL format (for thermal printers).