Amazon SP-API putListingsItems 调用问题:负载无效

问题描述 投票:0回答:1

我正在尝试列出亚马逊目录中已存在的产品的报价。我已完成所有必要的步骤来收集拨打此电话所需的所有信息。但是,当我尝试通过 Postman 执行它时,我收到以下响应:

{
    "errors": [
        {
            "code": "InvalidInput",
            "message": "The provided payload is invalid.",
            "details": ""
        }
    ]
}

我的端点 URL 是:https://ellingpartnerapi-eu.amazon.com/listings/2021-08-01/items/{{sellerId}}/1031300?marketplaceIds={{marketplaceId}}

我的方法是 PUT,我的正文设置为 raw(JSON):

{
  "productType": "PRODUCT",
  "requirements": "LISTING_OFFER_ONLY",
  "attributes": {
        "merchant_suggested_asin": [
            {
                "value" : "B09K6F1W42",
                "marketplace_id": "{{marketplaceId}}"
            }
        ],
        "condition_type": [
            {
                "value": "new_new",
                "marketplace_id": "{{marketplaceId}}"
            }
        ],
        "purchasable_offer":[
            {
                "currency": "EUR",
                "our_price": {
                  "schedule": [
                    {
                      "value_with_tax": "100.00"
                    }
                  ]
                },
               "marketplace_id": "{{marketplaceId}}"
            }
        ],
        "fulfillment_availability": [
            {
                "fulfillment_channel_code": "DEFAULT",
                "quantity": "1",
                "is_inventory_available": false
            }
        ]
    }
}
postman amazon-selling-partner-api
1个回答
0
投票

我成功执行了呼叫并收到了“已接受”状态。不幸的是,并不具备所有所需的属性。我从有效负载中删除了“purchasable_offer”和“fulfillment_availability”属性,并且调用成功。然后可以通过补丁调整价格和数量。

© www.soinside.com 2019 - 2024. All rights reserved.