Ebitex.Commerce.Delivery 0.2.22

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

Ebitex.Commerce.Delivery

A server-side .NET client for the ebitex Commerce Delivery API. It reads a store's catalogue (products, prices, availability and categories) and live stock with a delivery key.

It is read-only and holds no cache: the API sends private, no-cache responses with an ETag, so you decide what to cache.

Install

dotnet add package Ebitex.Commerce.Delivery

Use

using Ebitex.Commerce.Delivery;

builder.Services.AddEbitexCommerceDelivery(options =>
{
    options.ApiKey = builder.Configuration["Ebitex:CommerceDeliveryKey"];
});

// …then take a CommerceDeliveryClient from dependency injection.
var store = await commerce.GetStoreAsync();
var page = await commerce.ListProductsAsync(new ProductsQuery { Search = "trail", Limit = 12 });

await foreach (var product in commerce.ListAllProductsAsync(new ProductsQuery { Sort = ProductSort.CreatedUtc }))
{
    var cheapest = product.Variants.Where(v => v.Price is not null).MinBy(v => v.Price!.AmountMinor);
    Console.WriteLine($"{product.Name}: {cheapest?.Price?.Amount} {cheapest?.Price?.Currency}");
}

Use a server key here. A browser-safe key, one restricted to origins or addresses, is refused from a server, because a server sends no Origin.

Prices

A price is whole minor units beside a currency (AmountMinor, Currency) and the same amount as the store's own decimal string (Amount). Show Amount; do arithmetic on AmountMinor. A variant with no price in the store has Price == null: unpriced, which is not zero.

Availability and stock

Product reads carry each variant's availability as a status (Availability.InStock, Backorder or OutOfStock), up to a few minutes old, for display. GetStockAsync is never cached and is the authority to confirm against before you take an order. A server key is told counts (StockItem.Available); it is a tighter budget than the other reads, so call it when you need it rather than on every render.

Errors

A non-success response throws CommerceDeliveryException with StatusCode, ErrorCode (invalid_cursor, rate_limited, …), RequestId (quote it to support) and, on a 429, RetryAfter. A product that is not available is null from GetProductAsync, not an exception, unless you ask for one with ProductOptions.ThrowIfMissing. A request the client refuses to send (a limit of zero, more than 50 keys) throws the same exception with IsLocal set and the server's own code.

Paging

ListPagesAsync and ListAllProductsAsync capture the query once and replay it unchanged with each cursor, because a cursor belongs to the query that produced it.

Licence

Apache-2.0.

Product Compatible and additional computed target framework versions.
.NET 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

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.22 0 11/20/2026
0.2.21 0 11/20/2026
0.2.20 0 11/19/2026
0.1.19 0 11/19/2026
0.1.18 0 11/19/2026