You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

2021年7月后亚马逊MWS API country_of_origin=NULL错误解决方案

亚马逊MWS Product API country_of_origin空值报错解决

报错表现

调用亚马逊MWS Product API时接口返回错误,提示信息为:

该组中的一个或多个必填列缺少值:[country_of_origin = null]

报错原因

CountryOfOrigin是2021年7月之后亚马逊MWS商品接口的必填参数,请求中未传入该值就会触发上述报错。

解决方法

在请求XML的DescriptionData区块内添加<CountryOfOrigin>字段,传入商品原产国对应的两位国家代码即可,可参考下方请求示例:

<Message>
    <MessageID>1</MessageID>
    <OperationType>Update</OperationType>
    <Product>
        <SKU>5678999993</SKU>
        <StandardProductID>
            <Type>ASIN</Type>
            <Value>5678999993</Value>
        </StandardProductID>
        <ProductTaxCode>A_GEN_NOTAX</ProductTaxCode>
        <DescriptionData>
            <Title>MULE 3L - Racing Red/Pitch Blue</Title>
            <Brand>CAMELBAK</Brand>
            <Description>This is a test product description.</Description>
            <BulletPoint>Perfect for hiking.</BulletPoint>
            <BulletPoint>Bladder for hydration.</BulletPoint>
            <MSRP currency="AUD">100.00</MSRP>
            <Manufacturer>CAMELBAK</Manufacturer>
            <ItemType>outdoor-backpacks</ItemType>
            <CountryOfOrigin>US</CountryOfOrigin>
        </DescriptionData>
        <ProductData>
            <Outdoors>
                <ProductType>
                    <OutdoorRecreationProduct>
                    </OutdoorRecreationProduct>
                </ProductType>
                <VariationData>
                </VariationData>      
            </Outdoors>
        </ProductData>
    </Product>
</Message>

上面示例中传入的US是美国的两位国家代码,可根据商品实际原产国替换为对应代码即可。


内容的提问来源于stack exchange,提问作者Jarnail

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.10.02 17:57:03