简要描述:
- 关联产品列表
请求URL:
/api/v2/products/product_assets
请求方式:
- GET
请求头:
- 请参考接口必读
请求参数:
| 字段名 | 是否必填 | 描述 |
|---|---|---|
| page | false | 页码 |
| per_page | false | 每页的数量 |
| entity_type | true | 实体(contract, opportunity) |
| entity_id | true | 实体id |
contract, opportunity等实体详细页面的产品tab传入 entity, entity_id
返回示例:
正确时返回:
- 关联产品自定义子字段也会返回,字段名通过by_group接口取得
{ "code": 0, "data": { "total_price": 330.5, "products": [ { "id": 6002816, "quantity": 123, "product": { "id": 2701541, "name": "海阔天空", "product_no": "sdmdmm2332", "standard_unit_price": "3.5", "sale_unit": "瓶", "introduction": "回电话回电话", "attachment": [], "gross_margin": "63.0%", "unit_cost": "1.3", "created_at": "2025-10-27 15:24", "updated_at": "2026-04-21 15:58", "is_edit": true, "iced": false, "product_category": { "id": 2600003, "name": "功能饮料", "self_and_parents_name": "进销存产品/自定义产品分类/功能饮料", "product_count": 0, "path": "0/700002/800701/2600003" }, "price_policy": "unit", "product_attr_names": null, "is_user_self": false, "is_creator_self": false, "third_product_id": "8389489", "channel": 2083348, "channel_mapped": "QQ", "shop": { "id": 1211, "name": "rrr" }, "from_outside_dingdan": false, "lock_status": false, "spec": "spec", "product_attrs": [] }, "standard_unit_price": "3.5", "total_price": "330.5", "sale_unit": "瓶", "discount": "1.0", "recommended_unit_price": "3.5", "remark": "", "iced": false, "product_id": 2701541, "name": "海阔天空", "product_no": "sdmdmm2332", "is_user_self": false, "is_creator_self": false, "numeric_asset_4e6451": "297.45", "text_asset_ca125c": "sel_2335", "text_asset_bcf678": "opt_0001", "text_asset_c76bea": "单行1", "text_area_asset_15a096": null, "text_asset_e163c0": null, "numeric_asset_633565": null, "numeric_asset_3b1529": null, "text_asset_4d6c66": [], "text_asset_7e93b0": null, "datetime_asset_a1e1da": "", "text_asset_e163c0_hidden_result": "", "text_asset_ca125c_display": "22", "text_asset_bcf678_display": "b", "text_asset_4d6c66_display": "", "text_asset_ca125c_other": null, "text_asset_bcf678_other": null, "product_attr": null } ], "total_count": 1, "per_page": 15, "page": 1 } }
错误时返回:
{
"code": 100000,
"message": "device参数错误",
"error": "invalid_app_error"
}
返回参数说明:
暂无
备注:
- 更多返回错误代码请看错误码表描述
文档更新时间: 2026-07-02 09:30 作者:陈胜海