Direct API

Generate Label Link

Generate secure download links for individual AWB labels

Endpoint

GET /orders/label-link/{awb}

Authentication

API Key required

Swagger Documentation

View in Swagger

Important Notes

  • Secure URLs: Generated links are signed and work for 30 days, without exposing AWB numbers in the URL
  • Ownership verification: You can only generate links for orders belonging to your account
  • Format: Labels are generated in A4 by default; pass format=A6 for A6 labels
  • Use case: Perfect for sharing download links with customers or integrating into external systems

Request Parameters

Path Parameters

Parameter Type Required Description
awb string Required The AWB (Air Waybill) number for the order you want to generate a download link for

Query Parameters

Parameter Type Required Description
format string Optional Label format the link prints: A4 or A6. Defaults to A4. Any other value returns 400 (INVALID_FORMAT).

Code Examples

// Using fetch API
const awb = "AWB123456789";
const response = await fetch(`https://api.europarcel.com/api/public/orders/label-link/${awb}`, {
  method: "GET",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json"
  }
});

const data = await response.json();

// Using the download URL
window.open(data.download_url, '_blank');

Response Structure

Success Response (200)

JSON
{
  "download_url": "https://api.europarcel.com/api/public/download-label/QVdCMTIzNDU2Nzg5fDEyMw?expires=1794391200&signature=4f1c9a7e2b...",
  "awb": "AWB123456789",
  "format": "A4",
  "expires_at": "2026-11-11T10:00:00Z"
}

Error Responses

Authentication Error (401)

JSON
{
  "error": "AUTHENTICATION_FAILED",
  "message": "No authenticated customer found"
}

Access Denied (403)

JSON
{
  "error": "INVALID_PARAMETER", 
  "message": "You don't have access to this order"
}

Order Not Found (404)

JSON
{
  "error": "ORDER_NOT_FOUND",
  "message": "Order not found or you don't have access to it"
}

Usage Notes

Security: The generated URL contains a secure token that verifies ownership and AWB validity
Valid for 30 Days: A generated URL can be used multiple times until its expires_at; after that it returns 403 (LINK_EXPIRED), so generate a new one
Direct Download: The returned URL can be used directly in browsers or download managers
Integration: Perfect for embedding download links in emails, customer portals, or external systems