# 新增第三方货源信息

接口应在服务器端调用,不可在前端(小程序、网页、APP等)直接调用,具体可参考接口调用指南

接口英文名:addproductthirdpartysource

# 1. 调用方式

# HTTPS 调用

POST https://api.weixin.qq.com/channels/ec/product/addproductthirdpartysource?access_token=ACCESS_TOKEN

# 云调用

  • 本接口不支持云调用。

# 第三方调用

# 2. 请求参数

# 查询参数 Query String Parameters

参数名类型必填示例说明
access_tokenstringACCESS_TOKEN接口调用凭证,可使用 access_token(微信小店商家)、authorizer_access_token(服务商代调用)

# 请求体 Request Payload

参数名类型必填说明枚举
scene_valuenumber场景值枚举值
publish_methodnumber商品发布方式,scene_value == 3(其他场景) 时 必填枚举值
supplierobject货主-
supplier_shop_performanceobject货主店铺经营表现-
product_source_infoobject商品在货源平台的信息-

# Body.supplier Object Payload

货主

参数名类型必填说明枚举
supplier_namestring货主主体名称-
source_platform_typenumber货源平台类型,scene_value == 1(分销铺货) 或 scene_value == 2(商品搬家) 必填枚举值
source_platform_namestring货源平台名称,scene_value == 1(分销铺货) 或 scene_value == 2(商品搬家) 必填,当scene_value == 3(其他场景) 时,需入参平台名称-

# Body.supplier_shop_performance Object Payload

货主店铺经营表现

参数名类型必填说明
accept_rate_24hnumber24h揽收率
accept_rate_48hnumber48h揽收率
ship_count_30dnumber近30天代发数量
ship_count_7dnumber近7天代发数量
distribute_product_countnumber铺货分销商数量
on_time_ship_ratenumber店铺准时发货率
merchant_identitystring商家身份

# Body.product_source_info Object Payload

商品在货源平台的信息

参数名类型必填说明
visit_urlstring可访问链接
product_idstring商品ID
titlestring标题
head_img_urlsstringarray主图URL(含视频URL)
detail_img_urlsstringarray详情图URL
qualification_liststringarray商品资质列表
brandstring品牌
attr_listobjarray属性列表
sku_listobjarray规格列表
detail_descriptionstring详情描述
logistics_infoobject物流信息
service_guaranteestring支持的服务保障功能
delivery_timestring发货时效/承诺发货时间

# Body.product_source_info.attr_list(Array) Object Payload

属性列表

参数名类型必填说明枚举
attr_typenumber属性类型枚举值
attr_namestring属性名称-
attr_valuestring属性值-

# Body.product_source_info.sku_list(Array) Object Payload

规格列表

参数名类型必填示例说明
sku_idstring""sku ID
spec_namestring""规格名称
spec_valuestring""规格值
sku_imgstring""sku图
pricenumber0价格
stocknumber0库存
stock_typenumber0库存类型

# Body.product_source_info.logistics_info Object Payload

物流信息

参数名类型必填说明
freight_infostring运费信息
logistics_templatestring物流模版

# 3. 返回参数

# 返回体 Response Payload

参数名类型说明
third_party_source_idnumber货源id
errcodenumber错误码
errmsgstring错误信息

# 4. 枚举信息

# Body.scene_value Enum

场景值

枚举值描述
1分销铺货
2商品搬家
3其他场景

# Body.publish_method Enum

商品发布方式,scene_value == 3(其他场景) 时 必填

枚举值描述
1资料包发布
2系统发布
3其他

# Body.supplier.source_platform_type Enum

货源平台类型,scene_value == 1(分销铺货) 或 scene_value == 2(商品搬家) 必填

枚举值描述
11688
2拼多多
3其他

# Body.product_source_info.attr_list(Array).attr_type Enum

属性类型

枚举值描述
1文本
2单选
3多选
4整数
5小数
6整数+单位
7小数+单位

# 5. 注意事项

本接口无特殊注意事项

# 6. 代码示例

请求示例

{
    "scene_value": 1,
    "publish_method": 1,
    "supplier": {
        "supplier_name": "广州某某贸易有限公司",
        "source_platform_type": 1,
        "source_platform_name": "1688"
    },
    "supplier_shop_performance": {
        "accept_rate_24h": 95,
        "accept_rate_48h": 98,
        "ship_count_30d": 500,
        "ship_count_7d": 120,
        "distribute_product_count": 50,
        "on_time_ship_rate": 97,
        "merchant_identity": "源头工厂"
    },
    "product_source_info": {
        "visit_url": "https://detail.1688.com/offer/123456789.html",
        "product_id": "123456789",
        "title": "2026新款纯棉短袖T恤男女同款宽松圆领半袖",
        "head_img_urls": [
            "xxx",
            "xxx",
            "xxx"
        ],
        "detail_img_urls": [
            "xxx",
            "xxx"
        ],
        "qualification_list": [
            "xxx",
            "xxx"
        ],
        "brand": "xxx",
        "attr_list": [
            {
                "attr_type": 1,
                "attr_name": "面料材质",
                "attr_value": "纯棉"
            },
            {
                "attr_type": 2,
                "attr_name": "适用季节",
                "attr_value": "夏季"
            },
            {
                "attr_type": 2,
                "attr_name": "领型",
                "attr_value": "圆领"
            },
            {
                "attr_type": 6,
                "attr_name": "克重",
                "attr_value": "230g"
            },
            {
                "attr_type": 1,
                "attr_name": "袖型",
                "attr_value": "常规袖"
            }
        ],
        "sku_list": [
            {
                "sku_id": "sku_white_s",
                "spec_name": "颜色",
                "spec_value": "白色-S",
                "sku_img": "https://mmecimage.cn/p/wxc16458b33be42c61/sku_white.jpg",
                "price": 5900,
                "stock": 200,
                "stock_type": 1
            },
            {
                "sku_id": "sku_white_m",
                "spec_name": "颜色",
                "spec_value": "白色-M",
                "sku_img": "https://mmecimage.cn/p/wxc16458b33be42c61/sku_white.jpg",
                "price": 5900,
                "stock": 350,
                "stock_type": 1
            },
            {
                "sku_id": "sku_black_s",
                "spec_name": "颜色",
                "spec_value": "黑色-S",
                "sku_img": "https://mmecimage.cn/p/xxx/sku_black.jpg",
                "price": 5900,
                "stock": 180,
                "stock_type": 1
            },
            {
                "sku_id": "sku_black_m",
                "spec_name": "颜色",
                "spec_value": "黑色-M",
                "sku_img": "https://mmecimage.cn/p/xxx/sku_black.jpg",
                "price": 5900,
                "stock": 420,
                "stock_type": 1
            },
            {
                "sku_id": "sku_grey_l",
                "spec_name": "颜色",
                "spec_value": "灰色-L",
                "sku_img": "https://mmecimage.cn/p/xxx/sku_grey.jpg",
                "price": 6900,
                "stock": 100,
                "stock_type": 1
            }
        ],
        "detail_description": "面料采用新疆长绒棉,克重230g,亲肤透气不易变形。宽松版型,男女同款,适合日常通勤休闲穿搭。",
        "logistics_info": {
            "freight_info": "满99包邮",
            "logistics_template": "全国包邮(偏远地区除外)"
        },
        "service_guarantee": "7天无理由退换,正品保障,极速退款",
        "delivery_time": "24小时内发货"
    }
}

返回示例

{
    "third_party_source_id": 12345,
    "errcode": 0,
    "errmsg": ""
}

# 7. 错误码

此接口没有特殊错误码,可参考 通用错误码;调用接口遇到报错,可使用官方提供的 API 诊断工具 辅助定位和分析问题。

# 8. 适用范围

本接口支持「微信小店」账号类型调用。其他账号类型如无特殊说明,均不可调用。

接口变更日志(3条)
2026 年 05 月 14 日
更新 sku_idspec_nameprice 等字段必填状态和描述
2026 年 04 月 30 日
更新 publish_methodsource_platform_typesource_platform_name 字段描述
2026 年 04 月 22 日
新增 新增第三方货源信息 接口