1

我能够通过邮递员对沃尔玛 API 进行 API 调用,批量项目设置(多个) POST 请求响应在邮递员中成功出现,但在沃尔玛 FeedId 中看到错误。我正在尝试通过 excel 的另一种方式,它运行良好,并成功地在沃尔玛发布了产品。通过 API 无法在沃尔玛中发布产品,您可以修复错误。即使我似乎一切都正确。

**HTTP REQUEST**
[enter image description here][1]
[https://marketplace.walmartapis.com/v3/feeds?feedType=item][1]

**METHOD**

POST


**HTTP RESPONSE STATUS**

200 OK

**HTTP RESPONSE BODY**

{
    "feedId": "18486EF565B046D88641274001003195@AU8BCgA",
    "additionalAttributes": null,
    "errors": null
}

**REQUEST HEADERS**

Authorization :  "XXXXXXXXXXXXX"
WM_SEC.ACCESS_TOKEN: "XXXXXXXXXXXXXXXXXX"
WM_QOS.CORRELATION_ID: {my arbitrary text key}
WM_SVC.NAME: Walmart Marketplace
Accept: application/JSON

**POST PAYLOAD**
<pre><code>{
  "MPItem": [
    {
      "Item": {
        "sku": "xxxxxxxx",
        "ShippingWeight": "1LB",
        "price": " ",
        "productIdentifiers": {
          "productIdType": "UPC",
          "productId": "xxxxxxx"
        },
        "productCategory": "xxxxxxxx",
        "asin": "",
        "additionalProductAttributes": [
          {
            "productAttributeValue": "",
            "productAttributeName": ""
          }
        ],
        "additionalOfferAttributes": [
          {
            "additionalOfferAttributeName": "",
            "additionalOfferAttributeValue": ""
          }
        ]
      }
    }
  ],
  "MPItemFeedHeader": {
    "locale": "en",
    "sellingChannel": "mpsetupbymatch",
    "version": "1.0",
    "processMode": "REPLACE",
    "subset": "EXTERNAL",
    "Mart": "WALMART_US"
  } 
}</pre></code>

 


  [1]: https://i.stack.imgur.com/YwaMJ.png
4

1 回答 1

0

你的问题似乎ShippingWeight是无效的。

他们的规格表说

"ShippingWeight": {
    "type": "number", 
    "title": "Shipping Weight (lbs)", 
    "minimum": 0, 
    "maximum": 10000000000000000, 
    "exclusiveMaximum": false, 
    "multipleOf": 0.001
}, 

您需要替换ShippingWeight": "1LB",ShippingWeight": "1",

如果它是空的,你也不需要发送additionalOfferAttributes,它不是必需的。

于 2021-07-30T19:55:03.917 回答