Soenneker.Stripe.OpenApiClient 4.0.131

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Stripe.OpenApiClient --version 4.0.131
                    
NuGet\Install-Package Soenneker.Stripe.OpenApiClient -Version 4.0.131
                    
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="4.0.131" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Stripe.OpenApiClient" Version="4.0.131" />
                    
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 4.0.131
                    
#r "nuget: Soenneker.Stripe.OpenApiClient, 4.0.131"
                    
#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@4.0.131
                    
#: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=4.0.131
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Stripe.OpenApiClient&version=4.0.131
                    
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 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 (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.156 374 11/20/2026
11.0.155 487 11/18/2026
11.0.154 359 11/18/2026
11.0.153 438 11/17/2026
11.0.152 649 11/14/2026
11.0.151 836 11/11/2026
11.0.149 1,256 11/3/2026
11.0.148 462 11/2/2026
11.0.147 282 10/31/2026
11.0.146 137 10/30/2026
11.0.145 428 10/27/2026
11.0.144 227 10/27/2026
11.0.143 527 10/26/2026
11.0.142 140 10/26/2026
4.0.141 1,078 10/24/2026
4.0.140 412 10/24/2026
4.0.139 178 10/14/2026
4.0.138 121 10/14/2026
4.0.133 110 10/13/2026
4.0.131 114 10/12/2026
Loading failed