Soenneker.Stripe.OpenApiClient 11.0.152

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

A Kiota-generated .NET client for calling Stripe endpoints described by Stripe's OpenAPI schema.

Installation

dotnet add package Soenneker.Stripe.OpenApiClient

Usage

using System.Net.Http.Headers;
using Microsoft.Kiota.Abstractions.Authentication;
using Microsoft.Kiota.Http.HttpClientLibrary;
using Soenneker.Stripe.OpenApiClient;
using Soenneker.Stripe.OpenApiClient.Models;

var httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.Authorization =
    new AuthenticationHeaderValue("Bearer", stripeSecretKey);

var authentication = new AnonymousAuthenticationProvider();
var adapter = new HttpClientRequestAdapter(authentication, httpClient: httpClient);
var stripe = new StripeOpenApiClient(adapter);

Balance? balance = await stripe.V1.Balance.GetAsync(
    new GetBalanceXWwwFormUrlencodedRequestRequestBody(),
    cancellationToken: cancellationToken);

Keep the HttpClient, request adapter, and StripeOpenApiClient for reuse instead of constructing them per request. The generated API follows Stripe's OpenAPI operation and schema names, which can differ from the hand-written Stripe.net SDK.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Soenneker.Stripe.OpenApiClient:

Package Downloads
Soenneker.Stripe.Client

Provides a lazily initialized Stripe OpenAPI client with managed HTTP client ownership.

Soenneker.Extensions.Stripe.Customer

A collection of helpful Stripe Customer extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.152 4 11/14/2026
11.0.151 570 11/11/2026
11.0.149 1,176 11/3/2026
11.0.148 450 11/2/2026
11.0.147 271 10/31/2026
11.0.146 124 10/30/2026
11.0.145 421 10/27/2026
11.0.144 218 10/27/2026
11.0.143 519 10/26/2026
11.0.142 127 10/26/2026
4.0.141 1,069 10/24/2026
4.0.140 403 10/24/2026
4.0.139 170 10/14/2026
4.0.138 108 10/14/2026
4.0.133 101 10/13/2026
4.0.132 113 10/13/2026
4.0.131 104 10/12/2026
4.0.130 113 10/10/2026
4.0.129 191 9/30/2026
4.0.128 118 9/25/2026
Loading failed

Update Soenneker.Stripe.OpenApiClient