闲管家开放平台
  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/batchCreate
注意事项:
1:字段参数要求与单个创建商品一致
2:每批次最多创建50个商品
3:同批次时item_key字段值要唯一

请求参数

Query 参数

Body 参数application/json

示例
{
    "product_data": [
        {
            "item_key": "item1",
            "item_biz_type": 2,
            "sp_biz_type": 1,
            "category_id": 50025386,
            "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": 100,
            "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": "哈哈哈",
                    "qc_result": "通过",
                    "images": [
                        "https://xxx.com/xxx1.jpg",
                        "https://xxx.com/xxx2.jpg"
                    ]
                },
                "game": {
                    "qc_no": "123123",
                    "qc_result": "符合",
                    "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",
                    "qc_result": "真品",
                    "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_result": "符合",
                    "images": [
                        "https://xxx.com/xxx1.jpg",
                        "https://xxx.com/xxx2.jpg"
                    ]
                }
            }
        }
    ]
}

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "msg": "OK",
    "data": {
        "success": [
            {
                "item_key": "string",
                "product_id": 0,
                "product_status": 0
            }
        ],
        "error": [
            {
                "item_key": "string",
                "msg": "string"
            }
        ]
    }
}
🟢200失败
修改于 2024-08-15 11:12:33
上一页
创建商品(单个)
下一页
上架商品
Built with