编辑更新ITEM

接口描述

该接口用于更新已存在的ITEM模块信息,请注意更新时请求body中的所有字段必填做替换资源操作。

URL

/ark/open_api/v1/item/{item_id}

URL Parameter

名称 类型 必填 说明
item_id String Yes 已存在的ITEM ID

Method

PUT

Request Body (content-type:application/json;charset=utf8)

请务必按以下字段要求添加数据,以免系统报错。

{
            "price": 252.69999999999999,
            "original_price": 699.0,
            "pre_tax_price": 200.0
}

Request Body Parameters

名称 类型 说明
price Float 商品售价,非跨境税商家必填
original_price Float 商品原价
pre_tax_price Float 税前价,跨境税商家必填

Response 200 (application/json;charset=utf-8)

{
    "error_code": 0,
    "data": {
        "spvs": [],
        "items": [
            {
                "spu_id": "58e5b5f5af0a672afacf4564",
                "update_time": 1491459994,
                "ename": "GUCCI testupdatespu white",
                "name": "GUCCI古驰 testupdatespu white",
                "logistics": "auto",
                "skucode": "test01",
                "original_price": 699.0,
                "tax": 52.700000000000003,   
                "pre_tax_price": 200.0,   
                "price": 252.69999999999999,   
                "tax_rate": 0.26350000000000001,
                "barcode": "test01",
                "pending_changes": null,
                "available": true,
                "buyable": false,
                "spv_id": "58e5b5f6af0a672afacf4568",
                "state": 1,
                "create_time": 1491449335,
                "status": 2,
                "spl_id": "58e5b5f5af0a672afacf4565",
                "top_image": null,
                "id": "58e5b5f7af0a672afacf456a",
                "barcode_type": "upc"
            }
        ],
        "spls": [],
        "spus": [],
        "spl_items": []
    },
    "error_msg": null,
    "success": true
}

Response parameters

名称 类型 说明
pending_changes Array 待审核的更改信息
spus Array SPU模块信息
spls Array SPL模块信息
spl_items Array SPL ITEM模块信息
spvs Array SPV模块信息
items Array ITEM模块信息
id String ITEM ID
available Bool true为可选择上架,false为不可选择上架
buyable Bool true为可售卖,实际上架状态, false为不可售卖,实际下架状态
top_image String 天王图
create_time Int 商品创建时间
update_time Int 最后更新时间
original_price Float 商品原价
tax Float 税金
pre_tax_price Float 税前价,跨境税商家必填
price Float 税后价,非跨境税商家必填
tax_rate Float 税率
logistics String ITEM的物流模式

补充说明

  1. state & status 具体状态码请参考商品状态码