Soenneker.Stripe.OpenApiClient 11.0.147

Prefix Reserved
dotnet add package Soenneker.Stripe.OpenApiClient --version 11.0.147
                    
NuGet\Install-Package Soenneker.Stripe.OpenApiClient -Version 11.0.147
                    
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.147" />
                    
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.147" />
                    
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.147
                    
#r "nuget: Soenneker.Stripe.OpenApiClient, 11.0.147"
                    
#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.147
                    
#: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.147
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Stripe.OpenApiClient&version=11.0.147
                    
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.147 100 10/31/2026
11.0.146 58 10/30/2026
11.0.145 298 10/27/2026
11.0.144 178 10/27/2026
11.0.143 451 10/26/2026
11.0.142 116 10/26/2026
4.0.141 1,026 10/24/2026
4.0.140 384 10/24/2026
4.0.139 161 10/14/2026
4.0.138 93 10/14/2026
4.0.133 89 10/13/2026
4.0.132 103 10/13/2026
4.0.131 93 10/12/2026
4.0.130 103 10/10/2026
4.0.129 183 9/30/2026
4.0.128 115 9/25/2026
4.0.127 106 9/24/2026
4.0.126 106 9/24/2026
4.0.125 110 9/21/2026
4.0.124 131 9/15/2026
Loading failed

Update Soenneker.Stripe.OpenApiClient