Overview of the Selling Partner API JavaScript client library
mainThis library simplifies SP-API development for Node.js (v18+) by providing a generated SDK that handles HTTP communication via superagent.
Key features include:
- LWA Helper: Automates the Login with Amazon (LWA) OAuth token refresh flow.
- Header Management: Automatically includes the required
x-amz-access-tokenheader in requests. - RDT Support: Simplifies calls to "Restricted Operations" by combining the two-step process (retrieving a Restricted Data Token via the Tokens API and then calling the protected operation) into a single library call.