Soenneker.Shopify.HttpClients 4.0.121

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Shopify.HttpClients --version 4.0.121
                    
NuGet\Install-Package Soenneker.Shopify.HttpClients -Version 4.0.121
                    
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="Soenneker.Shopify.HttpClients" Version="4.0.121" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Shopify.HttpClients" Version="4.0.121" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Shopify.HttpClients" />
                    
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 Soenneker.Shopify.HttpClients --version 4.0.121
                    
#r "nuget: Soenneker.Shopify.HttpClients, 4.0.121"
                    
#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 Soenneker.Shopify.HttpClients@4.0.121
                    
#: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=Soenneker.Shopify.HttpClients&version=4.0.121
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Shopify.HttpClients&version=4.0.121
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Shopify.HttpClients

Provides a reusable HttpClient configured for a store's Shopify Admin GraphQL endpoint and access-token authentication.

Installation

dotnet add package Soenneker.Shopify.HttpClients

Configuration

{
  "Shopify": {
    "AccessToken": "your-access-token",
    "StoreName": "your-store",
    "ApiVersion": "2026-07"
  }
}

This resolves to https://your-store.myshopify.com/admin/api/2026-07/graphql.json.

If you need full control over the endpoint, set Shopify:ClientBaseUrl instead:

{
  "Shopify": {
    "AccessToken": "your-access-token",
    "ClientBaseUrl": "https://your-store.myshopify.com/admin/api/2026-07/graphql.json"
  }
}

Usage

using Soenneker.Shopify.HttpClients.Abstract;
using Soenneker.Shopify.HttpClients.Registrars;

services.AddShopifyGraphQlHttpClientAsSingleton();

public sealed class ShopifyGraphQlSender
{
    private readonly IShopifyGraphQlHttpClient _shopify;

    public ShopifyGraphQlSender(IShopifyGraphQlHttpClient shopify)
    {
        _shopify = shopify;
    }

    public async Task<HttpResponseMessage> Send(
        HttpContent graphQlRequest,
        CancellationToken cancellationToken)
    {
        HttpClient client = await _shopify.Get(cancellationToken);
        return await client.PostAsync("", graphQlRequest, cancellationToken);
    }
}

The provider owns the cached HttpClient; disposing the provider removes and disposes that client. Scoped registration creates an independently owned client for each scope.

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 (1)

Showing the top 1 NuGet packages that depend on Soenneker.Shopify.HttpClients:

Package Downloads
Soenneker.Shopify.GraphQlClientUtil

Provides a lazily initialized, authenticated Shopify Admin GraphQL client.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.130 93 9/17/2026
4.0.129 77 9/16/2026
4.0.128 90 9/16/2026
4.0.127 87 9/16/2026
4.0.126 100 9/16/2026
4.0.125 89 9/15/2026
4.0.124 109 9/15/2026
4.0.123 138 9/13/2026
4.0.122 97 9/13/2026
4.0.121 99 9/13/2026
4.0.120 90 9/13/2026
4.0.119 98 9/12/2026
4.0.118 103 9/12/2026
4.0.117 88 9/12/2026
4.0.116 143 9/9/2026
4.0.115 107 9/9/2026
4.0.114 110 9/8/2026
4.0.113 127 9/8/2026
4.0.112 113 9/8/2026
4.0.111 111 9/7/2026
Loading failed