问题描述
我能够通过邮递员对 Walmart API 进行 API 调用,批量项目 Setup(Multiple) A POST request Response in anSuccessly 来自邮递员,但在 Walmart FeedId 中看到错误。我正在尝试通过 excel 的另一种方式,它运行良好,并成功地在沃尔玛发布了该产品。通过 API 无法在 Walmart 中发布产品,您可以修复错误吗?尽管我似乎一切都正确。
**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
解决方法
您的问题似乎是 ShippingWeight
无效。
他们的规格表说
"ShippingWeight": {
"type": "number","title": "Shipping Weight (lbs)","minimum": 0,"maximum": 10000000000000000,"exclusiveMaximum": false,"multipleOf": 0.001
},
您需要将 ShippingWeight": "1LB",
替换为 ShippingWeight": "1",
此外,如果 additionalOfferAttributes
为空,您也不需要发送,这不是必需的。