用友BIP销售订单单个保存_v1API接口文档
销售订单单个保存_v1
接口地址:/yonbip/sd/voucherorder/singleSave
请求方法: POST
加工厂: {"operation":{"method":"none"}}
接口请求参数
序号 | 字段 | 名称 | 类型 | 默认值 | 描述 | 是否必要 |
---|---|---|---|---|---|---|
1 | resubmitCheckKey | resubmitCheckKey | string | 1 | 保证请求的幂等性,该值由客户端生成,并且必须是全局唯一的,长度不能超过32位。更多信息,请参见«MDD幂等性» | 是 |
2 | salesOrgId | salesOrgId | string | 1 | 销售组织,传id或者code 示例:2282800216593664 | 是 |
3 | transactionTypeId | transactionTypeId | string | 1 | 交易类型,传id或者code 示例:2291507369660672 | 是 |
4 | vouchdate | vouchdate | string | 1 | 单据日期,格式为:yyyy-MM-dd HH:mm:ss 示例:2021-06-09 00:00:00 | 是 |
5 | code | code | string | 1 | 单据编码,以系统编码规则配置为准:系统设置为手工编号时必输,系统设置为自动编号时非必输;修改时必传 示例:UO-366420210609000004 | 否 |
6 | agentId | agentId | string | 1 | 客户,传id或者code 示例:2282507926999296 | 是 |
7 | corpContact | corpContact | string | 1 | 销售业务员,传id或者code 示例:1123123565864 | 否 |
8 | saleDepartmentId | saleDepartmentId | string | 1 | 销售部门,传id或者code 示例:3455313215 | 否 |
9 | retailInvestors | retailInvestors | string | 1 | 是否散户 示例:false | 否 |
10 | retailAgentName | retailAgentName | string | 1 | 散户名称 示例:abc | 否 |
11 | receiveContacter | receiveContacter | string | 1 | 客户联系人 示例:刘德华 | 否 |
12 | receiveContacterPhone | receiveContacterPhone | string | 1 | 客户联系电话 示例:19877754612 | 否 |
13 | settlementOrgId | settlementOrgId | string | 1 | 开票组织,传id或者code 示例:2282800216593664 | 是 |
14 | hopeReceiveDate | hopeReceiveDate | string | 1 | 希望到货日期,格式为:yyyy-MM-dd HH:mm:ss 示例:2021-06-28 00:00:00 | 否 |
15 | sendDate | sendDate | string | 1 | 计划发货日期,格式为:yyyy-MM-dd HH:mm:ss 示例:2021-06-23 00:00:00 | 否 |
16 | source | source | string | 1 | 单据来源, 0:PC、1:移动、2:导入、3:ERP、4:OPENAPI、 示例:0 | 否 |
17 | orderDate | orderDate | string | 1 | 订单日期,格式为:yyyy-MM-dd HH:mm:ss 示例:2021-06-09 11:34:26 | 否 |
18 | bizId | bizId | string | 1 | 商家id 示例:2281151360143616 | 否 |
19 | agentRelationId | agentRelationId | string | 1 | 客户交易关系id 示例:2282800485126656 | 否 |
20 | invoiceMoney | invoiceMoney | string | 1 | 发票金额 示例:0 | 否 |
21 | version | version | string | 1 | 版本号 示例:0 | 否 |
22 | isWfControlled | isWfControlled | string | 1 | 是否审批流控制 示例:false | 否 |
23 | orderPrices!currency | orderPrices!currency | string | 1 | 币种,传id或者code 示例:2281153755730176 | 是 |
24 | orderPrices!exchRate | orderPrices!exchRate | string | 1 | 汇率 示例:1 | 是 |
25 | orderPrices!exchangeRateType | orderPrices!exchangeRateType | string | 1 | 汇率类型,传id或者code 示例:0000KPC165PABLPTS60000 | 是 |
26 | orderPrices!natCurrency | orderPrices!natCurrency | string | 1 | 本币,传id或者code 示例:2281153755730176 | 是 |
27 | orderPrices!taxInclusive | orderPrices!taxInclusive | string | 1 | 单价含税 示例:true | 是 |
28 | creditBalance | creditBalance | string | 1 | 客户信用余额 示例:0 | 否 |
29 | agentTaxItem | agentTaxItem | string | 1 | 客户销项税率ID 示例:123555 | 否 |
30 | lockIn | lockIn | string | 1 | 标记锁 示例:false | 否 |
31 | bmake_voucher_delivery | bmake_voucher_delivery | string | 1 | 流程发货 示例:true | 否 |
32 | bizFlow | bizFlow | string | 1 | 流程ID 示例:19f1e925-c7fd-11eb-a68a-0624d60000dc | 否 |
33 | bizFlow_version | bizFlow_version | string | 1 | 版本信息 示例:V1.0 | 否 |
34 | isFlowCoreBill | isFlowCoreBill | string | 1 | 是否流程核心单据 示例:true | 否 |
35 | rebateValidFlag | rebateValidFlag | string | 1 | 返利有效标志 示例:false | 否 |
36 | id | id | string | 1 | 新增时无需填写,修改时必填 | 否 |
37 | receiveId | receiveId | string | 1 | 收货人id 示例:2282530502643968 | 否 |
38 | receiveZipCode | receiveZipCode | string | 1 | 收货人邮编 示例:010000 | 否 |
39 | receiveTelePhone | receiveTelePhone | string | 1 | 收货人固定电话 示例:010-7453214 | 否 |
40 | receiver | receiver | string | 1 | 收货人 示例:地址联系我 | 否 |
41 | receiveMobile | receiveMobile | string | 1 | 收货电话 示例:1879936325 | 否 |
42 | receiveAddress | receiveAddress | string | 1 | 收货地址 示例:123 | 否 |
43 | orderPayType | orderPayType | string | 1 | 支付方式, FIRSTPAY:款到发货、FIRSTDELIVER:其他、 示例:FIRSTDELIVER | 否 |
44 | settlement | settlement | string | 1 | 结算方式,传id或者code 示例:月结 | 否 |
45 | shippingChoiceId | shippingChoiceId | string | 1 | 发运方式, 传id或者code 示例:陆运 | 否 |
46 | invoiceAgentId | invoiceAgentId | string | 1 | 开票客户,传id或者code 示例:2282507926999296 | 是 |
47 | modifyInvoiceType | modifyInvoiceType | string | 1 | 发票类型可改, true:是、false:否、 示例:true | 否 |
48 | invoiceUpcType | invoiceUpcType | string | 1 | 发票类型, 0:收据、1:增值税专用发票、2:增值税普通发票、3:增值税电子普通发票、4:机动车销售销售统一发票、 示例:0 | 是 |
49 | invoiceTitle | invoiceTitle | string | 1 | 发票抬头 示例:2 | 否 |
50 | bankName | bankName | string | 1 | 开户银行 示例:中国工商银行 | 否 |
51 | subBankName | subBankName | string | 1 | 开户支行 示例:中国工商银行股份有限公司濮阳兴工支行 | 否 |
52 | promotionMoney | promotionMoney | string | 1 | 总优惠金额。可精确到6位小数。 示例:1333 | 否 |
53 | rebateMoney | rebateMoney | string | 1 | 折扣返利金额。可精确到6位小数。 示例:1333 | 否 |
54 | rebateCashMoney | rebateCashMoney | string | 1 | 抵现返利金额。可精确到6位小数。 示例:1333 | 否 |
55 | pointsMoney | pointsMoney | string | 1 | 积分抵扣金额。可精确到6位小数。 示例:1333 | 否 |
56 | reight | reight | string | 1 | 运费。可精确到6位小数 示例:10 | 否 |
57 | payMoney | payMoney | string | 1 | 合计含税金额。可精确到6位小数,需等于表体含税金额的合计。 示例:77.28 | 是 |
58 | orderPayMoney | orderPayMoney | string | 1 | 商品实付金额。可精确到6位小数。 示例:77.28 | 否 |
59 | realMoney | realMoney | string | 1 | 应收金额,和表头合计含税金额相等,可精确到6位小数。 示例:77.28 | 否 |
60 | orderRealMoney | orderRealMoney | string | 1 | 商品应付金额。可精确到6位小数。 示例:77.28 | 否 |
61 | orderPrices!totalMoneyOrigTaxfree | orderPrices!totalMoneyOrigTaxfree | string | 1 | 无税总金额 示例:1.0 | 否 |
62 | orderPrices!orderPayMoneyOrigTaxfree | orderPrices!orderPayMoneyOrigTaxfree | string | 1 | 商品实付无税金额 示例:73.6 | 否 |
63 | orderPrices!orderPayMoneyDomestic | orderPrices!orderPayMoneyDomestic | string | 1 | 商品本币含税实付金额 示例:77.28 | 否 |
64 | orderPrices!orderPayMoneyDomesticTaxfree | orderPrices!orderPayMoneyDomesticTaxfree | string | 1 | 商品本币无税金额 示例:73.6 | 否 |
65 | orderPrices!orderId | orderPrices!orderId | string | 1 | 新增时无需填写,修改时必填 示例:2293918375186688 | 否 |
66 | orderPrices!wholeDiscountRate | orderPrices!wholeDiscountRate | string | 1 | 整单扣率% 示例:100 | 否 |
67 | orderPrices!discountAfterMoney | orderPrices!discountAfterMoney | string | 1 | 整单折后金额 示例:1 | 否 |
68 | orderPrices!discountMoney | orderPrices!discountMoney | string | 1 | 折扣总金额 示例:1 | 否 |
69 | orderDetails | orderDetails | array | 1 | 销售订单子表[voucher.order.OrderDetail] | 否 |
70 | id | id | string | 1 | 订单子表id,新增时无需填写,修改时必填 示例:2293918375219456 | 否 |
71 | stockId | stockId | string | 1 | 仓库,传id或者code 示例:aaa | 否 |
72 | orderDetailPrices!discountRate | orderDetailPrices!discountRate | string | 1 | 扣率% 示例:100 | 否 |
73 | isExpiryDateManage | isExpiryDateManage | string | 1 | 是否有效期管理, true:是、false:否、 示例:false | 否 |
74 | bizId | bizId | string | 1 | 商家id 示例:2281151360143616 | 否 |
75 | orderDetailPrices!particularlyMoneyDomesticTaxfree | orderDetailPrices!particularlyMoneyDomesticTaxfree | string | 1 | 本币无税特殊优惠 | 否 |
76 | isSkuReserve | isSkuReserve | string | 1 | 是否支持预留 示例:false | 否 |
77 | orderDetailPrices!natSum | orderDetailPrices!natSum | string | 1 | 本币含税金额 示例:77.28 | 是 |
78 | orderDetailPrices!natMoney | orderDetailPrices!natMoney | string | 1 | 本币无税金额 示例:73.6 | 是 |
79 | productId | productId | string | 1 | 商品,传id或者code 示例:2293858192511232 | 是 |
80 | orderDetailPrices!orderDetailId | orderDetailPrices!orderDetailId | string | 1 | 订单详情id,新增时无需填写,修改时必填 示例:2293918375219456 | 否 |
81 | pointsMoney | pointsMoney | string | 1 | 积分抵扣金额 示例:0 | 否 |
82 | promotionMoney | promotionMoney | string | 1 | 促销 示例:0 | 否 |
83 | orderDetailPrices!saleCost_domestic_taxfree | orderDetailPrices!saleCost_domestic_taxfree | string | 1 | 报价本币无税金额 示例:0 | 否 |
84 | productId_priceListFlag | productId_priceListFlag | string | 1 | 价表取价标记 示例:1 | 否 |
85 | masterUnitId | masterUnitId | string | 1 | 主计量单位,传id或者code 示例:2281391353483520 | 是 |
86 | cusDiscountMoney | cusDiscountMoney | string | 1 | 报价扣额 示例:0 | 否 |
87 | invExchRate | invExchRate | string | 1 | 销售换算率 示例:4 | 是 |
88 | cusDiscountRate | cusDiscountRate | string | 1 | 报价扣率% 示例:0 | 否 |
89 | unitExchangeTypePrice | unitExchangeTypePrice | string | 1 | 浮动(销售) 示例:0 | 是 |
90 | orderDetailPrices!saleCost_orig_taxfree | orderDetailPrices!saleCost_orig_taxfree | string | 1 | 原币无税合计 示例:0 | 否 |
91 | orderDetailPrices!oriTax | orderDetailPrices!oriTax | string | 1 | 税额 示例:3.68 | 是 |
92 | particularlyMoney | particularlyMoney | string | 1 | 特殊优惠 示例:-77.28 | 否 |
93 | iProductAuxUnitId | iProductAuxUnitId | string | 1 | 销售单位,传id或者code 示例:2281391349666048 | 是 |
94 | orderDetailPrices!particularlyMoneyOrigTaxfree | orderDetailPrices!particularlyMoneyOrigTaxfree | string | 1 | 无税特殊优惠 示例:-77.28 | 否 |
95 | orderDetailPrices!natUnitPrice | orderDetailPrices!natUnitPrice | string | 1 | 本币无税单价 示例:3.2 | 是 |
96 | orderDetailPrices!saleCost_domestic | orderDetailPrices!saleCost_domestic | string | 1 | 报价本币含税金额 示例:0 | 否 |
97 | invPriceExchRate | invPriceExchRate | string | 1 | 计价换算率 示例:1 | 是 |
98 | isBatchManage | isBatchManage | string | 1 | 是否批次管理, true:是、false:否、 示例:false | 否 |
99 | orderDetailPrices!isDeleted | orderDetailPrices!isDeleted | string | 1 | 是否删除 示例:false | 否 |
100 | oriSum | oriSum | string | 1 | 含税金额。可精确到6位小数。 示例:77.28 | 是 |
101 | salePrice | salePrice | string | 1 | 含税报价 示例:22 | 否 |
102 | orderDetailPrices!oriMoney | orderDetailPrices!oriMoney | string | 1 | 无税金额 示例:73.6 | 是 |
103 | priceQty | priceQty | string | 1 | 计价数量 示例:23 | 是 |
104 | stockOrgId | stockOrgId | string | 1 | 库存组织id或库存组织code 示例:2282800216593664 | 是 |
105 | prodPrice | prodPrice | string | 1 | 基础报价 示例:0 | 否 |
106 | iProductUnitId | iProductUnitId | string | 1 | 计价单位,传id或者code 示例:2281391353483520 | 是 |
107 | orderDetailPrices!natTaxUnitPrice | orderDetailPrices!natTaxUnitPrice | string | 1 | 本币含税单价 示例:3.36 | 是 |
108 | orderProductType | orderProductType | string | 1 | 商品售卖类型, SALE:销售品、GIFT:赠品、MARKUP:加价购、REBATE:返利商品、 示例:SALE | 是 |
109 | subQty | subQty | string | 1 | 销售数量 示例:5.75 | 是 |
110 | consignTime | consignTime | string | 1 | 计划发货日期,格式为:yyyy-MM-dd HH:mm:ss 示例:2021-06-23 00:00:00 | 是 |
111 | skuId | skuId | string | 1 | 商品SKUid或SKUcode 示例:2293858201112832 | 是 |
112 | ordRealMoney | ordRealMoney | string | 1 | 应收金额。可精确到6位小数。 示例:77.28 | 否 |
113 | orderDetailPrices!salePrice_domestic | orderDetailPrices!salePrice_domestic | string | 1 | 报价本币含税单价 示例:0 | 否 |
114 | marketPricie | marketPricie | string | 1 | 物料/sku 价格 示例:0 | 否 |
115 | taxId | taxId | string | 1 | 税目税率,传id或者code 示例:2281153771049217 | 是 |
116 | qty | qty | string | 1 | 数量 示例:23 | 是 |
117 | realProductCode | realProductCode | string | 1 | 商品编码 示例:000023 | 否 |
118 | settlementOrgId | settlementOrgId | string | 1 | 开票组织,传id或者code 示例:2282800216593664 | 是 |
119 | oriTaxUnitPrice | oriTaxUnitPrice | string | 1 | 含税成交价,可精确到6位小数 示例:3.36 | 是 |
120 | orderDetailPrices!lineDiscountMoney | orderDetailPrices!lineDiscountMoney | string | 1 | 行折扣金额 示例:0 | 否 |
121 | orderDetailPrices!natTax | orderDetailPrices!natTax | string | 1 | 本币税额 示例:3.68 | 是 |
122 | isreserve | isreserve | string | 1 | 是否预留 示例:false | 否 |
123 | prodCost | prodCost | string | 1 | 基础报价金额 示例:0 | 否 |
124 | productId_pbatchName | productId_pbatchName | string | 1 | 商品包装单位 示例:1 | 否 |
125 | specDescription | specDescription | string | 1 | 规格描述 | 否 |
126 | orderDetailPrices!salePrice_domestic_taxfree | orderDetailPrices!salePrice_domestic_taxfree | string | 1 | 报价本币无税单价 示例:0 | 否 |
127 | unitExchangeType | unitExchangeType | string | 1 | 浮动(计价) 示例:0 | 是 |
128 | saleCost | saleCost | string | 1 | 报价含税金额。可精确到6位小数。 示例:0 | 否 |
129 | orderDetailPrices!oriUnitPrice | orderDetailPrices!oriUnitPrice | string | 1 | 无税成交价 示例:3.2 | 是 |
130 | salesOrgId | salesOrgId | string | 1 | 销售组织,传id或者code 示例:2282800216593664 | 否 |
131 | orderRebateMoney | orderRebateMoney | string | 1 | 返利整单折扣 示例:0 | 否 |
132 | cashRebateMoney | cashRebateMoney | string | 1 | 返利直接抵现 示例:0 | 否 |
133 | _status | _status | string | 1 | 操作标识, Insert:新增、Update:更新 示例:Insert | 是 |
134 | orderProductApportionName | orderProductApportionName | string | 1 | 分摊优惠 示例:特殊优惠省-77.2800; | 否 |
135 | projectId_code | projectId_code | string | 1 | 项目编码 示例:00023 | 否 |
136 | paymentSchedules | paymentSchedules | array | 1 | 收款协议 | 否 |
137 | startDateTime | startDateTime | string | 1 | 起算日 示例:2021-06-09 00:00:00 | 否 |
138 | fixAccoutDateTime | fixAccoutDateTime | string | 1 | 出账日 示例:2021-06-09 00:00:00 | 否 |
139 | expiringDateTime | expiringDateTime | string | 1 | 到期日 示例:2021-07-09 00:00:00 | 否 |
140 | number | number | string | 1 | 期号 示例:1 | 否 |
141 | name | name | string | 1 | 收款名称 示例:1 | 否 |
142 | payRatio | payRatio | string | 1 | 收款比例 示例:25 | 否 |
143 | startDate | startDate | string | 1 | 起算时点id 示例:2020875402352084 | 否 |
144 | startName | startName | string | 1 | 起算时点name 示例:订单单据日期 | 否 |
145 | accountType | accountType | string | 1 | 账期类型 示例:0 | 否 |
146 | accountUnit | accountUnit | string | 1 | 账期单位 示例:0 | 否 |
147 | accountDay | accountDay | string | 1 | 账期 示例:30 | 否 |
148 | currencyPk | currencyPk | string | 1 | 币种 示例:248f097be0e5fdaf0ad05b831bf61cbf | 否 |
149 | rate | rate | string | 1 | 汇率 示例:1 | 否 |
150 | natCurrencyPk | natCurrencyPk | string | 1 | 本币 示例:248f097be0e5fdaf0ad05b831bf61cbf | 否 |
151 | amount | amount | string | 1 | 收款金额 示例:41.67 | 否 |
152 | _status | _status | string | 1 | 操作标识, Insert:新增、Update:更新 示例:Insert | 否 |
153 | memo | memo | string | 1 | 备注 示例:222222 | 否 |
接口响应参数
序号 | 字段 | 名称 | 类型 | 默认值 | 描述 | 是否必要 |
---|
用友BIP的接口:销售订单单个保存_v1(/yonbip/sd/voucherorder/singleSave),由轻易云数据集成平台API资产管理模块整理收纳,并且根据用友BIP版本更新同步实时更新。API资产管理平台提供了丰富的API开发和测试工具,支持API的快速迭代和创新,加速产品的上市速度,提升企业的市场竞争力。