您好我是Amazon API新手, 我想使用来自我自己的HTML应用程序的MWS API产品供稿来列出我的产品。我从这里下载了开发人员资源
https://developer.amazonservices.com/api.html?group=bde§ion=feeds&version=latest
1.从 \ src \ MarketplaceWebService \ Samples
编辑“。config.inc.php”2.Changed AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY和MERCHANT_ID
3.编辑 SubmitFeedSample.php 文件并按照说明操作并相应删除评论,并将方法更改为 _POST_PRODUCT_DATA _
4.关注“在亚马逊上销售XML指南”中的教程以生成此XML
<?xml version="1.0" ?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>mymerchantid</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<PurgeAndReplace>true</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>720656549</SKU>
<DescriptionData>
<Title>GIRLS S/S PRINTED COTTON AND PLITED FROCK WITH CONTRAST FRONT BELT AND BOW</Title>
<Brand>mybrand</Brand>
<Description>The Girls Racer Back Neck Tie up Tunic from Oye is the perfect choice to dress your little girl while heading out for the day.It is made of soft and pliable material, which ensures to keep her fresh and comfortable throughout the day.Pair this dress with cute ballerinas and matching hair accessories to complete the casual look.</Description>
<BulletPoint>Made in India</BulletPoint>
<BulletPoint>500 thread count</BulletPoint>
<BulletPoint>plain weave (percale)</BulletPoint>
<BulletPoint>100% Egyptian cotton</BulletPoint>
<Manufacturer>mybrand</Manufacturer>
<SearchTerms>clothes</SearchTerms>
<SearchTerms>baby girl</SearchTerms>
<ItemType>Girls</ItemType>
<IsGiftWrapAvailable>false</IsGiftWrapAvailable>
<IsGiftMessageAvailable>false</IsGiftMessageAvailable>
</DescriptionData>
<ProductData>
<Home>
<Parentage>variation-parent</Parentage>
<VariationData>
<VariationTheme>Size-Color</VariationTheme>
</VariationData>
<Material>cotton</Material>
<ThreadCount>500</ThreadCount>
</Home>
</ProductData>
</Product>
</Message>
<Message>
</AmazonEnvelope>
5.在 MWS Scratchpad 中测试此XML,结果为
Response (200)
<?xml version="1.0"?>
<SubmitFeedResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
<SubmitFeedResult>
<FeedSubmissionInfo>
<FeedSubmissionId>50081******</FeedSubmissionId>
<FeedType>_POST_PRODUCT_DATA_</FeedType>
<SubmittedDate>*********</SubmittedDate>
<FeedProcessingStatus>_SUBMITTED_</FeedProcessingStatus>
</FeedSubmissionInfo>
</SubmitFeedResult>
<ResponseMetadata>
<RequestId>*****************</RequestId>
</ResponseMetadata>
</SubmitFeedResponse>
6.在 $ feed 变量(第99行)的“SubmitFeedSample.php”中添加此XML代码
7.在hostgator服务器上上传“PHP Client Library”的所有文件
8.浏览到firefox中的文件
9.在Firefox中,它在服务响应中显示“FeedProcessingStatus SUBMITTED”。
但在完成所有这些后,我无法在卖家中央账户的“管理库存”中看到产品。
最后一点如何使用“POST_PRODUCT_DATA _”及其xml(如XML指南中所示)“SubmitFeedSample.php 同时使用”_ POST_PRODUCT_DATA _“
请提供帮助,因为它们不是简单的教程或视频来演示确切的过程。
答案 0 :(得分:1)
你需要做两件事:
答案 1 :(得分:0)
我也是亚马逊API的新手,并使用以下架构。 它工作正常。
<?xml version="1.0" encoding="iso-8859-1"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>YOUR_MERCHANT_ID</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<PurgeAndReplace>false</PurgeAndReplace><Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>25075-9x12</SKU>
<StandardProductID>
<Type>ASIN</Type>
<Value>B01MCR4YC5</Value>
</StandardProductID>
<ProductTaxCode>A_GEN_NOTAX</ProductTaxCode>
<DescriptionData>
<Title>Anam Black Large Rug</Title>
<Brand>Alliyah Rugs</Brand>
<Description>
The Alliyah Collection offers high quality, value and integrity that seems to been lost in recent times by most manufactures. The Anam Black Large Rug is made of first grade New-Zealand blend wool which is Hand washed, Hand carved and Hand finished. The entire collection is 100% Handmade.</Description>
<ItemType>New</ItemType>
</DescriptionData>
</Product>
</Message></AmazonEnvelope>