Get all unique client identifiers that have been used in logistics requests for your organization. Useful for populating dropdowns, filtering reports, or verifying data imports.
New API: This endpoint is part of the new API architecture with improved design and maintainability.
Before filtering packages, verify the client exists:
Copy
def get_packages_for_client(client_name): """Get packages for a specific client with validation""" # Get available clients clients_response = requests.get( "https://api.dcycle.io/v1/logistics/clients", headers=headers ) available_clients = clients_response.json() if client_name not in available_clients: raise ValueError( f"Client '{client_name}' not found. " f"Available: {', '.join(available_clients)}" ) # Get packages for the client packages_response = requests.get( f"https://api.dcycle.io/v1/logistics/packages?client={client_name}", headers=headers ) return packages_response.json()
The client list is dynamically generated based on the logistics requests in your organization. New clients appear automatically when you create requests with new client identifiers.
Client names are case-sensitive. "AMAZON" and "amazon" are considered different clients. We recommend using consistent naming conventions (e.g., always uppercase).