software.amzn.spapi
1.14.0
dotnet add package software.amzn.spapi --version 1.14.0
NuGet\Install-Package software.amzn.spapi -Version 1.14.0
<PackageReference Include="software.amzn.spapi" Version="1.14.0" />
<PackageVersion Include="software.amzn.spapi" Version="1.14.0" />
<PackageReference Include="software.amzn.spapi" />
paket add software.amzn.spapi --version 1.14.0
#r "nuget: software.amzn.spapi, 1.14.0"
#:package software.amzn.spapi@1.14.0
#addin nuget:?package=software.amzn.spapi&version=1.14.0
#tool nuget:?package=software.amzn.spapi&version=1.14.0
C# SDK for Selling Partner API
The Selling Partner API SDK for C# enables you to easily connect your C# application to Amazon's REST-based Selling Partner API.
Getting started
Credentials
Before you can use the SDK, you need to be registered as a Selling Partner API developer. If you haven't done that yet, please follow the instructions in the SP-API Registration Overview. You also need to register your application to get valid credentials to call SP-API. If you haven't done that yet, please follow the instructions in Registering your Application. If you are already registered successfully, you can find instructions on how to view your credentials in Viewing your Application Information and Credentials.
Minimum requirements
To run the SDK you need dotnet 7.0 or higher.
Integrate the SDK
- Find the latest version number here.
- Add the dependency to your project
NuGet
Add the following lines to the dependencies in your yourProject.csproj file:
<ItemGroup>
<Compile Include="Yourtest.cs" />
<PackageReference Include="software.amzn.spapi" Version="1.1.2" />
</ItemGroup>
Use the SDK
In order to call one of the APIs included in the Selling Partner API, you need to:
- Configure credentials (Note: Use your individual credentials for
clientId,clientSecretandrefreshToken) - Create an instance for a specific API
- Call an operation
For an example, refer to the following sample code for connecting to Sellers API:
using System;
using System.IO;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Reflection;
using RestSharp;
using software.amzn.spapi;
using software.amzn.spapi.Client;
using software.amzn.spapi.Api;
using software.amzn.spapi.Model;
using Amazon.SellingPartnerAPIAA;
using software.amzn.spapi.Api.sellers.v1;
using software.amzn.spapi.Model.sellers.v1;
using System.Threading;
// Configure your LWA credentials
LWAAuthorizationCredentials lwaAuthorizationCredentials = new LWAAuthorizationCredentials
{
ClientId = "yourClientId",
ClientSecret = "YourClientSecret",
RefreshToken = "YourRefreshToken",
Endpoint = new Uri("https://api.amazon.com/auth/o2/token")
};
// Create an instance of the Sellers API
SellersApi sellersApi = new SellersApi.Builder()
.SetLWAAuthorizationCredentials(lwaAuthorizationCredentials)
.Build();
// Call operation
GetMarketplaceParticipationsResponse result = sellersApi.GetMarketplaceParticipations();
Console.WriteLine(result.ToJson());
Giving Feedback
We need your help in making this SDK great. Please participate in the community and contribute to this effort by submitting issues, participating in discussion forums and submitting pull requests through the following channels:
Submit issues - this is the preferred channel to interact with our team Articulate your feature request or upvote existing ones on our Issues page
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net7.0
- JsonSubTypes (>= 2.0.1)
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 8.1.0)
- RestSharp (>= 112.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.14.0 | 286 | 11/3/2026 |
| 1.13.0 | 1,196 | 10/2/2026 |
| 1.12.0 | 220 | 8/27/2026 |
| 1.11.0 | 648 | 8/7/2026 |
| 1.10.0 | 552 | 7/31/2026 |
| 1.9.0 | 1,600 | 5/29/2026 |
| 1.8.0 | 2,536 | 5/4/2026 |
| 1.7.0 | 4,569 | 2/2/2026 |
| 1.6.1 | 263 | 1/12/2026 |
| 1.6.0 | 2,828 | 10/7/2025 |
| 1.2.0 | 3,450 | 8/5/2025 |
| 1.1.2 | 3,631 | 6/23/2025 |
| 1.1.1 | 418 | 6/11/2025 |
| 1.1.0 | 469 | 5/30/2025 |
Latest release notes can be found here: https://github.com/amzn/selling-partner-api-sdk/releases/latest