gpt4 book ai didi

amazon-mws - 通过提交 Feed 的亚马逊添加产品流程

转载 作者:行者123 更新时间:2023-12-04 21:03:03 26 4
gpt4 key购买 nike

我在亚马逊卖家中心有专业账户。我没有获得测试账户,我试图获得测试账户(通过联系 Amazon.com 的技术账户管理)但没有成功。所以我获得了 40 美元的信用并开始尝试开发。我尝试通过提交提要来添加产品。请求是下一个

<?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>A2HGOM5XPL5UHF</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<PurgeAndReplace>false</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>11MYSKU11</SKU>
<StandardProductID>
<Type>ASIN</Type>
<Value>B005S25V5Z</Value>
</StandardProductID>
<ProductTaxCode>A_GEN_NOTAX</ProductTaxCode>
<DescriptionData>
<Title>Example product 2</Title>
<Brand>Example product Brand</Brand>
<Description>A really cool product with 2 batteries and widgets</Description>
<BulletPoint>Example Bullet Point 1</BulletPoint>
<BulletPoint>Example Bullet Point 2</BulletPoint>
<PackageWeight unitOfMeasure="OZ">44</PackageWeight>
<MSRP currency="USD">111.11</MSRP>
<Manufacturer>ACME</Manufacturer>
<MfrPartNumber>123456789</MfrPartNumber>
<SearchTerms>123456789</SearchTerms>
<SearchTerms>ACME</SearchTerms>
<PlatinumKeywords>155385011</PlatinumKeywords>
<ItemType>Item_Type_Enum</ItemType>
<IsGiftWrapAvailable>false</IsGiftWrapAvailable>
<IsGiftMessageAvailable>false</IsGiftMessageAvailable>
</DescriptionData>
<ProductData>
<Health>
<ProductType>
<HealthMisc>
<Ingredients>Example Ingredients</Ingredients>
<Directions>Example Directions</Directions>
</HealthMisc>
</ProductType>
</Health>
</Product>
</Message>
</AmazonEnvelope>

然后我尝试 GetSubmissionList() 它首先返回请求状态为 SUBMIT 然后是 DONE。但是我找不到它添加的位置。我的店里没有产品,尽管我已按要求插入了我的凭据。实际上,GetFeedSubmissionResult() 不返回任何内容。我的错在什么地方,又增加到什么地方了?

最佳答案

我发现了问题。我尝试插入真实产品的虚构数据,但它有效。所以正确的xml请求是mercahnt identifier为mercant id。

<?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>xxxxxxxxxx</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<PurgeAndReplace>false</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>RO7WA11930KB1CASA</SKU>
<StandardProductID>
<Type>UPC</Type>
<Value>4015643103921</Value>
</StandardProductID>
<ProductTaxCode>A_GEN_NOTAX</ProductTaxCode>
<DescriptionData>
<Title>Example Product Title</Title>
<Brand>Example Product Brand</Brand>
<Description>This is an example product description.</Description>
<BulletPoint>Example Bullet Point 1</BulletPoint>
<BulletPoint>Example Bullet Point 2</BulletPoint>
<MSRP currency="USD">25.19</MSRP>
<Manufacturer>Example Product Manufacturer</Manufacturer>
<ItemType>example-item-type</ItemType>
</DescriptionData>
<ProductData>
<Health>
<ProductType>
<HealthMisc>
<Ingredients>Example Ingredients</Ingredients>
<Directions>Example Directions</Directions>
</HealthMisc>
</ProductType>
</Health>
</ProductData>
</Product>
</Message>
</AmazonEnvelope>

结果 - 新产品添加到 Inventary

关于amazon-mws - 通过提交 Feed 的亚马逊添加产品流程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18248174/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com