轻易云
注册体验

用友BIP销售退货单个保存_v1接口

所属平台
用友BIP
类型
WebAPI
作用
EXECUTE
接口版本
0.1
适配器
\Adapter\YYBIP\BIPExecuteAdapter
授权方式
OTHER
更新日期
2022-06-18

销售退货单个保存_v1

POST/yonbip/sd/vouchersalereturn/singleSave
加工厂
{
  "operation": {
    "method": "none"
  }
}

接口请求参数

序号字段名称类型默认值必填描述
1resubmitCheckKeyresubmitCheckKeystring1必填保证请求的幂等性,该值由客户端生成,并且必须是全局唯一的,长度不能超过32位。更多信息,请参见«MDD幂等性»
2ididstring1可选单据主表id 新增时无需填写,修改时必填    示例:3123432154321
3codecodestring1可选单据编码,以系统编码规则配置为准:系统设置为手工编号时必输,系统设置为自动编号时非必输;修改时必传    示例:"S0T5-0000000000-20210831-000000"
4salesOrgIdsalesOrgIdstring1可选销售组织,传id或者code    示例:2163951720681984
5transactionTypeIdtransactionTypeIdstring1必填交易类型,传id或者code    示例:2155547426656517
6agentIdagentIdstring1必填客户,传id或者code    示例:2251598175195392
7retailInvestorsretailInvestorsstring1可选是否散户, true:是、false:否、    示例:false
8saleDepartmentIdsaleDepartmentIdstring1必填销售部门,传id或者code    示例:"2163953113665792"
9vouchdatevouchdatestring1必填单据日期    示例:"2021-08-31 00:00:00"
10corpContactcorpContactstring1可选销售业务员    示例:"2163960865427712"
11settlementOrgIdsettlementOrgIdstring1必填开票组织,传id或者code    示例:"2163951720681984"
12currencycurrencystring1可选币种,传id或者code    示例:"2155547424560384"
13exchangeRateTypeexchangeRateTypestring1可选汇率类型,传id或者code    示例:"csrka3z7"
14natCurrencynatCurrencystring1可选本币,传id或者code    示例:"2155547424560384"
15retailAgentNameretailAgentNamestring1必填散户名称    示例:"散户2"
16saleReturnMemosaleReturnMemoobject1可选备注
17remarkremarkstring1可选备注    示例:"销售退货"
18agentTaxItemagentTaxItemstring1可选客户销项税率ID    示例:"2155547427149061"
19bizIdbizIdstring1可选供应商id    示例:2155538208313600
20agentRelationIdagentRelationIdstring1可选客户交易关系id    示例:55555656565
21refundStatusrefundStatusstring1可选退货单退款状态,由系统业务自动生成,接口无需传值。    示例:"NONE"
22refundAmountrefundAmountstring1可选退款金额    示例:1
23isWfControlledisWfControlledstring1可选是否受审批流控制    示例:false
24exchRateexchRatestring1必填汇率    示例:1
25taxInclusivetaxInclusivestring1必填单价含税, true:是、false:否、    示例:true
26saleReturnStatussaleReturnStatusstring1可选单据状态, 由系统业务自动生成,接口无需传值    示例:"SUBMITSALERETURN"    默认值:SUBMITSALERETURN
27saleReturnSourceTypesaleReturnSourceTypestring1必填退货类型, NONE:无来源、DELIVERYEND:销售出库单、ORDER:销售订单    示例:"DELIVERYEND"
28bizFlow_namebizFlow_namestring1可选流程名称    示例:"001"
29bizFlow_versionbizFlow_versionstring1可选版本信息    示例:"版本1"
30logisticWayIdlogisticWayIdstring1可选物流公司id    示例:321321
31invoiceAgentIdinvoiceAgentIdstring1必填开票客户,传id或者code    示例:2216247878177024
32realMoneyrealMoneystring1可选应付金额,等于表头的退货金额    示例:100
33modifyInvoiceTypemodifyInvoiceTypestring1可选发票类型是否可改, true:是、false:否、    示例:true
34logisticsBillNologisticsBillNostring1可选物流单号    示例:"4321"
35logisticsUserNamelogisticsUserNamestring1可选司机姓名    示例:"王一"
36logisticsUserPhonelogisticsUserPhonestring1可选司机电话    示例:"18888888888"
37logisticsCarNumlogisticsCarNumstring1可选车牌号    示例:"京A-ax245"
38receiverreceiverstring1可选收货人    示例:"王二"
39receiveMobilereceiveMobilestring1可选收货人移动电话    示例:"010-12345678"
40receiveTelePhonereceiveTelePhonestring1可选收货人固定电话    示例:"1555555555"
41receiveAddressreceiveAddressstring1可选收货地址    示例:"北京市海淀区"
42receiveZipCodereceiveZipCodestring1可选收货人邮编    示例:"011"
43invoiceUpcTypeinvoiceUpcTypestring1可选发票类型, 0:收据、1:增值税专用发票、2:增值税普通发票、3:增值税电子普通发票、4:机动车销售销售统一发票、    示例:0
44invoiceTitleTypeinvoiceTitleTypestring1可选抬头类型, 0:企业、1:个人、2:非营利组织、    示例:0
45invoiceTitleinvoiceTitlestring1可选发票抬头    示例:"中央大客户工信部"
46taxNumtaxNumstring1可选纳税识别号    示例:"SH999000999"
47bankNamebankNamestring1可选开户银行    示例:"中国工商银行"
48subBankNamesubBankNamestring1可选开户支行    示例:"中国工商银行股份有限公司天津中北支行"
49bankAccountbankAccountstring1可选账号    示例:"888888888888888"
50invoiceTelephoneinvoiceTelephonestring1可选营业电话    示例:"012-9998893"
51invoiceAddressinvoiceAddressstring1可选营业地址    示例:"北京市海淀区"
52totalMoneytotalMoneystring1可选总金额    示例:43214
53payMoneypayMoneystring1必填退货金额,需等于表体含税金额的合计    示例:312
54totalMoneyOrigTaxfreetotalMoneyOrigTaxfreestring1可选无税总金额    示例:321
55payMoneyOrigTaxfreepayMoneyOrigTaxfreestring1可选无税退货金额    示例:321
56totalOriTaxtotalOriTaxstring1可选税额    示例:3
57totalMoneyDomestictotalMoneyDomesticstring1可选本币总金额    示例:643256
58payMoneyDomesticpayMoneyDomesticstring1可选本币退货金额    示例:5432
59totalMoneyDomesticTaxfreetotalMoneyDomesticTaxfreestring1可选本币无税总金额    示例:5432
60payMoneyDomesticTaxfreepayMoneyDomesticTaxfreestring1可选本币无税退货金额    示例:5432
61totalNatTaxtotalNatTaxstring1可选本币税额    示例:5421
62bizFlowbizFlowstring1可选流程ID    示例:213
63isFlowCoreBillisFlowCoreBillstring1可选是否流程核心单据    示例:true
64_status_statusstring1必填操作标识, Insert:新增、Update:更新    示例:"Insert"
65saleReturnDetailssaleReturnDetailsarray1必填退货单详情[voucher.salereturn.SaleReturnDetail]
66ididstring1可选表体行ID 新增时无需填写,修改时必填    示例:4312432
67orderDetailIdorderDetailIdstring1可选订单行id,有来源必填    示例:2403153858154753
68orderDetailIdKeyorderDetailIdKeystring1可选订单行idkey    示例:"6425432"
69sourceidsourceidstring1可选来源单据ID,有来源必填    示例:2403160486547968
70sourceautoidsourceautoidstring1可选来源单据子表ID,有来源必填    示例:2403160486547970
71sourcesourcestring1可选来源单据类型(1.ustock.st_salesout销售出库 2.voucher_order 销售订单)有来源必填    示例:"ustock.st_salesout"
72makeRuleCodemakeRuleCodestring1可选生单类型编码(1.salesoutTosalereturn 由销售出库生单,2.order_salereturn:由销售订单生单),有来源必填    示例:"salesoutTosalereturn"
73productIdproductIdstring1必填商品,传id或者code    示例:2320711092457728
74skuIdskuIdstring1必填商品sku,传id或者code    示例:2313763385315584
75projectIdprojectIdstring1可选项目,传id或者code    示例:"123124312"
76unitExchangeTypeunitExchangeTypestring1必填浮动换算率(销售)    示例:0
77unitExchangeTypePriceunitExchangeTypePricestring1必填浮动换算率(计价)    示例:0
78taxIdtaxIdstring1必填税目税率,传id或者code    示例:"2155547427149061"
79stockIdstockIdstring1可选仓库,传id或者code    示例:2192242573644032
80stockOrgIdstockOrgIdstring1必填库存组织,传id或者code    示例:"2163951720681984"
81saleReturnDepartmentIdsaleReturnDepartmentIdstring1可选退货部门id    示例:"14321"
82iProductAuxUnitIdiProductAuxUnitIdstring1必填销售单位,传id或者code    示例:2263072523178240
83iProductUnitIdiProductUnitIdstring1必填计价单位,传id或者code    示例:2312582309908736
84masterUnitIdmasterUnitIdstring1必填主计量单位,传id或者code    示例:2261943548399872
85orderProductTypeorderProductTypestring1可选商品类型, SALE:销售品、GIFT:赠品、MARKUP:加价购、REBATE:返利商品、    示例:"SALE"
86bizProductIdbizProductIdstring1可选商家商品id    示例:31243141
87salesOrgIdsalesOrgIdstring1可选销售组织,传id或者code    示例:6425432
88enableenablestring1可选是否有效状态    示例:true
89orderNoorderNostring1可选源头订单号,有来源必填    示例:"QbOJ-000000000-20210825-000017"
90upcodeupcodestring1可选来源单据号    示例:"XSCK20210825000005"
91modelDescriptionmodelDescriptionstring1可选规格    示例:"规格01"
92modelmodelstring1可选型号    示例:"001"
93specDescriptionspecDescriptionstring1可选规格描述    示例:"规格"
94invExchRateinvExchRatestring1必填销售换算率    示例:1
95subQtysubQtystring1必填退货销售数量    示例:100
96invPriceExchRateinvPriceExchRatestring1必填计价换算率    示例:1
97priceQtypriceQtystring1必填退货计价数量    示例:100
98qtyqtystring1必填退货数量    示例:1
99isBatchManageisBatchManagestring1可选是否批次管理, true:是、false:否、    示例:false
100batchNobatchNostring1可选批次    示例:2
101isExpiryDateManageisExpiryDateManagestring1可选是否有效期管理, true:是、false:否、    示例:false
102productDateproductDatestring1可选生产日期    示例:2021-08-31 00:00:00
103expireDateNoexpireDateNostring1可选保质期    示例:3
104expireDateUnitexpireDateUnitstring1可选保质期单位, 1:年、2:月、6:天、    示例:1
105invalidDateinvalidDatestring1可选有效期至    示例:2021-08-31 00:00:00
106oriTaxUnitPriceoriTaxUnitPricestring1必填含税成交价    示例:500
107oriUnitPriceoriUnitPricestring1必填无税单价    示例:500
108oriSumoriSumstring1必填含税金额    示例:500
109oriMoneyoriMoneystring1必填无税金额    示例:500
110oriTaxoriTaxstring1必填税额    示例:0.0
111natTaxUnitPricenatTaxUnitPricestring1必填本币含税单价    示例:500
112natUnitPricenatUnitPricestring1必填本币无税单价    示例:500
113natSumnatSumstring1必填本币含税金额    示例:500
114natMoneynatMoneystring1必填本币无税金额    示例:500
115natTaxnatTaxstring1必填本币税额    示例:500
116retNotNeedInvoiceQtyretNotNeedInvoiceQtystring1可选退货不开票数量    示例:100
117bodyItembodyItemstring1可选表体自定义项ID(1-60)
118bodyFreeItembodyFreeItemstring1可选表体自由自定义项(1-60)
119firstsourceidfirstsourceidstring1可选源头单据id,有来源必填    示例:2403063657222400
120firstsourceautoidfirstsourceautoidstring1可选源头单据子表id,有来源必填    示例:2403063657238784
121firstsourcefirstsourcestring1可选源头单据类型(udinghuo.voucher_order),有来源必填    示例:udinghuo.voucher_order
122firstupcodefirstupcodestring1可选源头单据号,有来源必填    示例:QbOJ-000000000-20210825-000014
123orderIdorderIdstring1可选销售订单id,有来源必填    示例:QbOJ-000000000-20210825-000014
124saleReturnAttachmentssaleReturnAttachmentsarray1可选退货单附件[voucher.salereturn.SaleReturnAttachment]
125ididstring1可选主键ID 新增时无需填写,修改时必填 新增时无需填写    示例:1233414
126folderfolderstring1可选附件路径    示例:/attachments/orders/2009391957807360/
127saleReturnIdsaleReturnIdstring1可选退货单ID    示例:3123432154321
128typetypestring1可选附件类型    示例:image/png
129sizesizestring1可选附件大小    示例:"183043"
130_status_statusstring1可选操作标识, Insert:新增、Update:更新    示例:Insert

接口响应参数

暂无参数说明

用友BIP的接口:销售退货单个保存_v1(/yonbip/sd/vouchersalereturn/singleSave),由轻易云数据集成平台 API 资产管理模块整理收纳,并随用友BIP版本更新同步更新。

需要对接这个接口?

轻易云已预置该接口的适配能力,联系我们即可开始配置数据集成。