用友BIP物料档案保存_v1API接口文档
物料档案保存_v1
接口地址:/yonbip/digitalModel/product/save
请求方法: POST
加工厂: {"operation":{"method":"none"}}
接口请求参数
| 序号 | 字段 | 名称 | 类型 | 默认值 | 描述 | 是否必要 |
|---|---|---|---|---|---|---|
| 1 | access_token | access_token | string | 1 | 调用方应用token | 是 |
| 2 | detail | detail | object | 1 | 物料详情 | 是 |
| 3 | purchaseUnit | purchaseUnit | string | 1 | 采购单位id | 是 |
| 4 | purchaseUnit_Code | purchaseUnit_Code | string | 1 | 采购单位code | 否 |
| 5 | purchaseUnit_Name | purchaseUnit_Name | string | 1 | 采购单位名称 | 否 |
| 6 | inspectionUnit | inspectionUnit | long | 1 | 检验单位id | 否 |
| 7 | purchasePriceUnit | purchasePriceUnit | long | 1 | 采购计价单位id 示例:0 | 是 |
| 8 | stockUnit | stockUnit | string | 1 | 库存单位id | 是 |
| 9 | produceUnit | produceUnit | string | 1 | 生产单位id | 是 |
| 10 | batchUnit | batchUnit | string | 1 | 批发销售单位id | 是 |
| 11 | onlineUnit | onlineUnit | string | 1 | 线上零售单位id | 是 |
| 12 | offlineUnit | offlineUnit | string | 1 | 线下零售单位id | 是 |
| 13 | requireUnit | requireUnit | string | 1 | 要货单位id | 是 |
| 14 | deliverQuantityChange | deliverQuantityChange | string | 1 | 交货数量改变时, 1:单价不变重算金额、2:金额不变重算单价、 | 是 |
| 15 | orgId | orgId | string | 1 | 管理组织id | 是 |
| 16 | code | code | string | 1 | 物料编码 | 是 |
| 17 | name | name | muti_lang | 1 | 物料名称,支持多语 | 是 |
| 18 | manageClass | manageClass | string | 1 | 物料分类id | 是 |
| 19 | realProductAttribute | realProductAttribute | long | 1 | 物料类型,1:实物物料,2:虚拟物料 示例:0 | 是 |
| 20 | unitUseType | unitUseType | long | 1 | 设置规则, 1:使用物料模板的计量单位、2:使用物料自己的计量单位、 示例:0 | 是 |
| 21 | unit | unit | string | 1 | 主计量单位id | 是 |
| 22 | _status | _status | string | 1 | 操作标识, Insert:新增、Update:更新 | 是 |
| 23 | productOrgs | productOrgs | object | 1 | 物料分配的组织 | 是 |
| 24 | id | id | string | 1 | 主键ID 新增时无需填写,修改时必填 | 否 |
| 25 | pubts | pubts | string | 1 | 时间戳,格式为yyyy-MM-dd HHmmss | 否 |
| 26 | productId | productId | string | 1 | 物料ID | 否 |
| 27 | rangeType | rangeType | string | 1 | 物料分配范围类型 | 是 |
| 28 | orgId_code | orgId_code | string | 1 | 组织code | 否 |
| 29 | orgId | orgId | string | 1 | 组织ID | 否 |
| 30 | isCreator | isCreator | boolean | 1 | 是否创建者, true:是、false:否、 示例:true | 是 |
| 31 | isApplied | isApplied | boolean | 1 | 是否被分配者使用, true:是、false:否、 示例:true | 否 |
| 32 | _status | _status | string | 1 | 操作标识, Insert:新增、Update:更新 | 是 |
接口响应参数
| 序号 | 字段 | 名称 | 类型 | 默认值 | 描述 | 是否必要 |
|---|
用友BIP的接口:物料档案保存_v1(/yonbip/digitalModel/product/save),由轻易云数据集成平台API资产管理模块整理收纳,并且根据用友BIP版本更新同步实时更新。通过API资产管理,企业可以统一API的开发、部署和维护流程,降低跨部门协作的复杂性,提高团队的工作效率和协同能力。
