{"id":13748862,"url":"https://github.com/ScaleLeap/selling-partner-api-sdk","last_synced_at":"2025-05-09T11:31:30.954Z","repository":{"id":37051710,"uuid":"343629584","full_name":"ScaleLeap/selling-partner-api-sdk","owner":"ScaleLeap","description":"A fully typed TypeScript and Node.js SDK library for Amazon Selling Partner API","archived":false,"fork":false,"pushed_at":"2025-05-04T10:36:48.000Z","size":12789,"stargazers_count":71,"open_issues_count":12,"forks_count":28,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-04T11:27:55.262Z","etag":null,"topics":["amazon-mws","amazon-selling-partner","amazon-sp-api","selling-partner-api","sp-api"],"latest_commit_sha":null,"homepage":"https://npm.im/@scaleleap/selling-partner-api-sdk","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScaleLeap.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-02T03:09:05.000Z","updated_at":"2025-04-22T11:52:43.000Z","dependencies_parsed_at":"2024-03-20T23:30:36.170Z","dependency_job_id":"c2e53c90-c5d8-4576-a086-2f593c30a93a","html_url":"https://github.com/ScaleLeap/selling-partner-api-sdk","commit_stats":{"total_commits":813,"total_committers":10,"mean_commits":81.3,"dds":0.5854858548585486,"last_synced_commit":"3a0d69cd6e4df0dca66bc48cb12f806235fab7db"},"previous_names":[],"tags_count":97,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fselling-partner-api-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fselling-partner-api-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fselling-partner-api-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScaleLeap%2Fselling-partner-api-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScaleLeap","download_url":"https://codeload.github.com/ScaleLeap/selling-partner-api-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252330314,"owners_count":21730681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amazon-mws","amazon-selling-partner","amazon-sp-api","selling-partner-api","sp-api"],"created_at":"2024-08-03T07:00:51.071Z","updated_at":"2025-05-09T11:31:28.448Z","avatar_url":"https://github.com/ScaleLeap.png","language":"TypeScript","funding_links":[],"categories":["Docs"],"sub_categories":["Library"],"readme":"# Selling Partner API for Node.js\n\n[![NPM](https://img.shields.io/npm/v/@scaleleap/selling-partner-api-sdk)](https://npm.im/@scaleleap/selling-partner-api-sdk)\n[![License](https://img.shields.io/npm/l/@scaleleap/selling-partner-api-sdk)](./LICENSE)\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ScaleLeap/selling-partner-api-sdk/Release)](https://github.com/ScaleLeap/selling-partner-api-sdk/actions)\n[![Codecov](https://img.shields.io/codecov/c/github/scaleleap/selling-partner-api-sdk)](https://codecov.io/gh/ScaleLeap/selling-partner-api-sdk)\n[![Snyk](https://img.shields.io/snyk/vulnerabilities/github/scaleleap/selling-partner-api-sdk)](https://snyk.io/test/github/scaleleap/selling-partner-api-sdk)\n[![Semantic Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FScaleLeap%2Fselling-partner-api-sdk.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FScaleLeap%2Fselling-partner-api-sdk?ref=badge_shield)\n\n---\n\n- A fully typed TypeScript and Node.js SDK package for Amazon Selling Partner API\n- Uses models from [API model's repo](https://github.com/amzn/selling-partner-api-models) to generate classes automatically\n- Picks up changes and releases daily when/if models have drifted\n\n## Download \u0026 Installation\n\n```sh\nnpm i -s @scaleleap/selling-partner-api-sdk\n```\n\n## Getting Started\n\n### Prerequisites\n\nA few things to get started:\n\n- [Registering as a developer](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md#registering-as-a-developer)\n- [Registering your Hybrid Selling Partner API applications](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md#hybrid-selling-partner-api-applications)\n- [Authorizing Selling Partner API applications](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/developer-guide/SellingPartnerApiDeveloperGuide.md#authorizing-selling-partner-api-applications)\n\n### Authorizing Selling Partner API\n\nNote that it is outside the responsibility of this package to handle the authorization process.\n\nThis package assumes you have already acquired the access and refresh tokens either by going through\nthe OAuth flow or by using a self-authorized set of credentials.\n\n### Basic Usage\n\n```ts\nimport { SellersApiClient } from '@scaleleap/selling-partner-api-sdk'\n\nconst client = new SellersApiClient({\n  accessToken: 'Atza|...',\n\n  // Or use `amazonMarketplaces.CA.sellingPartner.region.endpoint`\n  // from `@scaleleap/amazon-marketplaces` package\n  basePath: 'https://sellingpartnerapi-na.amazon.com',\n\n  // Or use `amazonMarketplaces.CA.sellingPartner.region.awsRegion`\n  // from `@scaleleap/amazon-marketplaces` package\n  region: 'us-east-1',\n})\n\nconst marketplaceParticipations = await client.getMarketplaceParticipations()\n```\n\n---\n\nSee the full list of exported classes and types:\n[`src/api-models/index.ts`](src/api-models/index.ts).\n\nSee [@scaleleap/amazon-marketplaces](https://github.com/ScaleLeap/amazon-marketplaces)\ndocs for a database of constants about Amazon Marketplaces.\n\n### Documentation\n\n- [Automatically generated docs](https://selling-partner-api-sdk.scaleleap.org)\n\n## Contributing\n\nThis repository uses [Conventional Commit](https://www.conventionalcommits.org/) style commit messages.\n\n## Authors or Acknowledgments\n\n- Roman Filippov ([Scale Leap](https://www.scaleleap.com))\n- Toan Nguyen ([nguyentoanit](https://github.com/nguyentoanit))\n\n## License\n\nThis project is licensed under the MIT License.\n\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FScaleLeap%2Fselling-partner-api-sdk.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FScaleLeap%2Fselling-partner-api-sdk?ref=badge_large)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FScaleLeap%2Fselling-partner-api-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FScaleLeap%2Fselling-partner-api-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FScaleLeap%2Fselling-partner-api-sdk/lists"}