简要描述:

  • 关联产品列表

请求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

返回示例:

正确时返回:


{
  "code": 0,
  "data": {
    "products": [
      {
        "id": 88,
        "quantity": 123,
        "product": {
          "id": 2,
          "name": "折叠旅行双肩包1",
          "product_no": "1151600031",
          "category": 0,
          "category_mapped": "",
          "standard_unit_price": "60.0",
          "sale_unit": "个",
          "introduction": "折叠前43*31*14CM(折叠后21.5*27*4CM)",
          "attachment": {},
          "gross_margin": "",
          "unit_cost": 21,
          "product_category": {
            "id": 1,
            "name": "默认分类"
          }
        },
        "standard_unit_price": "60.0",
        "total_price": 7380,
        "sale_unit": "个"
      }
    ],
    "total_count": 1,
    "per_page": 15,
    "page": 1
  }
}

错误时返回:


{
  "code": 100000,
  "message": "device参数错误",
  "error": "invalid_app_error"
}

返回参数说明:

暂无

备注:

文档更新时间: 2025-04-29 14:18   作者:陈胜海