TTWUSA APIV2

产品管理

修改产品

更新 SKU 产品资料。

POST
生产环境https://ssl.glitzcloud.com/agent/v1/skus/skus/editskus
测试环境http://gztest.glitzcloud.com/agent/v1/skus/skus/editskus

说明

1、功能名称:修改产品

2、功能描述:修改产品

鉴权说明

请参阅鉴权签名说明。

请求参数

名称类型必填示例值更多限制描述
product_snStringHSS-725-L-Charcoa-[biB]产品的sku
bar_codeStringUpc202220字符,1汉字2字符UPC条形码
product_typeInteger06位产品类别(该功能正在升级)
product_nameString产品中文名称产品名称
product_name_enStringEnglish_name产品英文名称
product_worthFloat98.99保留两位小数且不大于100申报价值
declaration_weightFloat1000.32保留两位小数申报重量
declaration_volumeString10*20*30长度30个字符申报体积(长*宽*高)
descriptionString这是一个产品描述产品描述
customs_codeStringBC987654321长度30个字符海关编码
exist_batteryInteger0是否危险品(0:否1:是)
description_urlStringhttp://www.xxx.com/description.html产品描述URL
is_availableInteger110位是否启用该产品(1:是,0:否)
num_in_masterInteger3010位产品外包装数量
num_in_innerInteger4010位产品内包装数量
product_imgsStringhttp://www.xxx.com/images.jpg; http://www.xxx.com/images1.jpg产品图片url多个用分号隔开
packing_typeInteger11:自带物流包装 2:裸货
brandStringNike
container_configArray[ { "max_qty": 1, "length": 1, "width": "2", "height": "3", "weight": "4" } ]容器配置如果存在只做更新操作,不存在新建。max_qty:外箱箱入数;length:长;width:宽;height:高;weight:重量

返回字段

参数类型示例值描述
product_idInteger12358产品ID

示例

请求示例
{
    "format": "json",
    "apikey": "85082f5f62a811e684f500163e06045f",
    "randoms": 1234,
    "sign": "656d6fbe6b7dec6c2e77ffe27f04bd6d",
    "store_name": "The Warehouse USA",
    "product_sn": "api_test",
    "bar_code": "upc",
    "product_name": "api_产品中文名",
    "product_name_en": "api-产品英文名",
    "product_worth": "10000",
    "declaration_weight": "100",
    "declaration_volume": "1*2*3",
    "description": "产品描述",
    "customs_code": "海关编码",
    "exist_battery": "1",
    "description_url": "http://www.baidu.com",
    "is_available": "1",
    "num_in_master": "30",
    "num_in_inner": "40",
    "product_imgs": "chanpintupian",
    "brand": "无",
    "container_config": [
        {
            "max_qty": 1,
            "length": 1,
            "width": "2",
            "height": "3",
            "weight": "4"
        }
    ]
}
返回示例
{
    "status": 200,
    "reqMsg": "ok",
    "result": {
        "product_id": "12358"
    }
}
示例 3
{
    "status": "1501",
    "reqMsg": "SKU is compulsory",
    "result": []
}