Skip to main content
The Get Label endpoint returns one or more shipping labels associated with an OpenBorder order. For full-order fulfillment, provide the order number to retrieve the existing label. For split shipments, include the required SKU, parcel, and address information to generate a label for the specified items.

Endpoints

Authentication

All requests must include a Bearer token in the Authorization 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

When the label is available, the endpoint returns a structured result object.
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

When the label is available, the endpoint returns a structured result object.