/yonbip/scm/purinrecord/mergeSourceData/save{
"operation": {
"method": "none"
}
}| No. | Field | Name | Type | Default | Required | Description |
|---|---|---|---|---|---|---|
| 1 | resubmitCheckKey | resubmitCheckKey | string | 1 | Required | 该值由客户端生成,并且必须是全局唯一的长度不能超过32位。更多信息,请参见«MDD幂等性» |
| 2 | mergeSourceData | mergeSourceData | string | 1 | Required | 固定值传入true。 |
| 3 | needCalcLines | needCalcLines | string | 1 | Optional | 不传或传入false时不对子表进行二次计算数量及价格相关从上游带入;为true时,以数量进行件数、计价数量相关反算,金额相关计算依据以参数calcLinesKey为准; |
| 4 | calcLinesKey | calcLinesKey | string | 1 | Optional | 不传或传入null时默认原币无税金额(oriMoney),支持传入:oriUnitPrice、oriTaxUnitPrice、oriMoney、oriSum、natUnitPrice、natTaxUnitPrice、natMoney、natSum。作为计算依据的金额类字段,表体中对应参数不可为空。 |
| 5 | code | code | string | 1 | Optional | 以系统编码规则配置为准:系统设置为手工编号时必输。系统设置为自动编号时非必输 |
| 6 | vouchdate | vouchdate | string | 1 | Required | 日期格式:YYYYMMDD |
| 7 | bustype | bustype | string | 1 | Optional | 或交易类型code;业务流中未配置交易类型且未设置默认交易类型时必输。 |
| 8 | warehouse | warehouse | string | 1 | Optional | 或仓库code;上游单据未指定仓库时必输 |
| 9 | memo | memo | string | 1 | Optional | 111 |
| 10 | _status | _status | string | 1 | Required | Insert:新增 |
| 11 | purInRecords | purInRecords | array | 1 | Required | 111 |
| 12 | makeRuleCode | makeRuleCode | string | 1 | Required | 固定值。订单入库:st_purchaseorder订单退库:st_purchaseorder3,退货入库:st_purchaseorder_return,到货入库:pu_arrivalorder |
| 13 | sourceid | sourceid | string | 1 | Required | 111 |
| 14 | sourceautoid | sourceautoid | string | 1 | Required | 111 |
| 15 | batchno | batchno | string | 1 | Optional | 批次管理的物料必输 |
| 16 | producedate | producedate | string | 1 | Optional | 效期管理的物料必输 |
| 17 | goodsposition | goodsposition | string | 1 | Optional | 或货位code;仓库为货位仓且开启了货位记存量时必输 |
| 18 | qty | qty | string | 1 | Optional | 默认上游带入,若传入数量请确保表体行计算标识needCalcLines=true,并确认calcLinesKey是否符合实际业务场景 |
| 19 | oriUnitPrice | oriUnitPrice | string | 1 | Optional | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 20 | oriTaxUnitPrice | oriTaxUnitPrice | string | 1 | Optional | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 21 | oriMoney | oriMoney | string | 1 | Optional | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 22 | oriSum | oriSum | string | 1 | Optional | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 23 | natUnitPrice | natUnitPrice | string | 1 | Optional | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 24 | natTaxUnitPrice | natTaxUnitPrice | string | 1 | Optional | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 25 | natMoney | natMoney | string | 1 | Optional | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 26 | natSum | natSum | string | 1 | Optional | 仅在表头参数表体行计算标识needCalcLines=true,且calcLinesKey指定当前字段为计算依据时生效。 |
| 27 | memo | memo | string | 1 | Optional | 111 |
| 28 | _status | _status | string | 1 | Required | Insert:新增 |
| 29 | purInRecordsSNs | purInRecordsSNs | array | 1 | Optional | 111 |
| 30 | sn | sn | string | 1 | Optional | 存在序列号时必填 |
| 31 | _status | _status | string | 1 | Optional | Insert:新增,存在序列号时必填 |
No parameter reference available
The 采购入库来源生单保存_v1 API (/yonbip/scm/purinrecord/mergeSourceData/save) of 用友BIP is curated by the API asset management module of the Qeasy Cloud data integration platform and kept in sync with 用友BIP version updates.
Qeasy ships with prebuilt adaptation for this API — contact us to start configuring data integration.