Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

53
Views
How to update products via Amazon Renewed programme using Selling Partner API?

We want to update the warehouse products' information (quantity, price etc) via the Selling Partner API.

Currently, we have the following snippet which authenticates successfully.

const SellingPartnerAPI = require('amazon-sp-api');

process.env.SELLING_PARTNER_APP_CLIENT_ID = "..."
process.env.SELLING_PARTNER_APP_CLIENT_SECRET = "..."
process.env.AWS_ACCESS_KEY_ID = "..."
process.env.AWS_SECRET_ACCESS_KEY = "..."
process.env.AWS_SELLING_PARTNER_ROLE = "SellingPartnerAPIRole"

const TOKEN = '...';

(async () => {
    try {
        let sellingPartner = new SellingPartnerAPI({
          region: "eu",
          refresh_token: TOKEN
        });
        let res = await sellingPartner.callAPI({
          operation:'????',
          endpoint:'???',
          query: { sku, price, quantity, asin }
        });
        console.log(res);
    } catch (e) {
        console.error(e)
    }
})()

However, the documentation does not mention the Amazon Renewed programme. How can we update the inventory?

7 months ago ยท Juan Pablo Isaza
Answer question
Find remote jobs