JSPM

  • Created
  • Published
  • Downloads 38
  • Score
    100M100P100Q97328F
  • License MIT

The Selling Partner API for Listings Restrictions provides programmatic access to restrictions on Amazon catalog listings. For more information, see the Listings Restrictions API Use Case Guide.

Package Exports

  • @sp-api-sdk/listings-restrictions-api-2021-08-01

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sp-api-sdk/listings-restrictions-api-2021-08-01) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

listings-restrictions-api-2021-08-01

The Selling Partner API for Listings Restrictions provides programmatic access to restrictions on Amazon catalog listings.

For more information, see the Listings Restrictions API Use Case Guide.

Installing

yarn add @sp-api-sdk/listings-restrictions-api-2021-08-01
npm install @sp-api-sdk/listings-restrictions-api-2021-08-01

Getting Started

import {SellingPartnerApiAuth} from '@sp-api-sdk/auth'
import {ListingsRestrictionsApiClient} from '@sp-api-sdk/listings-restrictions-api-2021-08-01'

const auth = new SellingPartnerApiAuth({
  clientId: '',
  clientSecret: '',
  refreshToken: '',
  secretAccessKey: '',
  accessKeyId: '',
  region: '',
  role: {
    arn: '',
  }
})

const client = new ListingsRestrictionsApiClient({
  auth,
  region: 'eu' // or 'eu-west-1'
})

Handle Rate Limiting

If you want to let the SDK retry after each 429 responses, instanciate the client like this:

const client = new ListingsRestrictionsApiClient({
  auth,
  region: 'eu',
  rateLimiting: {
    retry: true,
    onRetry: (retryInfo) => console.log(retryInfo) // Optional
  }
})

The SDK gets the rate limits for each routes from the API documentation

API documentation

See here