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?