如何通过mws api从亚马逊的库存中删除产品
问题描述:
我正在使用亚马逊MWS的客户端库来检索竞争力的价格信息等。但我希望能够删除产品或从我的库存中删除它们通过api。我无法在文档或通过谷歌找到如何做到这一点。如何通过mws api从亚马逊的库存中删除产品
在这里找不到提及http://docs.developer.amazonservices.com/en_US/dev_guide/index.html 如何删除产品列表。
我觉得这SO发布Amazon api not deleting my products from inventory但似乎过时,我发现在文档的
<OperationType>Delete</OperationType>
赞赏任何线索没有相应的部分。 Thx,迈克。
答
您需要使用提要API并提交删除请求。这是身体对于两个skus的样子。
<?xml version="1.0" encoding="UTF-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>YOUR-MERCHANT-IDENTIFIER-GOES-HERE</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Delete</OperationType>
<Product>
<SKU>YOUR-FIRST-SKU-GOES-HERE</SKU>
</Product>
</Message>
<Message>
<MessageID>2</MessageID>
<OperationType>Delete</OperationType>
<Product>
<SKU>YOUR-SECOND-SKU-GOES-HERE</SKU>
</Product>
</Message>
</AmazonEnvelope>
这样做。谢谢。 –