0

我们想通过 Selling Partner API 更新仓库产品的信息(数量、价格等)。

目前,我们有以下代码段成功验证。

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)
    }
})()

但是,文档没有提到Amazon Renewed计划。我们如何更新库存?

4

0 回答 0