使用亚马逊MWS Feed api时,计量单位的有效选项是什么?

问题描述 投票:0回答:1

尝试使用Amazon mws feed api上传产品,我的请求被拒绝。来自亚马逊的错误消息说我需要指定度量单位,但我无法在亚马逊发布的架构中的任何位置找到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 &amp; Full-face Sleep apnea Masks - Sleep Apnea, Anti-Snoring Equipment</Title>
                <Brand>wiser Innovations</Brand>
                <Description>This is a &lt;b>bold&lt;/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>

这是用于为unitcount上传misc健康产品的模式定义

            <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的选项?我试过个人和盒子。

amazon-web-services amazon-mws
1个回答
0
投票

我认为unitOfMeasure属性应该存储代表度量的任何字符串。例如GR是克。或者Fl Oz,这是液量盎司。

© www.soinside.com 2019 - 2024. All rights reserved.