亚马逊官方教程——使用基础架构构建 XML 输入数据-ESG跨境

亚马逊官方教程——使用基础架构构建 XML 输入数据

亚马逊观察
亚马逊观察
2022-03-26
点赞icon 0
查看icon 707

基础 XSD 由所有其他数据上传数据使用,用于指定通用元素和数据类型。 其主要目的是为所有数据上传数据提供一致性,并约束之后对 XSD 定义的更改。所有其他 XSD 均参考基础 XSD 的元素和数据类型。

基础架构

描述

基础 XSD 由所有其他数据上传数据使用,用于指定通用元素和数据类型。 其主要目的是为所有数据上传数据提供一致性,并约束之后对 XSD 定义的更改。所有其他 XSD 均参考基础 XSD 的元素和数据类型。

注意:
•“国家/地区代码”元素是一个双字母 ISO 3166 国家/地区代码。
•“名称”元素是一个单一字段,最长含 50 个字符。如果您的系统要求,那么您有责任将单一字段解析为名和姓。

词典

XSD

https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_1_9/amzn-base.xsd

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
elementFormDefault="qualified">
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 地址元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="Address" />
        <xsd:complexType>
           <xsd:sequence>
               <xsd:element name="Name" type="String"/>
               <xsd:element name="AddressFieldOne" type="AddressLine"/>
               <xsd:element name="AddressFieldTwo" type="AddressLine" minOccurs="0"/>
               <xsd:element name="AddressFieldThree" type="AddressLine" minOccurs="0"/>
               <xsd:element name="City" type="String"/>
               <xsd:element name="County" type="String" minOccurs="0"/>
               <xsd:element name="StateOrRegion" type="String" minOccurs="0"/>
               <xsd:element name="PostalCode" type="String" minOccurs="0"/>
               <xsd:element name="CountryCode">
                   <xsd:simpleType>
                       <xsd:restriction base="xsd:string">
                          <xsd:minLength value="2"/>
                          <xsd:maxLength value="2"/>
                       </xsd:restriction>
                   </xsd:simpleType>
               </xsd:element>
               <xsd:element name="PhoneNumber" type="String" minOccurs="0"/>
           </xsd:sequence>
        </xsd:complexType>
   
    <xsd:simpleType name="AddressLine">
        <xsd:restriction base="xsd:normalizedString">
           <xsd:maxLength value="60"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 类型
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType name="AmazonFees">
        <xsd:sequence>
           <xsd:element name="Fee" maxOccurs="unbounded" />
               <xsd:complexType>
                   <xsd:sequence>
                       <xsd:element name="Type">
                          <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                  <xsd:enumeration value="Commission"/>
                              </xsd:restriction>
                          </xsd:simpleType>
                       </xsd:element>
                       <xsd:element name="Amount" type="CurrencyAmount"/>
                   </xsd:sequence>
               </xsd:complexType>
          
        </xsd:sequence>
    </xsd:complexType>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 买家商品价格类型
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType name="BuyerPrice">
        <xsd:sequence>
           <xsd:element name="Component" maxOccurs="unbounded" />
               <xsd:complexType>
                   <xsd:sequence>
                       <xsd:element name="Type">
                          <xsd:simpleType>
                              <xsd:restriction base="xsd:string">
                                  <xsd:enumeration value="Principal"/>
                                  <xsd:enumeration value="Shipping"/>
                                  <xsd:enumeration value="Tax"/>
                                  <xsd:enumeration value="ShippingTax"/>
                                  <xsd:enumeration value="RestockingFee"/>
                                  <xsd:enumeration value="RestockingFeeTax"/>
                              </xsd:restriction>
                          </xsd:simpleType>
                       </xsd:element>
                       <xsd:element name="Amount" type="CurrencyAmount"/>
                   </xsd:sequence>
               </xsd:complexType>
           </xsd:sequence>
    </xsd:complexType>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 货币金额类型
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType name="CurrencyAmount">
        <xsd:simpleContent>
           <xsd:extension base="BaseCurrencyAmount">
               <xsd:attribute name="currency" type="BaseCurrencyCode" use="required"/>
           </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>
    <xsd:simpleType name="BaseCurrencyCode">
        <xsd:restriction base="xsd:string">
           <xsd:enumeration value="USD"/>
           <xsd:enumeration value="GBP"/>
           <xsd:enumeration value="EUR"/>
           <xsd:enumeration value="JPY"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="BaseCurrencyAmount">
        <xsd:restriction base="xsd:decimal">
           <xsd:totalDigits value="20"/>
           <xsd:fractionDigits value="2" fixed="true"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 运营中心编号元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="FulfillmentCenterID" type="String"/>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 配送方式元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="FulfillmentMethod">
        <xsd:simpleType>
           <xsd:restriction base="xsd:string">
               <xsd:enumeration value="Ship"/>
               <xsd:enumeration value="InStorePickup"/>
               <xsd:enumeration value="MerchantDelivery"/>
           </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 配送服务级别元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="FulfillmentServiceLevel">
        <xsd:simpleType>
           <xsd:restriction base="xsd:string">
               <xsd:enumeration value="Standard"/>
               <xsd:enumeration value="Expedited"/>
           </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 编号类型
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:simpleType name="IDNumber">
        <xsd:restriction base="xsd:positiveInteger">
           <xsd:pattern value="\d{1,18}"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 长字符串类型
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:simpleType name="LongString">
        <xsd:restriction base="xsd:normalizedString">
           <xsd:maxLength value="500"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 卖家订单编号元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="MerchantOrderID" type="String"/>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 卖家订单商品编号元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="MerchantOrderItemID" type="String"/>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 卖家促销编号元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="MerchantPromotionID" type="String"/>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 订单编号元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="AmazonOrderID">
        <xsd:simpleType>
           <xsd:restriction base="xsd:string">
               <xsd:pattern value="\d{3}-\d{7}-\d{7}"/>
           </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 订单商品编码元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="AmazonOrderItemCode">
        <xsd:simpleType>
           <xsd:restriction base="xsd:string">
               <xsd:pattern value="\d{14}"/>
           </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 标准商品编码元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="StandardProductID">
        <xsd:complexType>
           <xsd:sequence>
               <xsd:element name="Type">
                   <xsd:simpleType>
                       <xsd:restriction base="xsd:string">
                          <xsd:enumeration value="ISBN"/>
                          <xsd:enumeration value="UPC"/>
                          <xsd:enumeration value="EAN"/>
                       </xsd:restriction>
                   </xsd:simpleType>
               </xsd:element>
               <xsd:element name="Value">
                   <xsd:simpleType>
                       <xsd:restriction base="xsd:string">
                          <xsd:minLength value="10"/>
                          <xsd:maxLength value="13"/>
                       </xsd:restriction>
                   </xsd:simpleType>
               </xsd:element>
           </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="ProductTaxCode" type="String"/>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 促销应用类型
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:simpleType name="PromotionApplicationType">
        <xsd:restriction base="xsd:string">
           <xsd:enumeration value="Principal"/>
           <xsd:enumeration value="Shipping"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 促销请款代码
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="PromotionClaimCode">
        <xsd:simpleType>
           <xsd:restriction base="xsd:string">
               <xsd:minLength value="6"/>
               <xsd:maxLength value="12"/>
           </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 促销数据类型
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:complexType name="PromotionDataType">
        <xsd:sequence>
           <xsd:element ref="PromotionClaimCode"/>
           <xsd:element ref="MerchantPromotionID"/>
           <xsd:element name="Component" maxOccurs="unbounded" />
               <xsd:complexType>
                   <xsd:sequence>
                       <xsd:element name="Type" type="PromotionApplicationType"/>
                       <xsd:element name="Amount" type="CurrencyAmount"/>
                   </xsd:sequence>
               </xsd:complexType>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# SKU 元素
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:element name="SKU">
        <xsd:simpleType>
           <xsd:restriction base="xsd:normalizedString">
               <xsd:maxLength value="40"/>
           </xsd:restriction>
        </xsd:simpleType>
    </xsd:element>
    <xsd:annotation>
        <xsd:documentation>
##################################################
# 字符串类型
##################################################
</xsd:documentation>
    </xsd:annotation>
    <xsd:simpleType name="String">
        <xsd:restriction base="xsd:normalizedString">
           <xsd:maxLength value="50"/>
        </xsd:restriction>
    </xsd:simpleType>
</xs:schema>

Base Schema

Description

The base XSD is used by all other data feeds to specify universally-used elements and data types. The primary purposes are to provide consistency among all the data feeds and to constrain future changes to the XSD definitions. All other XSDs reference the base-XSD's elements and data types.

Note:
• The CountryCode element is a two-letter ISO 3166 country code. 
• The Name element is a single field with a 50-character maximum. It is your responsibility to parse the single field into First name and Last name if that is required by your systems.

Dictionary

Element

Description

AddressFieldOne

The first line of a standard address

AddressFieldTwo

The second line of a standard address

AddressFieldThree

The third line of a standard address

AmazonOrderID

Amazon’s unique identifier for an order

AmazonOrderItemCode

Amazon’s unique identifier for an item in an order

City

The city of a standard address

CountryCode

ISO 3166 standard two-letter country code

County

The county of a standard US address

FulfillmentCenterID

A seller-defined unique identifier for a fulfillment center

FulfillmentMethod

The fulfillment method the buyer specified

FulfillmentServiceLevel

The type of fulfillment service the buyer specified

MerchantOrderID

A s

点击咨询现在有哪些新兴平台值得关注 >>>


特别声明:以上文章内容仅代表作者本人观点,不代表ESG跨境电商观点或立场。如有关于作品内容、版权或其它问题请于作品发表后的30日内与ESG跨境电商联系。

搜索 放大镜
ESG专业服务案例
查看
1
1个月孵化,GMV增长4400%
【能解决问题的才叫资源 能赚钱的才叫专业】 >> Gmarket卖家店铺经过ESG跨境客户经理优化,月GMV达到20万美金!
2
对接平台官方关键人,3天解封店铺
【精准资源对接 极速解决问题】 >> ESG跨境帮我解决了韩国平台店铺异常问题——运营韩国平台的卖家
3
ESG速度!5小时,PayPal解封
【用资源解决难题 以效率展现专业】 >> ESG拥有Paypal支付和Onbuy平台双绿通道为卖家保驾护航!
4
据理力争,客户产品喜获0竞争绿洲
【只要资源好 跨境弯路少】>> ESG跨境通过专业市场调研分析产品数据,向平台争取机会,卖家成功上架市场热卖而平台稀缺产品,拓展了西班牙新商机!
ESG跨境福利分享群
加入
ESG跨境福利分享群
扫码进群
跨境福利分享群
加入
跨境福利分享群
扫码进群
亚马逊&跨境增长交流群
加入
亚马逊&跨境增长交流群
扫码进群
韩国平台交流群
加入
韩国平台交流群
扫码进群
美国卖家交流群
加入
美国卖家交流群
扫码进群
拉美电商交流群
加入
拉美电商交流群
扫码进群
欧洲多平台交流群
加入
欧洲多平台交流群
扫码进群
开店大全-北美篇
开店大全-蓝海篇
韩国平台站内推广指南-Gmarket Global
CD平台自注册指南
韩国大促热销品预测
开店大全-南亚篇
开店大全-土耳其篇
开店大全-欧洲篇
开店大全-日韩篇
跨境电商运营大全
在线咨询
亚马逊平台顾问
亚马逊平台问题,问我吧!
通过ESG入驻平台,您将解锁
绿色通道,更高的入驻成功率
专业1v1客户经理服务
运营实操指导
运营提效资源福利
平台官方专属优惠
betvictor代理

立即登记,定期获得更多资讯

订阅
联系顾问

平台顾问

平台顾问 平台顾问

微信扫一扫
马上联系在线顾问

icon icon

小程序

微信小程序

ESG跨境小程序
手机入驻更便捷

icon icon

返回顶部

Baidu