用友BIP采购入库来源生单保存_v1API接口文档
所属平台:
用友BIP
类型:
WebAPI
作用:
EXECUTE
接口版本:
0.1
适配器:
\Adapter\YYBIP\BIPExecuteAdapter
帮助链接:
https://open.diwork.com/#/doc-center/docDes/api?code=yonbip§ion=c51d50ae877b440f87549513ab32cd1d
描述:
更新日期:
2022-06-18 14:50:35
采购入库来源生单保存_v1
接口地址:/yonbip/scm/purinrecord/mergeSourceData/save
请求方法: POST
加工厂: {"operation":{"method":"none"}}
接口请求参数
| 序号 | 字段 | 名称 | 类型 | 默认值 | 描述 | 是否必要 |
|---|---|---|---|---|---|---|
| 1 | resubmitCheckKey | resubmitCheckKey | string | 1 | 该值由客户端生成,并且必须是全局唯一的长度不能超过32位。更多信息,请参见«MDD幂等性» | 是 |
| 2 | mergeSourceData | mergeSourceData | string | 1 | 固定值传入true。 | 是 |
| 3 | needCalcLines | needCalcLines | string | 1 | 不传或传入false时不对子表进行二次计算数量及价格相关从上游带入;为true时,以数量进行件数、计价数量相关反算,金额相关计算依据以参数calcLinesKey为准; | 否 |
| 4 | calcLinesKey | calcLinesKey | string | 1 | 不传或传入null时默认原币无税金额(oriMoney),支持传入:oriUnitPrice、oriTaxUnitPrice、oriMoney、oriSum、natUnitPrice、natTaxUnitPrice、natMoney、natSum。作为计算依据的金额类字段,表体中对应参数不可为空。 | 否 |
| 5 | code | code | string | 1 | 以系统编码规则配置为准:系统设置为手工编号时必输。系统设置为自动编号时非必输 | 否 |
| 6 | vouchdate | vouchdate | string | 1 | 日期格式:YYYYMMDD | 是 |
| 7 | bustype | bustype | string | 1 | 或交易类型code;业务流中未配置交易类型且未设置默认交易类型时必输。 | 否 |
| 8 | warehouse | warehouse | string | 1 | 或仓库code;上游单据未指定仓库时必输 | 否 |
| 9 | memo | memo | string | 1 | 111 | 否 |
| 10 | _status | _status | string | 1 | Insert:新增 | 是 |
| 11 | purInRecords | purInRecords | array | 1 | 111 | 是 |
| 12 | makeRuleCode | makeRuleCode | string | 1 | 固定值。订单入库:st_purchaseorder订单退库:st_purchaseorder3,退货入库:st_purchaseorder_return,到货入库:pu_arrivalorder | 是 |
| 13 | sourceid | sourceid | string | 1 | 111 | 是 |
| 14 | sourceautoid | sourceautoid | string | 1 | 111 | 是 |
| 15 | batchno | batchno | string | 1 | 批次管理的物料必输 | 否 |
| 16 | producedate | producedate | string | 1 | 效期管理的物料必输 | 否 |
| 17 | goodsposition | goodsposition | string | 1 | 或货位code;仓库为货位仓且开启了货位记存量时必输 | 否 |
| 18 | qty | qty | string | 1 | 默认上游带入,若传入数量请确保表体行计算标识needCalcLines=true,并确认calcLinesKey是否符合实际业务场景 | 否 |
| 19 | oriUnitPrice | oriUnitPrice | string | 1 | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 | 否 |
| 20 | oriTaxUnitPrice | oriTaxUnitPrice | string | 1 | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 | 否 |
| 21 | oriMoney | oriMoney | string | 1 | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 | 否 |
| 22 | oriSum | oriSum | string | 1 | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 | 否 |
| 23 | natUnitPrice | natUnitPrice | string | 1 | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 | 否 |
| 24 | natTaxUnitPrice | natTaxUnitPrice | string | 1 | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 | 否 |
| 25 | natMoney | natMoney | string | 1 | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 | 否 |
| 26 | natSum | natSum | string | 1 | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 | 否 |
| 27 | memo | memo | string | 1 | 111 | 否 |
| 28 | _status | _status | string | 1 | Insert:新增 | 是 |
| 29 | purInRecordsSNs | purInRecordsSNs | array | 1 | 111 | 否 |
| 30 | sn | sn | string | 1 | 存在序列号时必填 | 否 |
| 31 | _status | _status | string | 1 | Insert:新增,存在序列号时必填 | 否 |
接口响应参数
| 序号 | 字段 | 名称 | 类型 | 默认值 | 描述 | 是否必要 |
|---|
用友BIP的接口:采购入库来源生单保存_v1(/yonbip/scm/purinrecord/mergeSourceData/save),由轻易云数据集成平台API资产管理模块整理收纳,并且根据用友BIP版本更新同步实时更新。API资产管理平台支持API的市场推广和商业化,帮助企业发掘API的商业价值,拓展新的收入来源和业务模式。
