獲取子類目屬性清單
獲取指定子類目下的屬性清單。
相關URL
Newegg.com: https://api.newegg.com/marketplace/sellermgmt/seller/subcategoryproperty?sellerid={sellerid} Neweggbusiness.com: https://api.newegg.com/marketplace/b2b/sellermgmt/seller/subcategoryproperty?sellerid={sellerid} Newegg.ca: https://api.newegg.com/marketplace/can/sellermgmt/seller/subcategoryproperty?sellerid={sellerid}
註:請確保您的請求URL全都是小寫(除Seller ID)並且不能包含任何空格或者分行符號。
參數
名稱 | 是否必填? | 描述 |
sellerid | 是 | 您在新蛋商城的商家編號 |
相關請求資訊
HTTP方式 | 是否需要認證? | 請求格式 | 回覆格式 | 頻率限制 |
PUT | 需要 | XML,Json | XML,Json | 100 請求/小時 |
請求文件主體
屬性 | 是否必填? | 格式 | 描述 |
OperationType | 是 | String | 固定值:GetSellerSubcategoryPropertyRequest |
SubcategoryID | 是 | Integer | 新蛋子類目編號 註:可使用獲取子類目狀態請求獲取 |
Schema: GetSubcatetoryPropertiesRequest.xsd
示例:XML, Request
PUT https://api.newegg.com/marketplace/sellermgmt/seller/subcategoryproperty?sellerid={sellerid} Authorization: 720ddc067f4d115bd544aff46bc75634 SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D Content-Type: application/xml Accept: application/xml <NeweggAPIRequest> <OperationType>GetSellerSubcategoryPropertyRequest</OperationType> <RequestBody> <SubcategoryID>1045</SubcategoryID> </RequestBody> </NeweggAPIRequest>
示例:Json, Request
PUT https://api.newegg.com/marketplace/sellermgmt/seller/subcategoryproperty?sellerid={sellerid} Authorization: 720ddc067f4d115bd544aff46bc75634 SecretKey: 21EC2020-3AEA-1069-A2DD-08002B30309D Content-Type: application/json Accept: application/json { "OperationType": "GetSellerSubcategoryPropertyRequest", "RequestBody": { "SubcategoryID": "1045" } }
回覆文件主體
屬性 | 格式 | 描述 |
IsSuccess | String | 用於獲取資料狀態的操作 True:成功 False:失敗 |
OperationType | String | 固定值:GetSellerSubcategoryPropertyResponse |
SellerID | String | 您的商家編號 |
SubcategoryID | Integer | 子類目編號 |
SubcategoryName | String | 子類目名稱 |
PropertyName | String | 指定新蛋的子類目的屬性名 |
IsAdvancedSearch | Integer | 在 Newegg 網站上所提供的高級搜索導航中是否顯示該屬性 有效值: 0 – No 否 1 – Yes 是 |
IsGroupBy | Integer | 是否為 Group-by 屬性 有效值: 0 – No 否 1 – Yes 是 |
IsRequired | Integer | 是否是必填屬性 有效值: 0 – No 否 1 – Yes 是 |
Schema: GetSubcatetoryPropertiesResponse.xsd
示例: XML, Response
<?xml version="1.0" encoding="utf-8"?> <NeweggAPIResponse> <IsSuccess>true</IsSuccess> <OperationType>GetSellerSubcategoryPropertyResponse</OperationType> <SellerID>A006</SellerID> <ResponseBody> <SubcategoryPropertyList> <SubcategoryProperty> <SubcategoryID>1045</SubcategoryID> <SubcategoryName> <![CDATA[Costumes]]> </SubcategoryName> <PropertyName> <![CDATA[Costume_Brand]]> </PropertyName> <IsAdvancedSearch>0</IsAdvancedSearch> <IsGroupBy>0</IsGroupBy> <IsRequired>0</IsRequired> </SubcategoryProperty> <SubcategoryProperty> <SubcategoryID>1045</SubcategoryID> <SubcategoryName> <![CDATA[Costumes]]> </SubcategoryName> <PropertyName> <![CDATA[Costume_Model]]> </PropertyName> <IsAdvancedSearch>1</IsAdvancedSearch> <IsGroupBy>1</IsGroupBy> <IsRequired>1</IsRequired> </SubcategoryProperty> </SubcategoryPropertyList> </ResponseBody> </NeweggAPIResponse>
示例: Json, Response
{ "IsSuccess": "true", "OperationType": "GetSellerSubcategoryPropertyResponse", "SellerID": "A006", "ResponseBody": { "SubcategoryPropertyList": [ { "SubcategoryID": "1045", "SubcategoryName": "Costumes", "PropertyName": "Costume_Brand", "IsAdvancedSearch": "0", "IsGroupBy": "0", "IsRequired": "0" }, { "SubcategoryID": "1045", "SubcategoryName": "Costumes", "PropertyName": "Costume_Model", "IsAdvancedSearch": "1", "IsGroupBy": "1", "IsRequired": "1" } ] } }
請求失敗錯誤資訊
常規HTTP錯誤回應,請參考回覆失敗錯誤代碼清單。
錯誤代碼 | 描述 |
DF009 | Invalid subcategory ID [{0}]. 無效的子類目編號[{0}] |
示例: XML, Response
<?xml version="1.0" encoding="utf-8"?> <Errors> <Error> <Code>DF009</Code> <Message>Invalid subcategory ID ABC</Message> </Error> </Errors>
示例: Json, Response
[ { "Code": "DF008", "Message": "Invalid industry code ABC" } ]
更新日期:10/15/2018