【问题标题】:Walmart post API with variation沃尔玛发布 API 变体
【发布时间】:2017-11-08 13:52:52
【问题描述】:

我的产品有不同的颜色变化和尺寸变化。我需要把它作为一个有变化的单一产品来推广。是否有任何相同的 xml 可用于此?

我从https://developer.walmart.com/xsd/V3-Spec-Item-3.1-XSD.zip获得了当前的 XSD

谁能帮帮我?

【问题讨论】:

    标签: java xml walmart-api


    【解决方案1】:

    请通过此链接: https://developer.walmart.com/#/apicenter/marketPlace/latest?country=us#bulkCreateUpdateItems
    这是一个示例 xml,可能会对您有所帮助:

    <MPItemFeed xsi:schemaLocation="http://walmart.com/MPItem.xsd ">
        <MPItemFeedHeader>
            <version>3.1</version>
            <requestId>xxxx</requestId>
            <requestBatchId>xxxxxxxx</requestBatchId>
            <feedDate>2017-10-25T08:31:33</feedDate>
            <mart>WALMART_US</mart>
        </MPItemFeedHeader>
        <MPItem>
            <processMode>CREATE</processMode>
            <feedDate>2017-10-25T08:31:34</feedDate>
            <sku>xxxxxxx</sku>
            <productIdentifiers>
                <productIdentifier>
                    <productIdType>UPC</productIdType>
                    <productId>xxxx</productId>
                </productIdentifier>
            </productIdentifiers>
            <MPProduct>
                <SkuUpdate>No</SkuUpdate>
                <msrp>32</msrp>
                <ProductIdUpdate>Yes</ProductIdUpdate>
                <productName> Embroidered  Top</productName>
                <additionalProductAttributes>
                    <additionalProductAttribute>
                        <productAttributeName>clothingSize</productAttributeName>
                        <productAttributeValue>XS</productAttributeValue>
                    </additionalProductAttribute>
                </additionalProductAttributes>
                <category>
                    <ClothingCategory>
                        <Clothing>
                            <shortDescription>xxx</shortDescription>
                            <brand>free people</brand>
                            <manufacturer>free people</manufacturer>
                            <pieceCount>1</pieceCount>
                            <mainImageUrl>http://abc.jpg</mainImageUrl>
                            <color>White</color>
                            <pattern>Floral</pattern>
                            <gender>Female</gender>
                            <clothingSize>XS</clothingSize>
                            <variantAttributeNames>
                                <variantAttributeName>clothingSize</variantAttributeName>
                            </variantAttributeNames>
                            <variantGroupId>It should be Same For All Varaiations</variantGroupId>
                            <isPrimaryVariant>Yes</isPrimaryVariant>
                            <isProp65WarningRequired>No</isProp65WarningRequired>
                            <clothingTopStyle>Tank</clothingTopStyle>
                            <dressShirtSize>Tank</dressShirtSize>
                            <sleeveStyle>Spaghetti Strap</sleeveStyle>
                            <occasion>Casual</occasion>
                            <keywords>loose fit,traditional wear,summer,swing,halter,cotton </keywords>
                            <swatchImages>
                                <swatchImage>
                                    <swatchVariantAttribute>pattern</swatchVariantAttribute>
                                    <swatchImageUrl>http://abv.jpg</swatchImageUrl>
                                </swatchImage>
                            </swatchImages>
                            <productSecondaryImageURL>
                                <productSecondaryImageURLValue>http://xyz.jpg</productSecondaryImageURLValue>
                                <productSecondaryImageURLValue>http://xss.jpg</productSecondaryImageURLValue>
                                <productSecondaryImageURLValue>http://abc.jpg</productSecondaryImageURLValue>
                            </productSecondaryImageURL>
                        </Clothing>
                    </ClothingCategory>
                </category>
            </MPProduct>
            <MPOffer>
                <price>32</price>
                <StartDate>2017-10-25</StartDate>
                <EndDate>2021-01-01</EndDate>
                <ShippingWeight>
                    <measure>0.0</measure>
                    <unit>lb</unit>
                </ShippingWeight>
                <ProductTaxCode>2038356</ProductTaxCode>
            </MPOffer>
        </MPItem>
        <MPItem>
            <processMode>CREATE</processMode>
            <feedDate>2017-10-25T08:31:34</feedDate>
            <sku>888374256120</sku>
            <productIdentifiers>
                <productIdentifier>
                    <productIdType>UPC</productIdType>
                    <productId>xxxx</productId>
                </productIdentifier>
            </productIdentifiers>
            <MPProduct>
                <SkuUpdate>No</SkuUpdate>
                <msrp>32</msrp>
                <ProductIdUpdate>Yes</ProductIdUpdate>
                <productName>Free People Women's White Blue Embroidered Camisole Top</productName>
                <additionalProductAttributes>
                    <additionalProductAttribute>
                        <productAttributeName>clothingSize</productAttributeName>
                        <productAttributeValue>S</productAttributeValue>
                    </additionalProductAttribute>
                </additionalProductAttributes>
                <category>
                    <ClothingCategory>
                        <Clothing>
                            <shortDescription>fdfdm</shortDescription>
                            <brand>free people</brand>
                            <manufacturer>free people</manufacturer>
                            <pieceCount>1</pieceCount>
                            <mainImageUrl>http://ssm.jpg</mainImageUrl>
                            <color>White</color>
                            <pattern>Floral</pattern>
                            <gender>Female</gender>
                            <clothingSize>S</clothingSize>
                            <variantAttributeNames>
                                <variantAttributeName>clothingSize</variantAttributeName>
                            </variantAttributeNames>
                            <variantGroupId>It should be same for all variations</variantGroupId>
                            <isPrimaryVariant>No</isPrimaryVariant>
                            <isProp65WarningRequired>No</isProp65WarningRequired>
                            <clothingTopStyle>Tank</clothingTopStyle>
                            <dressShirtSize>Tank</dressShirtSize>
                            <sleeveStyle>Spaghetti Strap</sleeveStyle>
                            <occasion>Casual</occasion>
                            <keywords>loose fit,traditional wear,summer,swing,halter,cotton </keywords>
                            <swatchImages>
                                <swatchImage>
                                    <swatchVariantAttribute>pattern</swatchVariantAttribute>
                                    <swatchImageUrl>http://ggg.jpg</swatchImageUrl>
                                </swatchImage>
                            </swatchImages>
                            <productSecondaryImageURL>
                                <productSecondaryImageURLValue>http://vvv.jpg</productSecondaryImageURLValue>
                            </productSecondaryImageURL>
                        </Clothing>
                    </ClothingCategory>
                </category>
            </MPProduct>
            <MPOffer>
                <price>32</price>
                <StartDate>2017-10-25</StartDate>
                <EndDate>2021-01-01</EndDate>
                <ShippingWeight>
                    <measure>0.0</measure>
                    <unit>lb</unit>
                </ShippingWeight>
                <ProductTaxCode>2038356</ProductTaxCode>
            </MPOffer>
        </MPItem>
    </MPItemFeed>
    

    【讨论】:

    • 嗨@Ajmal Sha,我正在处理相同类型的需求,所以我只想知道您是否能够在沃尔玛创建变体项目?
    猜你喜欢
    • 1970-01-01
    • 2017-05-02
    • 1970-01-01
    • 2019-02-07
    • 2021-10-21
    • 2021-02-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多