亚马逊API不会从库存中删除我的产品

时间:2014-12-04 10:19:23

标签: php amazon amazon-mws

我发送$ feed =

<<<EOD
<?xml version="1.0"?>
<AmazonEnvelope xsi:noNamespaceSchemaLocation="amzn-envelope.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Header>
    <DocumentVersion>1.01</DocumentVersion>
    <MerchantIdentifier>XXMYMERCHANTXX</MerchantIdentifier>
  </Header>
  <MessageType>Product</MessageType>
EOD;
foreach($skus as $k => $v) {
$feed = $feed . <<<EOD

  <Message>
    <MessageID>$count</MessageID>
    <OperationType>Delete</OperationType>
    <Product>
      <SKU>$k</SKU>
    </Product>
  </Message>
EOD;
$count++;
}
$feed = $feed . <<<EOD
</AmazonEnvelope>
EOD;

as _POST_PRODUCT_DATA _

我得到报告结果:

<?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.02</DocumentVersion>
        <MerchantIdentifier>XXMYMERCHANTXX</MerchantIdentifier>
    </Header>
    <MessageType>ProcessingReport</MessageType>
    <Message>
        <MessageID>1</MessageID>
        <ProcessingReport>
            <DocumentTransactionID>blah</DocumentTransactionID>
            <StatusCode>Complete</StatusCode>
            <ProcessingSummary>
                <MessagesProcessed>293</MessagesProcessed>
                <MessagesSuccessful>293</MessagesSuccessful>
                <MessagesWithError>0</MessagesWithError>
                <MessagesWithWarning>0</MessagesWithWarning>
            </ProcessingSummary>
        </ProcessingReport>
    </Message>
</AmazonEnvelope>

然而,当我在网上查看我的库存和/或从亚马逊下载另一个库存清单时,我刚发送删除请求的skus仍在那里。我正在阅读并重新阅读该指南,我确信我正在正确地发送所有内容,这在报告中的成功消息中得到了加强。有什么想法吗?

由于

1 个答案:

答案 0 :(得分:2)