闲管家开放平台
  1. 商品
闲管家开放平台
  • 接入说明
  • 代码示例
  • 用户
    • 查询闲鱼店铺
      POST
    • 查询商家地址
      POST
  • 商品
    • 查询商品类目
      POST
    • 查询商品属性
      POST
    • 查询商品列表
      POST
    • 查询商品详情
      POST
    • 查询商品规格
      POST
    • 创建商品(单个)
      POST
    • 创建商品(批量)
      POST
    • 上架商品
      POST
    • 下架商品
      POST
    • 编辑商品
      POST
    • 编辑库存
      POST
    • 删除商品
      POST
  • 订单
    • 查询订单列表
      POST
    • 查询订单详情
      POST
    • 订单卡密列表
      POST
    • 订单物流发货
      POST
    • 订单修改价格
      POST
  • 推送
    • 商品回调通知
      POST
    • 商品推送通知
      POST
    • 订单推送通知
      POST
  • 其他
    • 查询快递公司
      POST
  1. 商品

创建商品(单个)

POST
https://open.goofish.pro/api/open/product/create
注意事项:
item_biz_type、sp_biz_type、channel_cat_id 存在依赖关系,务必传入正确

请求参数

Query 参数

Body 参数application/json

示例
{
    "item_biz_type": 2,
    "sp_biz_type": 1,
    "channel_cat_id": "e11455b218c06e7ae10cfa39bf43dc0f",
    "channel_pv": [
        {
            "property_id": "b5e5462c028aba7f1921b9e373cead75",
            "property_name": "交易形式",
            "value_id": "8a3445658e0bc44687b43d68bdc44732",
            "value_name": "代下单"
        },
        {
            "property_id": "96ad8793a2fdb81bb108d382c4e6ea42",
            "property_name": "面值",
            "value_id": "38ed5f6522cd7ab6",
            "value_name": "100元"
        }
    ],
    "price": 550000,
    "original_price": 700000,
    "express_fee": 10,
    "stock": 10,
    "outer_id": "2021110112345",
    "stuff_status": 100,
    "publish_shop": [
        {
            "images": [
                "https://xxx.com/xxx1.jpg",
                "https://xxx.com/xxx2.jpg"
            ],
            "user_name": "闲鱼会员名",
            "province": 130000,
            "city": 130100,
            "district": 130101,
            "title": "商品标题",
            "content": "商品描述。",
            "service_support": "SDR"
        }
    ],
    "sku_items": [
        {
            "price": 500000,
            "stock": 10,
            "outer_id": "",
            "sku_text": "颜色:白色;容量:128G"
        },
        {
            "price": 600000,
            "stock": 10,
            "outer_id": "",
            "sku_text": "颜色:白色;容量:256G"
        },
        {
            "price": 500000,
            "stock": 10,
            "outer_id": "",
            "sku_text": "颜色:黑色;容量:128G"
        },
        {
            "price": 600000,
            "stock": 10,
            "outer_id": "",
            "sku_text": "颜色:黑色;容量:256G"
        }
    ],
    "book_data": {
        "title": "北京法源寺",
        "author": "李敖",
        "publisher": "中国友谊出版公司",
        "isbn": "9787505720176"
    },
    "food_data": {
        "pack": "罐装",
        "spec": "150",
        "brand": "伏特加伏特加",
        "expire": {
            "num": 360,
            "unit": "天"
        },
        "production": {
            "date": "2021-11-29",
            "address": {
                "detail": "北京市东城区x街道",
                "province": 130000,
                "city": 130100,
                "district": 130101
            }
        }
    },
    "report_data": {
        "used_car": {
            "report_url": "https://xxxxxx.com"
        },
        "beauty_makeup": {
            "org_id": 181,
            "brand": "欧莱雅",
            "spec": "小瓶装",
            "level": "全新",
            "org_name": "哈哈哈",
            "images": [
                "https://xxx.com/xxx1.jpg",
                "https://xxx.com/xxx2.jpg"
            ]
        },
        "game": {
            "qc_no": "123123",
            "qc_desc": "符合",
            "title": "测试游戏",
            "platform": "小霸王",
            "images": [
                "https://xxx.com/xxx1.jpg",
                "https://xxx.com/xxx2.jpg"
            ]
        },
        "curio": {
            "org_id": 191,
            "org_name": "NGC评级",
            "size": "12mmx14mm",
            "material": "陶瓷",
            "qc_no": "3131319",
            "images": [
                "https://xxx.com/xxx1.jpg",
                "https://xxx.com/xxx2.jpg"
            ]
        },
        "jewelry": {
            "org_name": "某某平台",
            "shape": "圆形",
            "color": "白色",
            "weight": "125g",
            "qc_no": "3131319",
            "qc_desc": "无瑕疵",
            "images": [
                "https://xxx.com/xxx1.jpg",
                "https://xxx.com/xxx2.jpg"
            ]
        },
        "valuable": {
            "org_id": 162,
            "org_name": "国检",
            "qc_no": "454545",
            "qc_desc": "经检测符合制造商公示的制作工艺",
            "images": [
                "https://xxx.com/xxx1.jpg",
                "https://xxx.com/xxx2.jpg"
            ]
        },
        "yx_3c": {
            "class_id": 10,
            "subclass_id": 1001,
            "brand_id": 10000,
            "brand_name": "苹果",
            "model_id": 10011,
            "model_name": "iPhone 14 Pro",
            "model_sn": "IMEI/序列号",
            "report_user": "张胜男",
            "report_time": "2024-03-15 18:04:44",
            "report_items": [
                {
                    "answer_id": 11103,
                    "answer_name": "不开机",
                    "answer_type": 2,
                    "category_name": "拆修侵液",
                    "group_name": "系统情况",
                    "question_name": "系统情况"
                }
            ],
            "answer_ids": [
                11103,
                11106
            ]
        }
    }
}

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "msg": "OK",
    "data": {
        "product_id": 219530767978565,
        "product_status": 21
    }
}
🟢200失败
修改于 2025-05-31 03:26:27
上一页
查询商品规格
下一页
创建商品(批量)
Built with