curl "https://api.crbtrack.com/api/v1/labels/CBECUSD123456789/download" \
-H "X-API-Key: <YOUR_API_KEY>" \
-o label.pdf
curl "https://api.crbtrack.com/api/v1/labels/CBECUSD123456789/download?format=ZPL" \
-H "X-API-Key: <YOUR_API_KEY>" \
-o label.zpl
const response = await fetch(
'https://api.crbtrack.com/api/v1/labels/CBECUSD123456789/download',
{
headers: { 'X-API-Key': 'your_api_key' }
}
);
const blob = await response.blob();
// Save or display the label
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="CBECUSD123456789.pdf"
Content-Length: 45678
[Binary PDF data]
Labels
Download Label
Download the shipping label file
GET
/
api
/
v1
/
labels
/
{trackingNumber}
/
download
curl "https://api.crbtrack.com/api/v1/labels/CBECUSD123456789/download" \
-H "X-API-Key: <YOUR_API_KEY>" \
-o label.pdf
curl "https://api.crbtrack.com/api/v1/labels/CBECUSD123456789/download?format=ZPL" \
-H "X-API-Key: <YOUR_API_KEY>" \
-o label.zpl
const response = await fetch(
'https://api.crbtrack.com/api/v1/labels/CBECUSD123456789/download',
{
headers: { 'X-API-Key': 'your_api_key' }
}
);
const blob = await response.blob();
// Save or display the label
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="CBECUSD123456789.pdf"
Content-Length: 45678
[Binary PDF data]
Downloads the actual shipping label file. Returns the binary file content.
Path Parameters
string
required
The tracking number of the parcel.
Query Parameters
string
default:"PDF"
Label format:
PDF, ZPL, or PNG.Response
Returns the label file with appropriateContent-Type header:
| Format | Content-Type |
|---|---|
application/pdf | |
| PNG | image/png |
| ZPL | text/plain |
curl "https://api.crbtrack.com/api/v1/labels/CBECUSD123456789/download" \
-H "X-API-Key: <YOUR_API_KEY>" \
-o label.pdf
curl "https://api.crbtrack.com/api/v1/labels/CBECUSD123456789/download?format=ZPL" \
-H "X-API-Key: <YOUR_API_KEY>" \
-o label.zpl
const response = await fetch(
'https://api.crbtrack.com/api/v1/labels/CBECUSD123456789/download',
{
headers: { 'X-API-Key': 'your_api_key' }
}
);
const blob = await response.blob();
// Save or display the label
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="CBECUSD123456789.pdf"
Content-Length: 45678
[Binary PDF data]
Label Specifications
| Property | Value |
|---|---|
| Size | 4” × 6” (100mm × 150mm) |
| Resolution | 203 DPI (thermal printers) |
| Barcode | Code 128 |
| QR Code | Contains tracking URL |
Printer Compatibility
Thermal Printers (ZPL)
Thermal Printers (ZPL)
Use
format=ZPL for Zebra and compatible thermal printers.Tested with:- Zebra ZD420
- Zebra GK420d
- TSC TDP-225
Inkjet/Laser Printers (PDF)
Inkjet/Laser Printers (PDF)
Use
format=PDF for standard office printers.Print settings:- 100% scale (no fit to page)
- Portrait orientation