📦 A fully typed TypeScript and Node.js SDK library for Amazon Selling Partner API
npm install @scaleleap/selling-partner-api-sdk






---
- A fully typed TypeScript and Node.js SDK package for Amazon Selling Partner API
- Uses models from API model's repo to generate classes automatically
- Picks up changes and releases daily when/if models have drifted
``sh`
npm i -s @scaleleap/selling-partner-api-sdk
A few things to get started:
- Registering as a developer
- Registering your Hybrid Selling Partner API applications
- Authorizing Selling Partner API applications
Note that it is outside the responsibility of this package to handle the authorization process.
This package assumes you have already acquired the access and refresh tokens either by going through
the OAuth flow or by using a self-authorized set of credentials.
`ts
import { SellersApiClient } from '@scaleleap/selling-partner-api-sdk'
const client = new SellersApiClient({
accessToken: 'Atza|...',
// Or use amazonMarketplaces.CA.sellingPartner.region.endpoint@scaleleap/amazon-marketplaces
// from package
basePath: 'https://sellingpartnerapi-na.amazon.com',
// Or use amazonMarketplaces.CA.sellingPartner.region.awsRegion@scaleleap/amazon-marketplaces
// from package
region: 'us-east-1',
})
const marketplaceParticipations = await client.getMarketplaceParticipations()
`
---
See the full list of exported classes and types:
src/api-models/index.ts`.
See @scaleleap/amazon-marketplaces
docs for a database of constants about Amazon Marketplaces.
- Automatically generated docs
This repository uses Conventional Commit style commit messages.
- Roman Filippov (Scale Leap)
- Toan Nguyen (nguyentoanit)
This project is licensed under the MIT License.
