/yonbip/scm/salesout/single/save{
"operation": {
"method": "none"
}
}| 序号 | 字段 | 名称 | 类型 | 默认值 | 必填 | 描述 |
|---|---|---|---|---|---|---|
| 1 | receiveAccountingBasis | receiveAccountingBasis | string | 1 | 必填 | 立账开票依据, voucher_order:销售订单、voucher_delivery:销售发货单、st_salesout:销售出库单、unsettle:不结算、 示例:st_salesout |
| 2 | salesoutAccountingMethod | salesoutAccountingMethod | string | 1 | 必填 | 出库立账方式, salesoutEstimate:出库暂估应收、salesoutConfirm:出库确认应收、invoiceConfirm:开票确认应收、 示例:salesoutConfirm |
| 3 | accountOrg | accountOrg | string | 1 | 必填 | 会计主体id或编码 示例:guanlong_001 |
| 4 | org | org | string | 1 | 必填 | 发货组织id或编码 示例:guanlong_001 |
| 5 | salesOrg | salesOrg | string | 1 | 必填 | 销售组织id或编码 示例:guanlong_001 |
| 6 | invoiceOrg | invoiceOrg | string | 1 | 必填 | 开票组织id或编码 示例:guanlong_001 |
| 7 | vouchdate | vouchdate | string | 1 | 必填 | 单据日期 示例:2020-11-30 00:00:00 |
| 8 | code | code | string | 1 | 可选 | 单据编号 示例:XSCK20201130000002 |
| 9 | bustype | bustype | string | 1 | 必填 | 交易类型id或编码 示例:A30001 |
| 10 | warehouse | warehouse | string | 1 | 必填 | 仓库id或编码 示例:Z001 |
| 11 | stockMgr | stockMgr | string | 1 | 可选 | 库管员ID或编码 示例:A000005 |
| 12 | invoiceCust | invoiceCust | string | 1 | 可选 | 开票客户ID或编码,如果使用信用服务则必输 示例:_001000002 |
| 13 | cust | cust | string | 1 | 必填 | 客户id或编码 示例:_001000002 |
| 14 | srcBillType | srcBillType | string | 1 | 必填 | 来源类型, 0:无来源、st_purinrecord:采购入库单、1:发货单、2:销售订单、3:退货单、tradeorder:电商订单、refundorder:电商退换货订单、retailvouch:零售单、mallvouch:商城发货单、 示例:0 |
| 15 | retailInvestors | retailInvestors | boolean | 1 | 可选 | 是否散户, true:是、false:否、 示例:false |
| 16 | natCurrency | natCurrency | string | 1 | 必填 | 本币id或编码 示例:CNY |
| 17 | currency | currency | string | 1 | 必填 | 币种id或编码 示例:CNY |
| 18 | exchRateType | exchRateType | string | 1 | 可选 | 汇率类型id 示例:lzu07egu |
| 19 | exchRate | exchRate | long | 1 | 可选 | 汇率 示例:1 |
| 20 | modifyInvoiceType | modifyInvoiceType | string | 1 | 可选 | 发票类型是否可改:"1"可改;“0”不可改 示例:1 |
| 21 | invoiceUpcType | invoiceUpcType | string | 1 | 可选 | 发票类型,"0":收据 "1":增值税专用发票 "2":增值税普通发票 "3":增值税电子普通发票 "4":机动车销售销售统一发票 "5":增值税电子普通发票(成品油) "6":增值税普通发票(成品油) "7":增值税专用发票(成品油) "8":电子收购发票 "9":增值税电子专用发票 示例:0 |
| 22 | invoiceTitleType | invoiceTitleType | string | 1 | 可选 | 抬头类型,"0":企业 "1":个人 "2":非营利组织 示例:0 |
| 23 | invoiceTitle | invoiceTitle | string | 1 | 可选 | 发票抬头 示例:AA股份有限公司 |
| 24 | taxNum | taxNum | string | 1 | 可选 | 纳税识别号 示例:141241 |
| 25 | bankName | bankName | string | 1 | 可选 | 开户银行 示例:招商银行 |
| 26 | subBankName | subBankName | string | 1 | 可选 | 开户支行 示例:海淀永丰支行 |
| 27 | bankAccount | bankAccount | string | 1 | 可选 | 银行账号 示例:34234234234234234 |
| 28 | invoiceTelephone | invoiceTelephone | string | 1 | 可选 | 营业电话 示例:123324234 |
| 29 | invoiceAddress | invoiceAddress | string | 1 | 可选 | 营业地址 示例:某区某路34号 |
| 30 | operator | operator | string | 1 | 可选 | 销售员id或编码 示例:A001 |
| 31 | iLogisticId | iLogisticId | string | 1 | 可选 | 物流公司id或者编码 示例:sf |
| 32 | sourcesys | sourcesys | string | 1 | 可选 | 有来源时必填,来源单据领域,udinghuo:销售,retail:零售,dst:电商 |
| 33 | details | details | array | 1 | 必填 | 销售出库单子表[st.salesout.SalesOuts] |
| 34 | _status | _status | string | 1 | 必填 | 操作标识, Insert:新增、Update:更新 示例:Insert |
| 35 | source | source | string | 1 | 必填 | 来源单据类型, 0:无来源、st_purinrecord:采购入库单、1:发货单、2:销售订单、3:退货单、tradeorder:电商订单、refundorder:电商退换货订单、retailvouch:零售单、mallvouch:商城发货单、 示例:0 |
| 36 | taxRate | taxRate | long | 1 | 必填 | 税率 示例:0 |
| 37 | product | product | string | 1 | 必填 | 物料id或编码 示例:121000089 |
| 38 | productsku | productsku | string | 1 | 必填 | 商品SKUid或编码 示例:121000089 |
| 39 | invExchRate | invExchRate | long | 1 | 必填 | 换算率 示例:1 |
| 40 | qty | qty | long | 1 | 必填 | 数量 示例:12 |
| 41 | stockUnit | stockUnit | string | 1 | 必填 | 库存单位id或编码 示例:fgl_004 |
| 42 | saleStyle | saleStyle | string | 1 | 可选 | 商品售卖方式, SALE:销售品、GIFT:赠品、REBATE:返利商品、 示例:SALE |
| 43 | oriSum | oriSum | long | 1 | 必填 | 含税金额 示例:24 |
| 44 | priceUOM | priceUOM | string | 1 | 必填 | 计价单位id或编码 示例:fgl_004 |
| 45 | invPriceExchRate | invPriceExchRate | long | 1 | 必填 | 计价换算率 示例:1 |
| 46 | taxUnitPriceTag | taxUnitPriceTag | boolean | 1 | 必填 | 价格含税, true:是、false:否、 示例:true |
| 47 | unitExchangeType | unitExchangeType | long | 1 | 必填 | 库存单位转换率的换算方式 0:固定 1:浮动 示例:0 |
| 48 | orderId | orderId | long | 1 | 必填 | 销售订单id 示例:564654646546 |
| 49 | orderDetailId | orderDetailId | long | 1 | 可选 | 销售订单行id 示例:543532181358321 |
| 50 | orderCode | orderCode | string | 1 | 可选 | 销售订单编码 示例:XSDD1111111 |
| 51 | sourceid | sourceid | long | 1 | 可选 | 来源单据主表id,如果有来源则必输 |
| 52 | sourceautoid | sourceautoid | long | 1 | 可选 | 来源单据行id,有来源必输 |
| 53 | upcode | upcode | string | 1 | 可选 | 来源单据编号,有来源时必输 |
| 54 | makeRuleCode | makeRuleCode | string | 1 | 可选 | 单据转换规则,有来源时必输,deliveryTostoreout:发货单生销售出库,salereturnTosalesout:退货单生销售出库,orderTosalesout:销售订单生销售出库 |
| 55 | batchno | batchno | string | 1 | 可选 | 批次号,仓库商品均开启批次管理则必填 |
| 56 | taxId | taxId | string | 1 | 必填 | 税目id或编码 示例:8b99f589-bc47-4c3a-bfqw-13d78cad20b0 |
| 57 | goodsposition | goodsposition | string | 1 | 可选 | 货位,仓库开启货位则必填 示例:whhw2467516 |
| 58 | salesOutsSNs | salesOutsSNs | array | 1 | 可选 | 销售出库单孙表[st.salesout.SalesOutsSN] |
| 59 | _status | _status | string | 1 | 可选 | 操作标识, Insert:新增、Update:更新 示例:Insert |
| 60 | sn | sn | string | 1 | 可选 | 序列号,仓库商品均开启序列号管理则必填 示例:qwer85 |
| 61 | _status | _status | string | 1 | 必填 | 操作标识, Insert:新增、Update:更新 示例:Insert |
暂无参数说明
用友BIP的接口:销售出库单个保存_v1(/yonbip/scm/salesout/single/save),由轻易云数据集成平台 API 资产管理模块整理收纳,并随用友BIP版本更新同步更新。