商品基礎資訊更新

在不需要指定商品類別時批量更新商品的基礎資訊。

該範本只能用於更新商品的基礎欄位,例如網站標題,商品描述,商品圖片等。

相關URL

Newegg.com: https://api.newegg.com/marketplace/datafeedmgmt/feeds/submitfeed?sellerid={sellerid}&requesttype={RequestType}
Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/datafeedmgmt/feeds/submitfeed?sellerid={sellerid}&requesttype={RequestType}
Newegg.ca: https://api.newegg.com/marketplace/can/datafeedmgmt/feeds/submitfeed?sellerid={sellerid}&requesttype={RequestType}

註:請確保您的請求URL全都是小寫(除Seller ID)並且不能包含任何空格或者分行符號。

參數

名稱 是否必填? 描述
sellerid 您在新蛋商城的商家編號
RequestType 值:ITEM_DATA

相關請求資訊

HTTP方式 是否需要認證? 請求格式 回覆格式 頻率限制
POST 需要 XML,Json XML,Json 10 請求/分鐘

註:每個文件最多可有3000條請求記錄並且每個文件不能超過15MB。每小時最多30,000條請求。

請求文件主體

屬性 是否必填? 格式 描述
DocumentVersion Decimal 固定值:3.0
MessageType String 固定值:BatchItemCreation
Action String 指定操作類型:
Create Item:創建當前不在你的商品列表中的新商品
Update Item:更新已存在商品的商品資訊 (不包括價格欄位更新:Currency, MSRP, MAP, Selling Price, Shipping, Inventory and Activation Mark)
Update/Append Image:為商品上傳更多的商品圖片或覆蓋已存在的商品圖片
Replace Image:用此文件中提供的圖片 URL 替換所有已存在的圖片。若選擇此類型, 系統只會處理 Item Images 和 Activation Mark 兩個欄位,其他欄位,包括 Selling Price 都將被忽略。
重要:如果沒有選擇任何操作,系統會預設選擇Create Item,創建新產品。
SellerPartNumber String 商家為商品定義的唯一的識別字。包含字母和數位的字串,含空格最多 40個字元
註:一旦商品被創建,該資訊是不能修改。
WebsiteShortTitle String 簡短且易於辨識的商品名稱。它將在所有的店鋪頁面、銷售訂單以及收據中被用作為你的商品的主要名稱。
最大字元數:200
BulletDescription String 輸入被選擇商品關於特點或功能等簡短的描述,這部分內容將會以清單形式顯示在商品頁面商品標題的下方。 使用分隔符號“^^”來區分不用 的功能點。最大字元數為 1000 個字元,包括空格和分隔符號。不能使用 HTML。
ProductDescription String 詳細的商品描述,在商品頁 面中起重要作用。這個描述應該詳細陳述商品的特點和功能。在系列商品中商品描述應一致。
最大字元數:4000
商品描述(Product Description)欄位僅可接受以下基本 HTML 標籤:<ol>,<ul>, <li>,<br>, <p>, <b>, <i>, <u>, <em>, <strong>, <sub>, <sup> and <img>
ItemLength Decimal 商品包裝長度,單位為英寸。
格式:小數點後保留兩位數,如:1.00
ItemWidth Decimal 商品包裝寬度,單位為英寸。
格式:小數點後保留兩位數,如:1.00
ItemHeight Decimal 商品包裝高度,單位為英寸。
格式:小數點後保留兩位數,如:1.00
ItemWeight Decimal 單個商品包裝重量,單位為磅。
格式:小數點後保留兩位數,如:1.00
ActivationMark String 有效值:
True:啟動商品,該商品會展示在新蛋網頁上進行售賣
False:下架商品,該商品會被隱藏/下線,不會在新蛋網頁上銷售。
如果不填,系統將不會對該商品目前的狀態做任何更改。
註:
如果新蛋賣家帳戶狀態為“Inactive”,所有商品將會被下線。因此,如果要啟動商品,首先該賣家帳戶必須為“Active”。更多詳情,請聯繫datafeeds@newegg.com
Newegg.com平台上的新蛋全球商品,請提交批量更新價格文件來啟動全球商品。
ImageUrl String 商品的圖片連結。
要求:

  • 所有的 URL 必須直接連結到真實的圖片
  • 圖片類型必須為.jpg 、 .jpeg或者.GIF
  • 圖片的最小尺寸為:寬640圖元,高480圖元
  • 圖片大小不能超過10MB,如果超過10MB,則會上傳失敗
IsPrimary Boolean 如果多張圖片上傳,該欄位可用於指定商品顯示的第一張圖片。
ConditionDetails String 商品狀態相關的資訊,不包括 New和 Refurbished 狀態的商品,可用于説明顧客瞭解商品狀態。
註:該資訊僅適用於Newegg.com平台
ImageUrl String 二手商品的圖片連結。
要求:

  • 所有的 URL 必須直接連結到真實的圖片
  • 圖片類型必須為.jpg 、 .jpeg或者.GIF
  • 圖片的最小尺寸為:寬640圖元,高480圖元
  • 圖片大小不能超過10MB,如果超過10MB,則會上傳失敗

註:該資訊僅適用於Newegg.com平台。

IsPrimary String 如果多張圖片上傳,該欄位可用於指定該二手商品顯示的第一張圖片。
Prop65 String Newegg.com和NeweggBusiness.com:當該商品涉及加州 65號提案的規定時使用此欄位。
一旦商品已經創建成功,要根據加州的法規更新prop65,請參考ITEM_CAPROP65_DATA。
Newegg.ca平台不要求。
Prop65Motherboard String
CountryOfOrigin String 該欄位是表示你的商品的原產地或者出口國。 新蛋僅接受國際標準的三位國家代碼。
完整的代碼清單,請從以下連結下載,International Country Guide
OverAge18Verification String 當商品包含不宜十八歲以下人群的圖像或其他不恰當資訊時使用此欄位。如果不填,默認為“NO”
有效值:YES或者NO
ChokingHazard String 對於兒童玩具和遊戲所要求的窒息性危險警告。
你可以挑選6個警告中的4個,且不需要選擇四個以上的警告。不應同時選擇商品“包含”小型球體或大理 石和與之相關的商品“是”小型球體或大理石這兩種警告。
請參考消費品安全改進法案(CPSIA)瞭解詳細資訊。
如果不填,該值為空。
ShippingRestriction String 某些商品有運輸限制,不能使用空運。
如果您創建的產品有此類限制,請設置值為“YES”。如果沒有,設置為“NO”。如果不填,則默認為“NO”。

Schema: ItemUpdate.xsd

示例:XML, Request

POST https://api.newegg.com/marketplace/datafeedmgmt/feeds/submitfeed?sellerid={sellerid}&requesttype=ITEM_DATA
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/xml
Accept: application/xml

<NeweggEnvelope>
    <Header>
        <DocumentVersion>3.0</DocumentVersion>
    </Header>
    <MessageType>BatchItemCreation</MessageType>
    <Message>
        <Itemfeed>
            <Item>
                <Action>Update Item</Action>
                <BasicInfo>
                    <SellerPartNumber>A006Leon_Test_001</SellerPartNumber>
                    <WebsiteShortTitle>Test for Leon</WebsiteShortTitle>
                    <WebsiteLongTitle/>
                    <BulletDescription>This is first bullet^^This is second bullet</BulletDescription>
                    <ProductDescription>Test for Leon</ProductDescription>
                    <ItemDimension>
                        <ItemLength>2.0</ItemLength>
                        <ItemWidth>2.0</ItemWidth>
                        <ItemHeight>2.0</ItemHeight>
                    </ItemDimension>
                    <ItemWeight>2.0</ItemWeight>
                    <ActivationMark>False</ActivationMark>
                    <ItemImages>
                        <Image>
                            <ImageUrl>http://10.1.24.143:4567/images/20.gif</ImageUrl>
                            <IsPrimary>True</IsPrimary>
                        </Image>
                        <Image>
                            <ImageUrl>http://10.1.24.143:4567/images/21.gif</ImageUrl>
                        </Image>
                        <Image>
                            <ImageUrl>http://10.1.24.143:4567/images/22.gif</ImageUrl>
                        </Image>
                    </ItemImages>
                    <ConditionDetails>Works fine, almost like new, missing original plastics cover</ConditionDetails>
                    <UsedItemImages>
                        <Image>
                            <ImageUrl>http://10.1.24.143:4567/images/Used.gif</ImageUrl>
                        </Image>
                    </UsedItemImages>
                    <Warning>
                        <Prop65>No</Prop65>
                        <Prop65Motherboard>Yes</Prop65Motherboard>
                        <CountryOfOrigin>USA</CountryOfOrigin>
                        <OverAge18Verification>No</OverAge18Verification>
                        <ChokingHazard>
                            <SmallParts>Yes</SmallParts>
                            <SmallBall>Is a small ball</SmallBall>
                            <Balloons>Yes</Balloons>
                            <Marble>Contains a marble</Marble>
                        </ChokingHazard>
                    </Warning>
                </BasicInfo>
            </Item>
            <Item>
                <Action>Update Item</Action>
                <BasicInfo>
                    <SellerPartNumber>A006Leon_Test_002</SellerPartNumber>
                    <WebsiteShortTitle>Test for Leon</WebsiteShortTitle>
                    <WebsiteLongTitle/>
                    <BulletDescription>This is first bullet^^This is second bullet</BulletDescription>
                    <ProductDescription>Test for Leon</ProductDescription>
                    <ItemDimension>
                        <ItemLength>2.0</ItemLength>
                        <ItemWidth>2.0</ItemWidth>
                        <ItemHeight>2.0</ItemHeight>
                    </ItemDimension>
                    <ItemWeight>2.0</ItemWeight>
                    <ActivationMark>False</ActivationMark>
                    <ItemImages>
                        <Image>
                            <ImageUrl>http://10.1.24.143:4567/images/20.gif</ImageUrl>
                            <IsPrimary>True</IsPrimary>
                        </Image>
                    </ItemImages>
                    <Warning>
                        <Prop65>No</Prop65>
                        <Prop65Motherboard>Yes</Prop65Motherboard>
                        <OverAge18Verification>No</OverAge18Verification>
                        <ChokingHazard>
                            <SmallParts>Yes</SmallParts>
                            <SmallBall>Is a small ball</SmallBall>
                            <Balloons>Yes</Balloons>
                            <Marble>Contains a marble</Marble>
                        </ChokingHazard>
                    </Warning>
                </BasicInfo>
            </Item>
            <Item>
                <Action>Update Item</Action>
                <BasicInfo>
                    <SellerPartNumber>A006Leon_Test_003</SellerPartNumber>
                    <WebsiteShortTitle>Test for Leon</WebsiteShortTitle>
                    <WebsiteLongTitle/>
                    <BulletDescription>This is first bullet^^This is second bullet</BulletDescription>
                    <ProductDescription>Test for Leon</ProductDescription>
                    <ItemDimension>
                        <ItemLength>2.0</ItemLength>
                        <ItemWidth>2.0</ItemWidth>
                        <ItemHeight>2.0</ItemHeight>
                    </ItemDimension>
                    <ItemWeight>2.0</ItemWeight>
                    <ActivationMark>False</ActivationMark>
                    <ItemImages>
                        <Image>
                            <ImageUrl>http://10.1.24.143:4567/images/20.gif</ImageUrl>
                            <IsPrimary>True</IsPrimary>
                        </Image>
                    </ItemImages>
                    <Warning>
                        <Prop65>No</Prop65>
                        <Prop65Motherboard>Yes</Prop65Motherboard>
                        <OverAge18Verification>No</OverAge18Verification>
                        <ChokingHazard>
                            <SmallParts>Yes</SmallParts>
                            <SmallBall>Is a small ball</SmallBall>
                            <Balloons>Yes</Balloons>
                            <Marble>Contains a marble</Marble>
                        </ChokingHazard>
                    </Warning>
                </BasicInfo>
            </Item>
        </Itemfeed>
    </Message>
</NeweggEnvelope>

示例:Json, Request

POST https://api.newegg.com/marketplace/datafeedmgmt/feeds/submitfeed?sellerid={sellerid}&requesttype=ITEM_DATA
Authorization: 720ddc067f4d115bd544aff46bc75634
SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D
Content-Type: application/json
Accept: application/json

{
    "NeweggEnvelope": {
        "Header": {
            "DocumentVersion": "3.0"
        },
        "MessageType": "BatchItemCreation",
        "Message": {
            "Itemfeed": {
                "Item": [
                    {
                        "Action": "Update Item",
                        "BasicInfo": {
                            "SellerPartNumber": "A006Leon_Test_001",
                            "WebsiteShortTitle": "Test for Leon",
                            "BulletDescription":"This is first bullet^^This is second bullet",
                            "ProductDescription": "Test for Leon",
                            "ItemDimension": {
                                "ItemLength": "2.0",
                                "ItemWidth": "2.0",
                                "ItemHeight": "2.0"
                            },
                            "ItemWeight": "2.0",
                            "ActivationMark": "False",
                            "ItemImages": {
                                "Image": [
                                      { "ImageUrl": "http://10.1.24.143:4567/images/20.gif",
                                        "IsPrimary": "True"},
                                      { "ImageUrl": "http://10.1.24.143:4567/images/21.gif"},
                                      { "ImageUrl": "http://10.1.24.143:4567/images/22.gif"}
                                ]
                            },
                            "ConditionDetails": "Works fine, almost like new, missing original plastics cover ",
                            "UsedItemImages": {
                                "Image": {
                                    "ImageUrl": "http://10.1.24.143:4567/images/Used.gif"
                                }
                            },
                            "Warning": {
                                "Prop65": "No",
                                "Prop65Motherboard": "Yes",
                                "CountryOfOrigin": "USA",
                                "OverAge18Verification": "No",
                                "ChokingHazard": {
                                    "SmallParts": "Yes",
                                    "SmallBall": "Is a small ball",
                                    "Balloons": "Yes",
                                    "Marble": "Contains a marble"
                                }
                            }
                        }
                    },
                    {
                        "Action": "Update Item",
                        "BasicInfo": {
                            "SellerPartNumber": "A006Leon_Test_002",
                            "WebsiteShortTitle": "Test for Leon",
                            "BulletDescription":"This is first bullet^^This is second bullet",
                            "ProductDescription": "Test for Leon",
                            "ItemDimension": {
                                "ItemLength": "2.0",
                                "ItemWidth": "2.0",
                                "ItemHeight": "2.0"
                            },
                            "ItemWeight": "2.0",
                            "ActivationMark": "False",
                            "ItemImages": {
                                "Image": {
                                    "ImageUrl": "http://10.1.24.143:4567/images/20.gif",
                                    "IsPrimary": "True"
                                }
                            },
                            "Warning": {
                                "Prop65": "No",
                                "Prop65Motherboard": "Yes",
                                "OverAge18Verification": "No",
                                "ChokingHazard": {
                                    "SmallParts": "Yes",
                                    "SmallBall": "Is a small ball",
                                    "Balloons": "Yes",
                                    "Marble": "Contains a marble"
                                }
                            }
                        }
                    },
                    {
                        "Action": "Update Item",
                        "BasicInfo": {
                            "SellerPartNumber": "A006Leon_Test_003",
                            "WebsiteShortTitle": "Test for Leon",
                            "ProductDescription": "Test for Leon",
                            "ItemDimension": {
                                "ItemLength": "2.0",
                                "ItemWidth": "2.0",
                                "ItemHeight": "2.0"
                            },
                            "ItemWeight": "2.0",
                            "ActivationMark": "False",
                            "ItemImages": {
                                "Image": {
                                    "ImageUrl": "http://10.1.24.143:4567/images/20.gif",
                                    "IsPrimary": "True"
                                }
                            },
                            "Warning": {
                                "Prop65": "No",
                                "Prop65Motherboard": "Yes",
                                "OverAge18Verification": "No",
                                "ChokingHazard": {
                                    "SmallParts": "Yes",
                                    "SmallBall": "Is a small ball",
                                    "Balloons": "Yes",
                                    "Marble": "Contains a marble"
                                }
                            }
                        }
                    }
                ]
            }
        }
    }
}

回覆文件主體

屬性 格式 描述
IsSuccess String 獲取文件狀態操作:
True:成功
False:失敗
OperationType String 固定值:SubmitFeedResponse
SellerID String 商家編號
RequestType String 值:ITEM_DATA
RequestDate String 文件提交的時間(太平洋標準時間)
RequestStatus String 文件提交的狀態:
SUBMITTED 已提交
Memo String 附加資訊

Schema: SubmitFeedResponse.xsd

示例:XML, Response

<?xml version="1.0" encoding="utf-8"?>
<NeweggAPIResponse>
    <IsSuccess>true</IsSuccess>
    <OperationType>SubmitFeedResponse</OperationType>
    <SellerID>A006</SellerID>
    <ResponseBody>
        <ResponseList>
            <ResponseInfo>
                <RequestId>2291326430</RequestId>
                <RequestType>ITEM_DATA</RequestType>
                <RequestDate>2/16/2012 12:29:19</RequestDate>
                <RequestStatus>SUBMITTED</RequestStatus>
            </ResponseInfo>
        </ResponseList>
    </ResponseBody>
    <Memo />
</NeweggAPIResponse>

示例:Json, Response

{
    "IsSuccess": true,
    "OperationType": "SubmitFeedResponse",
    "ResponseBody": {
        "ResponseList": [
            {
                "RequestDate": "2/22/2012 17:24:35",
                "RequestId": "2PQCX3CMQ82MK",
                "RequestStatus": "SUBMITTED",
                "RequestType": "ITEM_DATA"
            }
        ]
    },
    "SellerID": "A006"
}

請求失敗錯誤資訊

常規HTTP錯誤回應,請參考回覆失敗錯誤代碼清單

錯誤代碼 描述
DF003 The MaxCount (maximum request records) CANNOT be over 30000.

最大請求數記錄不能超過30000。

DF004 Unfortunately, we are unable to process your request at this time. We apologize for the inconvenience. Please try again later.

很抱歉,目前我們無法處理您的請求。請您稍後再試。

DF011 Your data feed request will not be processed during the scheduled data feed processing restriction from [{begin timestamp:hh:mm:ss, MM/DD/YYYY}] to [{end timestamp:hh:mm:ss, MM/DD/YYYY}]). Please contact datafeeds@newegg.com if you have any question or concern. Thank you for your patience.

在已定的資料處理限制期內,從[{begin timestamp:hh:mm:ss, MM/DD/YYYY}] 到 [{end timestamp:hh:mm:ss, MM/DD/YYYY}],您的資料請求將無法被處理。如您有任何問題或者疑問,請聯繫datafeeds@newegg.com。 感謝您的耐心等待。

示例:XML, Response

<?xml version="1.0" encoding="utf-8"?>
<Errors>
    <Error>
        <Code>DF003</Code>
        <Message>The MaxCount (maximum request records) CANNOT be over 30000</Message>
    </Error>
</Errors>

示例:Json, Response

[
    {
        "Code": "DF003",
        "Message": "The MaxCount (maximum request records) CANNOT be over 30000"
    }
]

更新日期:05/14/2021