我们希望通过销售合作伙伴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)
}
})()
但是,文档中没有提到
亚马逊续订
程序我们如何更新库存?