Parcel.NET.Dhl 1.0.1

dotnet add package Parcel.NET.Dhl --version 1.0.1
                    
NuGet\Install-Package Parcel.NET.Dhl -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Parcel.NET.Dhl" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Parcel.NET.Dhl" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Parcel.NET.Dhl" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Parcel.NET.Dhl --version 1.0.1
                    
#r "nuget: Parcel.NET.Dhl, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Parcel.NET.Dhl@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Parcel.NET.Dhl&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Parcel.NET.Dhl&version=1.0.1
                    
Install as a Cake Tool

<p align="center"> <img src="https://raw.githubusercontent.com/emuuu/Parcel.NET/main/parcelNET-logo.svg" alt="Parcel.NET" width="128" /> </p>

Parcel.NET.Dhl

Core DHL package for Parcel.NET — provides DhlOptions configuration, OAuth token management, and the fluent DhlBuilder used to register individual DHL service clients.

NuGet

Installation

dotnet add package Parcel.NET.Dhl

Usage

builder.Services.AddDhl(options =>
{
    options.ApiKey = "your-api-key";
    options.ApiSecret = "your-api-secret";
    options.Username = "your-username";
    options.Password = "your-password";
    options.UseSandbox = true;
})
.AddDhlShipping()      // requires Parcel.NET.Dhl.Shipping
.AddDhlTracking()      // requires Parcel.NET.Dhl.Tracking
.AddDhlUnifiedTracking()
.AddDhlPickup()
.AddDhlReturns()
.AddDhlInternetmarke()
.AddDhlLocationFinder();

AddDhl() returns a DhlBuilder that the individual service packages chain onto. Authentication (OAuth ROPC or API-key header) is handled automatically per service.

Configuration

Property Required Description
ApiKey Yes DHL API key (also used as OAuth client_id)
ApiSecret For Shipping/Pickup/Returns/Internetmarke OAuth client_secret
Username / Password For Shipping/Pickup/Returns ROPC credentials
TrackingUsername / TrackingPassword For Tracking (XML) Parcel DE Tracking credentials
InternetmarkeUsername / InternetmarkePassword For Internetmarke Falls back to Username/Password
UseSandbox No Use sandbox endpoints
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on Parcel.NET.Dhl:

Package Downloads
Parcel.NET.Dhl.Pickup

DHL Parcel DE Pickup API v3 client for Parcel.NET.

Parcel.NET.Dhl.Tracking

DHL Parcel DE Tracking API v0 client (XML) for Parcel.NET.

Parcel.NET.Dhl.Shipping

DHL Parcel DE Shipping API v2 client for Parcel.NET.

Parcel.NET.Dhl.Internetmarke

DHL Post DE Internetmarke API v1 client for Parcel.NET.

Parcel.NET.Dhl.Returns

DHL Parcel DE Returns API v1 client for Parcel.NET.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 206 2/21/2026
1.0.0 210 2/20/2026