Logicware.Connect.Sdk 0.2.0

dotnet add package Logicware.Connect.Sdk --version 0.2.0
                    
NuGet\Install-Package Logicware.Connect.Sdk -Version 0.2.0
                    
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="Logicware.Connect.Sdk" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Logicware.Connect.Sdk" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Logicware.Connect.Sdk" />
                    
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 Logicware.Connect.Sdk --version 0.2.0
                    
#r "nuget: Logicware.Connect.Sdk, 0.2.0"
                    
#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 Logicware.Connect.Sdk@0.2.0
                    
#: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=Logicware.Connect.Sdk&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Logicware.Connect.Sdk&version=0.2.0
                    
Install as a Cake Tool

Logicware.Connect.Sdk

Official .NET SDK for Logicware Connect — integrate your own courier website with a Logicware-hosted warehouse.

Targets .NET 8 and .NET Standard 2.1 (so it works on .NET Framework 4.8+, Unity, and older runtimes via the standard shim).

Install

dotnet add package Logicware.Connect.Sdk

Quick start

using Logicware.Connect.Sdk;

using var client = new LogicwareConnectClient(new LogicwareConnectOptions
{
    ApiKey = Environment.GetEnvironmentVariable("LW_API_KEY")!,
    BaseUrl = new Uri("https://courier-api.logicware.app"),
});

// Lookup a shipper by email
var shipper = await client.Shippers.GetByEmailAsync("customer@example.com");

// Paginate packages for that shipper
await foreach (var pkg in client.Packages.ListAllAsync(new ListPackagesOptions { ShipperId = shipper.Id }))
{
    Console.WriteLine($"{pkg.TrackingNumber}  {pkg.Status}  {pkg.FreightType}");
}

Dependency injection

In an ASP.NET Core / worker app:

using Logicware.Connect.Sdk.DependencyInjection;

builder.Services.AddLogicwareConnect(opts =>
{
    opts.ApiKey = builder.Configuration["Logicware:ApiKey"]!;
    opts.BaseUrl = new Uri(builder.Configuration["Logicware:BaseUrl"]!);
    opts.UserAgentSuffix = "MyCourierPortal/1.0";
});

Then inject LogicwareConnectClient into controllers / services.

Resources

Every resource matches the JS and PHP SDKs method-for-method:

Resource Examples
client.Warehouses ListAsync, GetAsync
client.Shippers ListAsync, GetByEmailAsync, SyncAsync, BulkCreateAsync, ImportManyAsync, ImportProgressAsync
client.Shippers.Addresses ListAsync, CreateAsync, UpdateAsync, DeleteAsync
client.Packages ListAsync, ListAllAsync (async iterator), GetAsync, GetByTrackingAsync, ForShipperAsync
client.Manifests ListAsync, CreateAsync, SetOpenAsync, CloseAsync, ReopenAsync, FinalizeAsync, SetStatusAsync, AddPackagesAsync, RemovePackageAsync
client.PreAlerts ListAsync (returns stats too), LookupByTrackingAsync, CreateAsync, CancelAsync
client.Intake SearchUnidentifiedAsync, ListUnclaimedAsync, ListReceivedAsync
client.MissingPackages ListAsync, CreateAsync, CancelAsync, CloseAsync
client.Rates CalculateAsync (public — no auth)

Errors

  • LogicwareApiException — non-2xx responses the SDK has stopped retrying on. Carries Status, ErrorCode (e.g. "ADDRESS_CODE_REQUIRED"), RequestId, and the parsed Details.
  • LogicwareNetworkException — transport failures (socket, TLS, timeout). Original exception chained as InnerException.

Retries

Built-in: 3 attempts total, exponential backoff with ±25% jitter, honors Retry-After on 429/5xx, bails immediately on 4xx (except 429). Override via LogicwareConnectOptions.MaxAttempts / Timeout.

Observability

Set LogicwareConnectOptions.Recorder to a callable that receives a RequestRecord per finished call (with X-Api-Key masked). The demo playground uses this to power its request inspector.

License

MIT © Logicware

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 89 5/2/2026
0.1.1 110 4/22/2026