3
我送$飼料=亞馬遜API不刪除我的產品庫存
<<<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;
爲_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仍然存在。我閱讀並重新閱讀了指南,我確信我正確地發送了所有內容,而報告中的成功信息加強了這一點。有任何想法嗎?
感謝
你只有一個產品試過這種https://temboo.com/library/Library/Amazon/Marketplace/Feeds/DeleteInventoryItems/它真的很好庫? – baao 2014-12-04 10:25:27
我實際上沒有,我會嘗試與靜態提要,看看是否有任何區別。謝謝。 – 2014-12-04 10:28:33
同樣的結果,這次只有一個成功消息,但SKU仍在我的庫存中。 – 2014-12-04 10:45:54