【发布时间】:2017-03-25 00:16:18
【问题描述】:
我正在向亚马逊成功发送产品信息、价格信息、图片信息和库存信息,其中包含保修信息以外的所有字段。现在我一直在发送 SellerWarrantyDescription 字段,我不知道应该如何在我的 xml 提要中指定该字段并将其发送到 Amazon API。我从Amazon documentation link 和亚马逊论坛中找到了我需要的大部分信息。
【问题讨论】:
标签: amazon-mws
我正在向亚马逊成功发送产品信息、价格信息、图片信息和库存信息,其中包含保修信息以外的所有字段。现在我一直在发送 SellerWarrantyDescription 字段,我不知道应该如何在我的 xml 提要中指定该字段并将其发送到 Amazon API。我从Amazon documentation link 和亚马逊论坛中找到了我需要的大部分信息。
【问题讨论】:
标签: amazon-mws
我找到了解决方案。保修信息已通过,如下例所示。
<?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>M_EXAMPLE_123456</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<PurgeAndReplace>false</PurgeAndReplace>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>34L9195-new</SKU>
<StandardProductID>
<Type>ASIN</Type>
<Value>B003GDHZTM</Value>
</StandardProductID>
<ProductTaxCode>A_GEN_NOTAX</ProductTaxCode>
<Condition>
<ConditionType>New</ConditionType>
</Condition>
<DescriptionData>
<Title>IBM 34L9195 9GB 10K 80PIN HARD DRIVE</Title>
<Brand>IBM</Brand>
<Description>IBM 34L9195 9GB 10K 80PIN HARD DRIVE</Description>
<BulletPoint>Covered by comprehensive warranty</BulletPoint>
<BulletPoint>Ships fast</BulletPoint>
<BulletPoint>Refurbished by certified technicians</BulletPoint>
<ShippingWeight unitOfMeasure="LB">5</ShippingWeight>
<Manufacturer>IBM</Manufacturer>
<MfrPartNumber>34L9195</MfrPartNumber>
<ItemType>Computer-Accessories</ItemType>
</DescriptionData>
<ProductData>
<Computers>
<ProductType>
<ComputerComponent></ComputerComponent>
</ProductType>
<SellerWarrantyDescription>**This is the field I was looking for**</SellerWarrantyDescription>
</Computers>
</ProductData>
</Product>
</Message>
</AmazonEnvelope>
XML 元素的序列对亚马逊很重要,否则它将不起作用。尽管以下元素是空的,但是在通过保修元素之前,它们是必需的。
<ProductType>
<ComputerComponent></ComputerComponent>
</ProductType>
【讨论】: