A modularized SDK library for Amazon Selling Partner API (fully typed in TypeScript)
To learn more about the Selling Partner API, visit the official Amazon documentation.
Also, see the generated documentation for each API client.
This SDK supports the following features:
This repository contains an API client for each of the available Selling Partner API version:
The API clients are automatically generated from the Swagger/OpenAPI models from the official models repository. A code generation workflow runs twice a day and will create a PR on this repository whenever there are changes to the models.
The SDK exposes notifications, reports and feeds schemas through @sp-api-sdk/schemas
.
It exposes the JSON schemas as well as typescript types.
For example, if you need the JSON schema for Vendor inventory reports:
import { Reports } from "@sp-api-sdk/schemas";
console.log(Reports.vendorInventoryReport);
If you need the typescript type:
import { Reports } from "@sp-api-sdk/schemas";
const report = (await getVendorInventoryReportData()) as Reports.VendorInventoryReport;
To see the code generation process, see the codegen module.
Some of the source Open API models are invalid (see the issues and PRs on the Amazon repository), so this SDK defines some patches to account for those errors.
Each patch files are JSON Patches operations (1 logical change per file).
You can browse all the active patches in the patches directory.
MIT
╚⊙ ⊙╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝
╚═(███)═╝