提问人:David Martín Vergués 提问时间:11/16/2023 最后编辑:David Martín Vergués 更新时间:11/16/2023 访问量:26
Amzon SP-API:通过 python 在多市场中使用 JSON_LISTINGS_FEED 重新定价
Amzon SP-API : repricing using JSON_LISTINGS_FEED in multi-marketplaces with python
问:
我正在尝试使用 PYTHON-AMAZON-SP-API 通过 API FEED 使用 feedtype = JSON_LISTINGS_FEED 更新多个市场的价格。
我尝试了如下,它工作正常,但我需要将该价格分散到其他市场,我怎样才能实现?我必须为每个市场创建一个 Feed?
feed_json =
{
"header": {
"sellerId": "xxxxxx",
"version": "2.0",
"issueLocale": "es_ES"
},
"messages": [
{
"messageId": 1,
"sku": "SKU-1",
"operationType": "PARTIAL_UPDATE",
"productType": "PRODUCT",
"attributes": {
"purchasable_offer": [
{
"our_price": [
{
"schedule": [
{
"value_with_tax": 100
}
]
}
],
"currency": "EUR",
"marketplace_id": Marketplaces.ES.marketplace_id
}
]
}
}
]
}
feed_json_str = json.dumps(feed_json)
feed_json_bytes = BytesIO(bytes(feed_json_str, "utf-8"))
feed_json_bytes.seek(0)
try:
feeds_api = Feeds(credentials=MYCREDENTIALS, marketplace=Marketplaces.ES)
response = feeds_api.submit_feed(
"JSON_LISTINGS_FEED", feed_json_bytes, "application/json; charset=UTF-8")
答: 暂无答案
评论