我正在向除了保修信息以外的所有字段向亚马逊成功发送产品Feed,价格Feed,图片Feed和广告资源Feed。现在我被困在发送SellerWarrantyDescription字段,我不知道如何在我的xml提要上指定此字段并将其发送到Amazon API。我从这个Amazon documentation link和亚马逊论坛找到了我需要的大部分信息。
答案 0 :(得分:0)
我找到了解决方案。保修信息已通过,如下所示。
<?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>