Soenneker.Stripe.OpenApiClient 4.0.129

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.129
                    
NuGet\Install-Package Soenneker.Stripe.OpenApiClient -Version 4.0.129
                    
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.129" />
                    
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.129" />
                    
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.129
                    
#r "nuget: Soenneker.Stripe.OpenApiClient, 4.0.129"
                    
#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.129
                    
#: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.129
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Stripe.OpenApiClient&version=4.0.129
                    
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 122 11/20/2026
11.0.155 367 11/18/2026
11.0.154 262 11/18/2026
11.0.153 349 11/17/2026
11.0.152 637 11/14/2026
11.0.151 831 11/11/2026
11.0.149 1,253 11/3/2026
11.0.148 456 11/2/2026
11.0.147 277 10/31/2026
11.0.146 131 10/30/2026
11.0.145 425 10/27/2026
11.0.144 222 10/27/2026
11.0.143 524 10/26/2026
11.0.142 131 10/26/2026
4.0.141 1,073 10/24/2026
4.0.140 408 10/24/2026
4.0.139 174 10/14/2026
4.0.138 113 10/14/2026
4.0.133 105 10/13/2026
4.0.129 193 9/30/2026
Loading failed