Amazon xml feed with mws api using PHP Client Library
Amazon xml feed with mws api using PHP Client Library
你好,我是亚马逊的新手 API,
我想使用 MWS 列出我的产品 API 来自我自己的产品提要 HTML application.I 已从此处下载开发人员资源
https://developer.amazonservices.com/api.html?group=bde§ion=feeds&version=latest
1.Edited ".config.inc.php" 来自 \src\MarketplaceWebService\Samples
2.Changed AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY 和 MERCHANT_ID
3.Edited SubmitFeedSample.php 文件并按照说明相应地删除注释并将方法更改为 _POST_PRODUCT_DATA_
4.Followed "Selling on Amazon Guide to 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.Tested 这个 XML 在 MWS Scratchpad 中,结果是
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.Added "SubmitFeedSample.php" $feed 变量中的 XML 代码(第 99 行)
7.Uploaded 我的 hostgator 服务器上 "PHP Client Library" 的所有文件
8.Browsed 到 firefox 中的文件
9.In firefox 它在服务响应中显示 "FeedProcessingStatus SUBMITTED"。
但是在完成所有这些之后,我无法在卖家中央帐户的 "Manage Inventory" 中看到产品。
最后一件事是如何在 [=44] 中使用 "_POST_PRODUCT_IMAGE_DATA_" 及其 xml(如 XML 指南所示) =]SubmitFeedSample.php 同时与 "_POST_PRODUCT_DATA_"
请提供帮助,因为他们没有简单的教程或视频来演示确切的过程。
你需要做两件事:
- 检查您提交的 Feed 是否真的得到了成功处理
- 您至少需要发送 3 个 Feed:产品数据、定价和库存数量。处理完这三个提要后,商品将显示在卖家中心。此处有更多详细信息:Correct Amazon MWS flow for item with existing ASIN
我也是亚马逊的新手 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>
你好,我是亚马逊的新手 API, 我想使用 MWS 列出我的产品 API 来自我自己的产品提要 HTML application.I 已从此处下载开发人员资源
https://developer.amazonservices.com/api.html?group=bde§ion=feeds&version=latest
1.Edited ".config.inc.php" 来自 \src\MarketplaceWebService\Samples
2.Changed AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY 和 MERCHANT_ID
3.Edited SubmitFeedSample.php 文件并按照说明相应地删除注释并将方法更改为 _POST_PRODUCT_DATA_
4.Followed "Selling on Amazon Guide to 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.Tested 这个 XML 在 MWS Scratchpad 中,结果是
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.Added "SubmitFeedSample.php" $feed 变量中的 XML 代码(第 99 行)
7.Uploaded 我的 hostgator 服务器上 "PHP Client Library" 的所有文件
8.Browsed 到 firefox 中的文件
9.In firefox 它在服务响应中显示 "FeedProcessingStatus SUBMITTED"。
但是在完成所有这些之后,我无法在卖家中央帐户的 "Manage Inventory" 中看到产品。
最后一件事是如何在 [=44] 中使用 "_POST_PRODUCT_IMAGE_DATA_" 及其 xml(如 XML 指南所示) =]SubmitFeedSample.php 同时与 "_POST_PRODUCT_DATA_"
请提供帮助,因为他们没有简单的教程或视频来演示确切的过程。
你需要做两件事:
- 检查您提交的 Feed 是否真的得到了成功处理
- 您至少需要发送 3 个 Feed:产品数据、定价和库存数量。处理完这三个提要后,商品将显示在卖家中心。此处有更多详细信息:Correct Amazon MWS flow for item with existing ASIN
我也是亚马逊的新手 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>