商品信息
大约 15 分钟开发文档API接口文档
商品信息
v1.0.0
Base URLs:
Authentication
商品信息
GET 商品详情
GET /front/pt/product/detail
商品详情
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
districtId | query | integer | 否 | 配送地区 |
gbId | query | integer | 否 | 拼团活动编号 |
itemId | query | integer | 否 | SKU编号 |
返回示例
200 Response
{
"code": 0,
"data": {
"activity": {},
"activity_type_ids": "string",
"assists": [
{
"assist_format": "string",
"assist_id": 0,
"assist_is_search": false,
"assist_item": "string",
"assist_name": "string",
"assist_sort": 0,
"category_id": 0,
"items": [
{
"assist_id": 0,
"assist_item_id": 0,
"assist_item_name": "string",
"assist_item_sort": 0
}
],
"type_id": 0
}
],
"brand_id": 0,
"category_id": 0,
"children": [
{
"category_commission_rate": 0,
"category_id": 0,
"category_image": "string",
"category_is_enable": false,
"category_name": "string",
"category_parent_id": 0,
"category_sort": 0,
"type_id": 0
}
],
"contract_type_ids": "string",
"contracts": [
{
"contract_type_buildin": false,
"contract_type_deposit": 0,
"contract_type_desc": "string",
"contract_type_enable": false,
"contract_type_icon": "string",
"contract_type_id": 0,
"contract_type_name": "string",
"contract_type_order": 0,
"contract_type_text": "string",
"contract_type_url": "string"
}
],
"freight": 0,
"if_store": false,
"image": {
"color_id": 0,
"color_name": "string",
"item_image_default": "string",
"item_image_other": "string",
"item_video": "string",
"product_id": 0,
"product_image_id": 0,
"store_id": 0
},
"is_favorite": false,
"item_id": 0,
"item_row": {
"activity_id": 0,
"activity_info": {
"activity_base": {
"activity_addtime": "2019-08-24T14:15:22Z",
"activity_endtime": 0,
"activity_id": 0,
"activity_is_finish": 0,
"activity_name": "string",
"activity_remark": "string",
"activity_rule": "string",
"activity_sort": 0,
"activity_starttime": 0,
"activity_state": 0,
"activity_title": "string",
"activity_type": 0,
"activity_type_id": 0,
"activity_use_level": "string",
"store_id": 0,
"subsite_id": "string",
"user_id": 0
},
"activity_id": 0,
"activity_item_endtime": 0,
"activity_item_id": 0,
"activity_item_min_quantity": 0,
"activity_item_price": 0,
"activity_item_recommend": false,
"activity_item_starttime": 0,
"activity_item_state": 0,
"activity_type_id": 0,
"category_id": 0,
"item_id": 0,
"product_id": 0,
"store_id": 0
},
"available_quantity": 0,
"category_id": 0,
"color_id": 0,
"item_barcode": "string",
"item_cost_price": 0,
"item_enable": 0,
"item_fx_commission": 0,
"item_id": 0,
"item_is_change": false,
"item_is_default": false,
"item_market_price": 0,
"item_name": "string",
"item_number": "string",
"item_quantity": 0,
"item_quantity_frozen": 0,
"item_rebate": 0,
"item_sale_price": 0,
"item_save_price": 0,
"item_spec": "string",
"item_src_id": 0,
"item_unit_points": 0,
"item_unit_price": 0,
"item_volume": 0,
"item_warn_quantity": 0,
"item_weight": 0,
"product_id": 0,
"product_item_name": "string",
"spec_item_ids": "string",
"store_id": 0
},
"items": [
{
"activity_id": 0,
"activity_info": {
"activity_base": {
"activity_addtime": "2019-08-24T14:15:22Z",
"activity_endtime": 0,
"activity_id": 0,
"activity_is_finish": 0,
"activity_name": "string",
"activity_remark": "string",
"activity_rule": "string",
"activity_sort": 0,
"activity_starttime": 0,
"activity_state": 0,
"activity_title": "string",
"activity_type": 0,
"activity_type_id": 0,
"activity_use_level": "string",
"store_id": 0,
"subsite_id": "string",
"user_id": 0
},
"activity_id": 0,
"activity_item_endtime": 0,
"activity_item_id": 0,
"activity_item_min_quantity": 0,
"activity_item_price": 0,
"activity_item_recommend": false,
"activity_item_starttime": 0,
"activity_item_state": 0,
"activity_type_id": 0,
"category_id": 0,
"item_id": 0,
"product_id": 0,
"store_id": 0
},
"available_quantity": 0,
"category_id": 0,
"color_id": 0,
"item_barcode": "string",
"item_cost_price": 0,
"item_enable": 0,
"item_fx_commission": 0,
"item_id": 0,
"item_is_change": false,
"item_is_default": false,
"item_market_price": 0,
"item_name": "string",
"item_number": "string",
"item_quantity": 0,
"item_quantity_frozen": 0,
"item_rebate": 0,
"item_sale_price": 0,
"item_save_price": 0,
"item_spec": "string",
"item_src_id": 0,
"item_unit_points": 0,
"item_unit_price": 0,
"item_volume": 0,
"item_warn_quantity": 0,
"item_weight": 0,
"product_id": 0,
"product_item_name": "string",
"spec_item_ids": "string",
"store_id": 0
}
],
"kind_id": 0,
"last_comment": {
"chain_id": 0,
"comment_content": "string",
"comment_enable": false,
"comment_helpful": 0,
"comment_id": 0,
"comment_image": "string",
"comment_images": [
"string"
],
"comment_is_anonymous": false,
"comment_nohelpful": 0,
"comment_points": 0,
"comment_reply": {
"comment_id": 0,
"comment_reply_content": "string",
"comment_reply_enable": false,
"comment_reply_id": 0,
"comment_reply_isadmin": false,
"comment_reply_time": "2019-08-24T14:15:22Z",
"user_id": 0,
"user_id_to": 0,
"user_name": "string",
"user_name_to": "string"
},
"comment_scores": 0,
"comment_time": "2019-08-24T14:15:22Z",
"helpful": 0,
"item_id": 0,
"item_name": "string",
"order_id": "string",
"product_id": 0,
"store_id": 0,
"store_name": "string",
"subsite_id": 0,
"user_avatar": "string",
"user_id": 0,
"user_name": "string"
},
"last_comments": [
{
"chain_id": 0,
"comment_content": "string",
"comment_enable": false,
"comment_helpful": 0,
"comment_id": 0,
"comment_image": "string",
"comment_images": [
"string"
],
"comment_is_anonymous": false,
"comment_nohelpful": 0,
"comment_points": 0,
"comment_reply": {
"comment_id": 0,
"comment_reply_content": "string",
"comment_reply_enable": false,
"comment_reply_id": 0,
"comment_reply_isadmin": false,
"comment_reply_time": "2019-08-24T14:15:22Z",
"user_id": 0,
"user_id_to": 0,
"user_name": "string",
"user_name_to": "string"
},
"comment_scores": 0,
"comment_time": "2019-08-24T14:15:22Z",
"helpful": 0,
"item_id": 0,
"item_name": "string",
"order_id": "string",
"product_id": 0,
"store_id": 0,
"store_name": "string",
"subsite_id": 0,
"user_avatar": "string",
"user_id": 0,
"user_name": "string"
}
],
"market_category_id": "string",
"markets": [
{}
],
"product_add_time": 0,
"product_assist_data": "string",
"product_buy_limit": 0,
"product_click": 0,
"product_detail": "string",
"product_dist_enable": false,
"product_evaluation_num": 0,
"product_favorite_num": 0,
"product_freight": 0,
"product_from": 0,
"product_id": 0,
"product_image": "string",
"product_inventory_lock": 0,
"product_is_invoices": false,
"product_is_lock": false,
"product_is_recommend": false,
"product_is_return": false,
"product_is_video": false,
"product_item_name": "string",
"product_name": "string",
"product_name_index": "string",
"product_number": "string",
"product_order": 0,
"product_quantity": 0,
"product_region_district_ids": "string",
"product_sale_district_ids": "string",
"product_sale_num": 0,
"product_sale_time": 0,
"product_service_type_ids": "string",
"product_sp_enable": false,
"product_spec": "string",
"product_src_id": 0,
"product_state_id": 0,
"product_stock_status": false,
"product_tags": "string",
"product_tips": "string",
"product_transport_id": "string",
"product_uniqid": "string",
"product_unit_points_max": 0,
"product_unit_points_min": 0,
"product_unit_price_max": 0,
"product_unit_price_min": 0,
"product_verify_id": 0,
"product_video": "string",
"product_warn_quantity": 0,
"store_category_ids": "string",
"store_id": 0,
"store_is_open": false,
"store_is_selfsupport": false,
"store_latitude": 0,
"store_longitude": 0,
"store_type": false,
"subsite_id": 0,
"transport_type_id": 0,
"type_id": 0
},
"error": "string",
"msg": "string",
"status": 0
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | OK | Inline |
401 | Unauthorized | Unauthorized | Inline |
403 | Forbidden | Forbidden | Inline |
404 | Not Found | Not Found | Inline |
GET 商品评价表查询
GET /front/pt/product/getComment
商品评价表查询
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
chainId | query | integer | 否 | 门店编号 |
commentId | query | integer | 否 | 评价编号 |
commentType | query | integer | 否 | 评论类型 |
createTimeEnd | query | string | 否 | 创建时间结束值 |
createTimeStart | query | string | 否 | 创建时间起始值 |
itemId | query | integer | 否 | 产品编号 |
itemName | query | string | 否 | 商品规格 |
like[0].column | query | string | 否 | 搜索字段 |
like[0].like | query | string | 否 | 搜索字符 |
onlyHasPic | query | integer | 否 | 是否只加载包含图片的评论 |
order[0].sidx | query | string | 否 | 排序字段 |
order[0].sort | query | string | 否 | 排序方式 |
page | query | integer | 否 | 分页查询页码 |
productId | query | integer | 否 | 产品编号 |
sidx | query | string | 否 | 排序字段 |
size | query | integer | 否 | 分页查询每页数量 |
sort | query | string | 否 | 排序方式 |
返回示例
200 Response
{
"code": 0,
"data": {
"bad": 0,
"good": 0,
"items": [
{}
],
"page": 0,
"records": 0,
"satisfied": 0,
"size": 0,
"total": 0
},
"error": "string",
"msg": "string",
"status": 0
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | OK | Inline |
401 | Unauthorized | Unauthorized | Inline |
403 | Forbidden | Forbidden | Inline |
404 | Not Found | Not Found | Inline |
GET 商品分类过滤属性
GET /front/pt/product/getSearchFilter
商品分类过滤属性
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
category_id | query | integer | 是 | category_id |
返回示例
200 Response
{
"code": 0,
"data": {
"assists": [
{
"assist_format": "string",
"assist_id": 0,
"assist_is_search": false,
"assist_item": "string",
"assist_name": "string",
"assist_sort": 0,
"category_id": 0,
"items": [
{
"assist_id": 0,
"assist_item_id": 0,
"assist_item_name": "string",
"assist_item_sort": 0
}
],
"type_id": 0
}
],
"children": [
{
"category_commission_rate": 0,
"category_id": 0,
"category_image": "string",
"category_is_enable": false,
"category_name": "string",
"category_parent_id": 0,
"category_sort": 0,
"type_id": 0
}
],
"contracts": [
{
"contract_type_buildin": false,
"contract_type_deposit": 0,
"contract_type_desc": "string",
"contract_type_enable": false,
"contract_type_icon": "string",
"contract_type_id": 0,
"contract_type_name": "string",
"contract_type_order": 0,
"contract_type_text": "string",
"contract_type_url": "string"
}
],
"markets": [
{}
]
},
"error": "string",
"msg": "string",
"status": 0
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | OK | Inline |
401 | Unauthorized | Unauthorized | Inline |
403 | Forbidden | Forbidden | Inline |
404 | Not Found | Not Found | Inline |
GET 商品列表查询
GET /front/pt/product/list
商品列表查询
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
activityTypeIds | query | string | 否 | 参与活动(DOT) |
assist | query | string | 否 | 辅助属性值列(DOT):assist_item_id每个都不用 , setFilter(tagid, array(2,3,4));是表示含有标签值2,3,4中的任意一个即符合筛选,这里是or关系。 setFilter(‘tagid’, array(2)); setFilter(‘tagid’, array(3)); 形成and关系 |
brandId | query | string | 否 | 品牌编号 |
categoryId | query | integer | 否 | 商品分类 |
contractTypeIds | query | string | 否 | 消费者保障(DOT):由店铺映射到商品 |
createTimeEnd | query | string | 否 | 创建时间结束值 |
createTimeStart | query | string | 否 | 创建时间起始值 |
itemIds | query | string | 否 | 商品编号(DOT) |
keywords | query | string | 否 | 搜索关键词 |
kindId | query | integer | 否 | 商品种类:1201-实物;1202-虚拟 |
like[0].column | query | string | 否 | 搜索字段 |
like[0].like | query | string | 否 | 搜索字符 |
marketCategoryId | query | string | 否 | 所属商圈(DOT) |
order[0].sidx | query | string | 否 | 排序字段 |
order[0].sort | query | string | 否 | 排序方式 |
page | query | integer | 否 | 分页查询页码 |
productAddTime | query | integer | 否 | 添加时间 |
productClick | query | integer | 否 | 商品点击数量 |
productDistEnable | query | string | 否 | 三级分销允许分销(BOOL):1-启用分销;0-禁用分销 |
productEvaluationNum | query | integer | 否 | 评价次数 |
productFavoriteNum | query | integer | 否 | 收藏数量人气 |
productFreight | query | number | 否 | 运费:包邮为0,检索使用 |
productId | query | integer | 否 | 产品编号:定为SPU编号 |
productIsInvoices | query | string | 否 | 是否开票(BOOL): 1-是; 0-否 |
productIsRecommend | query | string | 否 | 商品推荐(BOOL):1-是; 0-否 |
productIsReturn | query | string | 否 | 是否允许退换货(BOOL): 1-是; 0-否 |
productIsVideo | query | string | 否 | 是否视频(BOOL):1-有视频;0-无视频 |
productName | query | string | 否 | 产品名称:店铺平台先在对用表中检索后通过id检索,检索使用 |
productNumber | query | string | 否 | SPU商家编码:货号 |
productOrder | query | integer | 否 | 排序:越小越靠前 |
productQuantity | query | integer | 否 | 商品库存:冗余计算 |
productRegionDistrictIds | query | string | 否 | 所属区域(DOT) |
productSaleDistrictIds | query | string | 否 | 销售区域(DOT): district_id=1000全部区域 |
productSaleNum | query | integer | 否 | 销售量 |
productSaleTime | query | integer | 否 | 上架时间:预设上架时间,可以动态修正状态 |
productServiceTypeIds | query | string | 否 | 售后服务(DOT) |
productSpEnable | query | string | 否 | 允许分销(BOOL):1-启用分销;0-禁用分销 |
productSrcId | query | integer | 否 | 产品来源编号 |
productStateId | query | integer | 否 | 商品状态:1001-正常;1002-下架仓库中;1003-待审核; 1000-违规禁售 |
productStockStatus | query | string | 否 | 缺货状态(ENUM):1-有现货;2-预售商品;3-缺货;4-2至3天 |
productTags | query | string | 否 | 商品标签(DOT) |
productTransportId | query | string | 否 | 配送服务(ENUM):1001-快递发货;1002-到店自提;1003-上门服务 |
productUnitPoints | query | number | 否 | 商品积分 |
productUnitPointsMax | query | number | 否 | 商品积分 |
productUnitPriceMax | query | number | 否 | 商品最高单价 |
productUnitPriceMin | query | number | 否 | 商品单价 |
productVerifyId | query | integer | 否 | 商品审核(ENUM):3001-审核通过;3002-审核中;3000-审核未通过 |
productWarnQuantity | query | integer | 否 | 预警数量 |
sidx | query | string | 否 | 排序字段 |
size | query | integer | 否 | 分页查询每页数量 |
sort | query | string | 否 | 排序方式 |
storeCategoryIds | query | string | 否 | 店铺分类编号(DOT) |
storeId | query | integer | 否 | 店铺编号 |
storeIsOpen | query | string | 否 | 店铺状态(BOOL):0-关闭;1-运营中 |
storeIsSelfsupport | query | string | 否 | 是否自营(BOOL):1-自营;0-非自营 |
storeLatitude | query | number | 否 | 纬度 |
storeLongitude | query | number | 否 | 经度 |
storeType | query | string | 否 | 店铺类型(ENUM): 1-卖家店铺; 2-供应商店铺 |
subsiteId | query | integer | 否 | 所属分站:0-总站 |
typeId | query | integer | 否 | 类型编号:冗余检索 |
返回示例
200 Response
{
"code": 0,
"data": {
"assists": [
{
"assist_format": "string",
"assist_id": 0,
"assist_is_search": false,
"assist_item": "string",
"assist_name": "string",
"assist_sort": 0,
"category_id": 0,
"items": [
{
"assist_id": 0,
"assist_item_id": 0,
"assist_item_name": "string",
"assist_item_sort": 0
}
],
"type_id": 0
}
],
"items": [
{
"activity": {},
"activity_type_ids": "string",
"brand_id": 0,
"category_id": 0,
"contract_type_ids": "string",
"item_id": 0,
"items": [
{
"activity_id": 0,
"activity_info": {
"activity_base": {
"activity_addtime": "2019-08-24T14:15:22Z",
"activity_endtime": 0,
"activity_id": 0,
"activity_is_finish": 0,
"activity_name": "string",
"activity_remark": "string",
"activity_rule": "string",
"activity_sort": 0,
"activity_starttime": 0,
"activity_state": 0,
"activity_title": "string",
"activity_type": 0,
"activity_type_id": 0,
"activity_use_level": "string",
"store_id": 0,
"subsite_id": "string",
"user_id": 0
},
"activity_id": 0,
"activity_item_endtime": 0,
"activity_item_id": 0,
"activity_item_min_quantity": 0,
"activity_item_price": 0,
"activity_item_recommend": false,
"activity_item_starttime": 0,
"activity_item_state": 0,
"activity_type_id": 0,
"category_id": 0,
"item_id": 0,
"product_id": 0,
"store_id": 0
},
"available_quantity": 0,
"category_id": 0,
"color_id": 0,
"item_barcode": "string",
"item_cost_price": 0,
"item_enable": 0,
"item_fx_commission": 0,
"item_id": 0,
"item_is_change": false,
"item_is_default": false,
"item_market_price": 0,
"item_name": "string",
"item_number": "string",
"item_quantity": 0,
"item_quantity_frozen": 0,
"item_rebate": 0,
"item_sale_price": 0,
"item_save_price": 0,
"item_spec": "string",
"item_src_id": 0,
"item_unit_points": 0,
"item_unit_price": 0,
"item_volume": 0,
"item_warn_quantity": 0,
"item_weight": 0,
"product_id": 0,
"product_item_name": "string",
"spec_item_ids": "string",
"store_id": 0
}
],
"kind_id": 0,
"market_category_id": "string",
"product_add_time": 0,
"product_assist_data": "string",
"product_buy_limit": 0,
"product_click": 0,
"product_dist_enable": false,
"product_evaluation_num": 0,
"product_favorite_num": 0,
"product_freight": 0,
"product_from": 0,
"product_id": 0,
"product_image": "string",
"product_inventory_lock": 0,
"product_is_invoices": false,
"product_is_lock": false,
"product_is_recommend": false,
"product_is_return": false,
"product_is_video": false,
"product_item_name": "string",
"product_name": "string",
"product_name_index": "string",
"product_number": "string",
"product_order": 0,
"product_quantity": 0,
"product_region_district_ids": "string",
"product_sale_district_ids": "string",
"product_sale_num": 0,
"product_sale_time": 0,
"product_service_type_ids": "string",
"product_sp_enable": false,
"product_spec": "string",
"product_src_id": 0,
"product_state_id": 0,
"product_stock_status": false,
"product_tags": "string",
"product_tips": "string",
"product_transport_id": "string",
"product_uniqid": "string",
"product_unit_points_max": 0,
"product_unit_points_min": 0,
"product_unit_price_max": 0,
"product_unit_price_min": 0,
"product_verify_id": 0,
"product_video": "string",
"product_warn_quantity": 0,
"store_category_ids": "string",
"store_id": 0,
"store_is_open": false,
"store_is_selfsupport": false,
"store_latitude": 0,
"store_longitude": 0,
"store_type": false,
"subsite_id": 0,
"transport_type_id": 0,
"type_id": 0
}
],
"page": 0,
"records": 0,
"size": 0,
"total": 0
},
"error": "string",
"msg": "string",
"status": 0
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | OK | Inline |
401 | Unauthorized | Unauthorized | Inline |
403 | Forbidden | Forbidden | Inline |
404 | Not Found | Not Found | Inline |
GET 商品分类表-分页列表查询
GET /front/pt/product/listCategory
商品分类表-分页列表查询
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
categoryIsEnable | query | string | 否 | 是否启用(BOOL):0-不显示;1-显示 |
categoryName | query | string | 否 | 分类名称 |
categoryParentId | query | integer | 否 | 分类父编号 |
createTimeEnd | query | string | 否 | 创建时间结束值 |
createTimeStart | query | string | 否 | 创建时间起始值 |
like[0].column | query | string | 否 | 搜索字段 |
like[0].like | query | string | 否 | 搜索字符 |
order[0].sidx | query | string | 否 | 排序字段 |
order[0].sort | query | string | 否 | 排序方式 |
page | query | integer | 否 | 分页查询页码 |
sidx | query | string | 否 | 排序字段 |
size | query | integer | 否 | 分页查询每页数量 |
sort | query | string | 否 | 排序方式 |
返回示例
200 Response
{
"code": 0,
"data": {
"items": [
{
"category_commission_rate": 0,
"category_id": 0,
"category_image": "string",
"category_is_enable": false,
"category_name": "string",
"category_parent_id": 0,
"category_sort": 0,
"type_id": 0
}
],
"page": 0,
"records": 0,
"size": 0,
"total": 0
},
"error": "string",
"msg": "string",
"status": 0
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | OK | Inline |
401 | Unauthorized | Unauthorized | Inline |
403 | Forbidden | Forbidden | Inline |
404 | Not Found | Not Found | Inline |
GET 商品SKU列表查询
GET /front/pt/product/listItem
商品SKU列表查询
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
activityTypeIds | query | string | 否 | 参与活动(DOT) |
brandId | query | integer | 否 | 品牌编号 |
categoryId | query | integer | 否 | 商品分类 |
contractTypeIds | query | string | 否 | 消费者保障(DOT):由店铺映射到商品 |
createTimeEnd | query | string | 否 | 创建时间结束值 |
createTimeStart | query | string | 否 | 创建时间起始值 |
itemBarcode | query | string | 否 | 条形码 |
itemCostPrice | query | number | 否 | 成本价 |
itemEnable | query | integer | 否 | 是否启用(LIST):1001-正常;1002-下架仓库中;1000-违规禁售 |
itemId | query | string | 否 | 产品编号:定为SPU编号 |
itemIndex | query | string | 否 | 副标题(DOT):SKU名称 |
itemIsChange | query | string | 否 | 被改动(BOOL):0-未改动;1-已改动分销使用 |
itemIsDefault | query | string | 否 | 是否为默认展示的商品-列表页展示,必须为item_enable |
itemMarketPrice | query | number | 否 | 市场价 |
itemNumber | query | string | 否 | SKU商家编码:SKU商家编码为非必填项,若不填写,系统会自动生成一个SKU商家编码。 |
itemQuantity | query | integer | 否 | 商品库存 |
itemQuantityFrozen | query | integer | 否 | 商品冻结库存 |
itemSrcId | query | integer | 否 | 供应商SKU编号 |
itemUnitPoints | query | number | 否 | 积分价格 |
itemUnitPrice | query | number | 否 | 商品价格 |
keywords | query | string | 否 | 搜索关键词 |
kindId | query | integer | 否 | 商品种类:1201-实物;1202-虚拟 |
like[0].column | query | string | 否 | 搜索字段 |
like[0].like | query | string | 否 | 搜索字符 |
marketCategoryId | query | string | 否 | 所属商圈(DOT) |
order[0].sidx | query | string | 否 | 排序字段 |
order[0].sort | query | string | 否 | 排序方式 |
page | query | integer | 否 | 分页查询页码 |
productAddTime | query | integer | 否 | 添加时间 |
productAssistData | query | string | 否 | 辅助属性值列(DOT):assist_item_id每个都不用 , setFilter(tagid, array(2,3,4));是表示含有标签值2,3,4中的任意一个即符合筛选,这里是or关系。 setFilter(‘tagid’, array(2)); setFilter(‘tagid’, array(3)); 形成and关系 |
productClick | query | integer | 否 | 商品点击数量 |
productDistEnable | query | string | 否 | 三级分销允许分销(BOOL):1-启用分销;0-禁用分销 |
productEvaluationNum | query | integer | 否 | 评价次数 |
productFavoriteNum | query | integer | 否 | 收藏数量人气 |
productFreight | query | number | 否 | 运费:包邮为0,检索使用 |
productId | query | integer | 否 | 产品编号:定为SPU编号 |
productIsInvoices | query | string | 否 | 是否开票(BOOL): 1-是; 0-否 |
productIsRecommend | query | string | 否 | 商品推荐(BOOL):1-是; 0-否 |
productIsReturn | query | string | 否 | 是否允许退换货(BOOL): 1-是; 0-否 |
productIsVideo | query | string | 否 | 是否视频(BOOL):1-有视频;0-无视频 |
productName | query | string | 否 | 产品名称:店铺平台先在对用表中检索后通过id检索,检索使用 |
productNumber | query | string | 否 | SPU商家编码:货号 |
productOrder | query | integer | 否 | 排序:越小越靠前 |
productRegionDistrictIds | query | string | 否 | 所属区域(DOT) |
productSaleDistrictIds | query | string | 否 | 销售区域(DOT): district_id=1000全部区域 |
productSaleNum | query | integer | 否 | 销售量 |
productSaleTime | query | integer | 否 | 上架时间:预设上架时间,可以动态修正状态 |
productServiceTypeIds | query | string | 否 | 售后服务(DOT) |
productSpEnable | query | string | 否 | 允许分销(BOOL):1-启用分销;0-禁用分销 |
productSrcId | query | integer | 否 | 产品来源编号 |
productStateId | query | integer | 否 | 商品状态:1001-正常;1002-下架仓库中;1003-待审核; 1000-违规禁售 |
productStockStatus | query | string | 否 | 缺货状态(ENUM):1-有现货;2-预售商品;3-缺货;4-2至3天 |
productTags | query | string | 否 | 商品标签(DOT) |
productTransportId | query | string | 否 | 配送服务(ENUM):1001-快递发货;1002-到店自提;1003-上门服务 |
productUnitPoints | query | number | 否 | 商品积分 |
productUnitPointsMax | query | number | 否 | 商品积分 |
productUnitPriceMax | query | number | 否 | 商品最高单价 |
productUnitPriceMin | query | number | 否 | 商品单价 |
productVerifyId | query | integer | 否 | 商品审核(ENUM):3001-审核通过;3002-审核中;3000-审核未通过 |
sidx | query | string | 否 | 排序字段 |
size | query | integer | 否 | 分页查询每页数量 |
sort | query | string | 否 | 排序方式 |
storeCategoryIds | query | string | 否 | 店铺分类编号(DOT) |
storeId | query | integer | 否 | 店铺编号 |
storeIsOpen | query | string | 否 | 店铺状态(BOOL):0-关闭;1-运营中 |
storeIsSelfsupport | query | string | 否 | 是否自营(BOOL):1-自营;0-非自营 |
storeType | query | string | 否 | 店铺类型(ENUM): 1-卖家店铺; 2-供应商店铺 |
subsiteId | query | integer | 否 | 所属分站:0-总站 |
typeId | query | integer | 否 | 类型编号:冗余检索 |
返回示例
200 Response
{
"code": 0,
"data": {
"assists": [
{
"assist_format": "string",
"assist_id": 0,
"assist_is_search": false,
"assist_item": "string",
"assist_name": "string",
"assist_sort": 0,
"category_id": 0,
"items": [
{
"assist_id": 0,
"assist_item_id": 0,
"assist_item_name": "string",
"assist_item_sort": 0
}
],
"type_id": 0
}
],
"items": [
{
"activity_id": 0,
"activity_info": {
"activity_base": {
"activity_addtime": "2019-08-24T14:15:22Z",
"activity_endtime": 0,
"activity_id": 0,
"activity_is_finish": 0,
"activity_name": "string",
"activity_remark": "string",
"activity_rule": "string",
"activity_sort": 0,
"activity_starttime": 0,
"activity_state": 0,
"activity_title": "string",
"activity_type": 0,
"activity_type_id": 0,
"activity_use_level": "string",
"store_id": 0,
"subsite_id": "string",
"user_id": 0
},
"activity_id": 0,
"activity_item_endtime": 0,
"activity_item_id": 0,
"activity_item_min_quantity": 0,
"activity_item_price": 0,
"activity_item_recommend": false,
"activity_item_starttime": 0,
"activity_item_state": 0,
"activity_type_id": 0,
"category_id": 0,
"item_id": 0,
"product_id": 0,
"store_id": 0
},
"available_quantity": 0,
"category_id": 0,
"color_id": 0,
"item_barcode": "string",
"item_cost_price": 0,
"item_enable": 0,
"item_fx_commission": 0,
"item_id": 0,
"item_is_change": false,
"item_is_default": false,
"item_market_price": 0,
"item_name": "string",
"item_number": "string",
"item_quantity": 0,
"item_quantity_frozen": 0,
"item_rebate": 0,
"item_sale_price": 0,
"item_save_price": 0,
"item_spec": "string",
"item_spec_name": "string",
"item_src_id": 0,
"item_unit_points": 0,
"item_unit_price": 0,
"item_volume": 0,
"item_warn_quantity": 0,
"item_weight": 0,
"product_buy_limit": 0,
"product_id": 0,
"product_image": "string",
"product_item_name": "string",
"product_name": "string",
"product_number": "string",
"product_state_id": 0,
"product_tips": "string",
"product_video": "string",
"spec_item_ids": "string",
"store_id": 0,
"transport_type_id": 0
}
],
"page": 0,
"records": 0,
"size": 0,
"total": 0
},
"error": "string",
"msg": "string",
"status": 0
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | OK | Inline |
401 | Unauthorized | Unauthorized | Inline |
403 | Forbidden | Forbidden | Inline |
404 | Not Found | Not Found | Inline |
GET 商品树形分类
GET /front/pt/product/treeCategory
商品树形分类
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
categoryIsEnable | query | string | 否 | 是否启用(BOOL):0-不显示;1-显示 |
categoryName | query | string | 否 | 分类名称 |
categoryParentId | query | integer | 否 | 分类父编号 |
createTimeEnd | query | string | 否 | 创建时间结束值 |
createTimeStart | query | string | 否 | 创建时间起始值 |
like[0].column | query | string | 否 | 搜索字段 |
like[0].like | query | string | 否 | 搜索字符 |
order[0].sidx | query | string | 否 | 排序字段 |
order[0].sort | query | string | 否 | 排序方式 |
page | query | integer | 否 | 分页查询页码 |
sidx | query | string | 否 | 排序字段 |
size | query | integer | 否 | 分页查询每页数量 |
sort | query | string | 否 | 排序方式 |
返回示例
200 Response
{
"code": 0,
"data": [
{
"category_commission_rate": 0,
"category_id": 0,
"category_image": "string",
"category_is_enable": false,
"category_name": "string",
"category_parent_id": 0,
"category_sort": 0,
"children": [
null
],
"type_id": 0
}
],
"error": "string",
"msg": "string",
"status": 0
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | OK | Inline |
401 | Unauthorized | Unauthorized | Inline |
403 | Forbidden | Forbidden | Inline |
404 | Not Found | Not Found | Inline |