DHL Post DE Internetmarke API v1 client for Parcel.NET.
$ dotnet add package Parcel.NET.Dhl.Internetmarke
DHL Post DE Internetmarke/Portokasse API v1 client for Parcel.NET — purchase digital stamps, browse the product catalog, manage your wallet, and process retoures.
dotnet add package Parcel.NET.Dhl.Internetmarke
builder.Services.AddDhl(options =>
{
options.ApiKey = "your-api-key";
options.ApiSecret = "your-api-secret";
options.InternetmarkeUsername = "your-username";
options.InternetmarkePassword = "your-password";
})
.AddDhlInternetmarke();
var client = serviceProvider.GetRequiredService<IDhlInternetmarkeClient>();
// Get user profile
var profile = await client.GetUserProfileAsync();
// Browse product catalog
var catalog = await client.GetCatalogAsync();
// Cart-based stamp purchase
var cart = await client.InitializeCartAsync();
var checkout = await client.CheckoutCartPdfAsync(new CheckoutRequest { /* ... */ });
// Charge wallet (Portokasse)
await client.ChargeWalletAsync(new WalletChargeRequest { /* ... */ });