Skip to main content
GET
Get Package by ID

Get Package by ID

Retrieve a specific logistics package by its UUID, including all associated legs and aggregated emissions data.
New API: This endpoint is part of the new API architecture with improved design and maintainability.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

string
required
The UUID of the package to retrieveExample: a1b2c3d4-e5f6-7890-abcd-ef1234567890

Response

string
Unique identifier for the package (UUID)
string
Shipment identifier (groups packages from the same shipment)
string
Unique package identifier provided during creation
string
Client billing identifier (optional)
number
Package weight in kilograms
number
Total distance across all legs in kilometers
number
Total CO2 equivalent emissions across all legs in kilograms
string
Package status (active, inactive)
datetime
Timestamp when the package was created
datetime | null
Timestamp when the package was last updated
array
Array of leg objects associated with this package

Example

Successful Response

Common Errors

401 Unauthorized

Cause: Missing or invalid API key
Solution: Verify your API key is valid and active. Get a new one from Settings -> API.

404 Not Found

Cause: Package not found or doesn’t belong to your organization
Solution: Verify that:
  1. The package_id is a valid UUID
  2. The package belongs to the organization specified in x-organization-id
  3. The package exists and hasn’t been deleted

Use Cases

Detailed Package Journey Analysis

Analyze the complete journey of a package:

Generate Package Certificate Data

Prepare data for an emissions certificate:

Get Packages

List all packages with pagination

Create Logistics Request

Create a new leg (with optional package association)

Get Logistics Requests

Retrieve all legs with pagination

Authentication Guide

Learn how to get your API key