尝试使用Amazon mws feed api上传产品,但我的请求被拒绝了。来自Amazon的错误消息说,我需要指定度量单位,但在架构发布的任何地方都找不到unitOfmeasure的有效选项。
这是我要寄给亚马逊的尸体:
<?xml version='1.0' encoding='iso-8859-1'?>
<AmazonEnvelope>
<Header>
<DocumentVersion>1.01</DocumentVersion>
<MerchantIdentifier>A326GY9JGCP2ET</MerchantIdentifier>
</Header>
<MessageType>Product</MessageType>
<Message>
<MessageID>1</MessageID>
<OperationType>Update</OperationType>
<Product>
<SKU>cpa56309</SKU>
<StandardProductID>
<Type>UPC</Type>
<Value>7426895714885</Value>
</StandardProductID>
<ProductTaxCode>A_GEN_NOTAX</ProductTaxCode>
<DescriptionData>
<Title>Maximum Comfort CPAP Headgear Universal Replacement Strap for Masks * 4-Point Connection Works for Most All Nasal & Full-face Sleep apnea Masks - Sleep Apnea, Anti-Snoring Equipment</Title>
<Brand>wiser Innovations</Brand>
<Description>This is a <b>bold</b> test</Description>
<BulletPoint>MORE COMFORT-Super comfortable, ultra soft, no-irritation neoprene strap</BulletPoint>
<BulletPoint>MORE COMFORT-Super comfortable, ultra soft, no-irritation neoprene strap</BulletPoint>
<BulletPoint>MORE COMFORT-Super comfortable, ultra soft, no-irritation neoprene strap</BulletPoint>
<BulletPoint>MORE COMFORT-Super comfortable, ultra soft, no-irritation neoprene strap</BulletPoint>
<BulletPoint>MORE COMFORT-Super comfortable, ultra soft, no-irritation neoprene strap</BulletPoint>
<MSRP currency='USD'>22</MSRP>
<Manufacturer>Wiser</Manufacturer>
<SearchTerms>MORE COMFORT-Super comfortable, ultra soft, no-irritation neoprene strap</SearchTerms>
<ItemType>cpap-accessories</ItemType>
</DescriptionData>
<ProductData>
<Health>
<ProductType>
<HealthMisc>
<UnitCount unitOfMeasure='1'>1</UnitCount>
</HealthMisc>
</ProductType>
</Health>
</ProductData>
</Product>
</Message>
</AmazonEnvelope>
这是用于上传单位计数的其他健康产品的模式定义
<xsd:element name="UnitCount" minOccurs="0">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:decimal">
<xsd:attribute name="unitOfMeasure" type="StringNotNull"
use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
谁知道在哪里可以找到unitOfMeasure的选项?我已经尝试了“个人”和“盒子”。
答案 0 :(得分:0)
我认为unitOfMeasure属性应该存储表示度量的任何字符串。例如GR
是克。或Fl Oz
,它是液体盎司。