API中心

  1. 销售管理
  2. 退货申请单
返回

退货申请单新增

接口所在U8C版本:U8 cloud3.0以及更高版本
详细描述:用于退货申请单新增
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/so5/returnapply/insert

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
trantype翻译类型,按编码为code,不需要翻译为pk
uniquekey幂等唯一key
system系统参数

请求参数(body):

参数名类型是否数组必填描述默认值
billvo退货申请单
childrenvochildrenvo
alrconfincomnystring已收入确认金额
alrconfinconumstring已收入确认数量
bconfirmstring是否检查通过
bdericttransstring是否直运
bifinvfinishstring是否出库结束
biftakefinishstring是否接收结束
blargessflagstring是否赠品
breturnprofitstring是否返利
browfinishstring是否结束
bsafepricestring是否价保
cbatchidstring批次
cbodywarehouseidstring附表仓库
ccalbodyidstring库存组织
cchantypeidstring客户分组id
cconsigncorpidstring收货公司
ccurrencytypeidstring原币
cfirstbillbidstring源头单据附表主键
cfirstbillhidstring源头单据主表主键
cfirsttypestring源头单据类型
cinvbasdocidstring存货档案主键
cinventoryidstring存货
cpackunitidstring辅单位
cpricecalprocstring价格计算过程
cpriceitemidstring价格项目id
cpriceitemtablestring价目表
cpricepolicyidstring价格政策id
cpricetypeidstring价格项
cquoteunitidstring报价计量单位id
creccalbodyidstring销售库存组织
creceiptareaidstring收货地区
creceiptcorpidstring收货单位
crecwareidstring销售仓库
crownostring行号
csourcebillbodyidstring来源单据附表id
csourcebillidstring来源单据主表id
csourcebilltypestring来源单据类型
cunitidstring主计量单位
frownotestring行备注
frowstatusstring行状态
inccontimepointstring收入确认时点标志
inccontimepointnamestring收入确认时点名称
ndiscountmnystring本币折扣额
ndiscountratestring整单折扣
nexchangeotobratestring折本汇率
nfeedbacknumstring回写上游数量
ninnumberstring已入库数量
ninpacknumberstring已入库辅数量
nitemdiscountratestring单品折扣率
nmnystring本币无税金额
nnetpricestring本币无税净价
nnumberstring退货数量
norgqtnetprcstring报价计量单位原币无税净价
norgqtprcstring报价计量单位原币无税单价 d
norgqttaxnetprcstring报价计量单位原币含税净价
norgqttaxprcstring报价计量单位原币含税单价
noriginalcurdiscountmnystring原币折扣额
noriginalcurmnystring原币无税金额
noriginalcurnetpricestring原币无税净价
noriginalcurpricestring原币无税单价
noriginalcursummnystring原币价税合计
noriginalcurtaxmnystring原币税额
noriginalcurtaxnetpricestring原币含税净价
noriginalcurtaxpricestring原币含税单价
npacknumberstring退货辅数量
npricestring本币无税单价
nqtnetprcstring报价计量单位本币无税净价 de
nqtorgprcstring主计量询价无税单价
nqtorgtaxprcstring主计量询价含税单价
nqtprcstring报价计量单位本币无税单价
nqttaxnetprcstring报价计量单位本币含税净价
nqttaxprcstring报价计量单位本币含税单价
nquoteunitnumstring报价计量单位数量
nquoteunitratestring报价计量单位换算率
nrefusenumberstring已拒收数量
nrefusepacknumstring已拒收辅数量
nrushnumstring累计出库对冲数量
nsummnystring本币价税合计
ntakenumberstring已接收数量
ntakepacknumberstring已接收辅数量
ntalbalancemnystring累计收入结算金额
ntaxmnystring本币税额
ntaxnetpricestring本币含税净价
ntaxpricestring本币含税单价
ntaxratestring税率
ntotalbalancenumberstring累计收入结算数量
ntotalshouldinnumstring累计应收未入库数量
ntotlbalcostnumstring累计成本结算数量
pk_applystring退货申请主表主键
pk_apply_bstring退货申请子表主键
pk_corpstring公司
pk_defdoc1string自定义项主键1
pk_invclsstring存货分类id
pk_productlinestring产品线id
pk_returnpolicystring退货政策
pk_returnreasonstring退货原因主键
vdef1string自定义项1
vfree1string自由项1
vfree2string自由项2
vfree3string自由项3
vfree4string自由项4
vfree5string自由项5
vreceiveaddressstring收货地址
vreturnmodestring退货责任处理方式
vserialcodestring产品序列号
vsourcecodestring来源单据号
vsourcerownostring来源行号
parentvoparentvo
alrconfincomnystring已收入确认金额
bbillfinishstring单据结束
bcheckbillstring是否检查通过
bdeliverstring是否发运
bfreecustflagstring是否散户
capproveidstring审批人
cbaltypeidstring结算方式
cbiztypestring业务类型
ccustomeridstring客户
cdeptidstring部门
cemployeeidstring业务员
cfreecustidstring散户
coperatoridstring制单人
creceiptcorpidstring开票单位
creceipttypestring单据类型
csalecorpidstring销售组织
csourcetypestring来源单据类型
ctransmodeidstring运输方式
dapprovedatestring审批日期
dbilldatestring单据日期
fstatusstring状态
pk_applystring退货申请主键
pk_corpstring公司
pk_defdoc1string自定义项1
pk_returnreasonstring退货原因
transactionpricestring交易价格
vdef1string自定义项1
vnotestring备注
vreceiptcodestring单据号
vsourcecodestring来源单据号

返回类型参数:

参数名类型是否数组必填描述默认值
billvo保存后返回VO
children
advisecalbody_codestring发货库存组组织code
advisecalbody_namestring发货库存组组织name
bbindflagstring是否捆绑存货
bdericttransstring是否直运
blargessflagstring是否赠品
boosflagstring缺货标志
breturnprofitstring是否参与返利
bsafepricestring是否参与价保
bsupplyflagstring补货标志
cadvisecalbodyidstring建议发货库存组织
cbatchidstring批次
cbatchid string批次
cbodywarehouseidstring发货仓库主键
cbomorderidstring配置单ID
cchantypeidstring渠道类型ID
cconsigncorpidstring发货公司
ccurrencytypeidstring原币
cfactoryidstring工厂ID
cfreezeidstring库存冻结ID
cinvbasdocidstring存货档案主键
cinventoryidstring存货ID
cinventoryid1string存货ID1
clargessrownostring主存货行号
consigncorp_codestring发货公司code
consigncorp_namestring发货公司name
coperatoridstring制单人
corder_bidstring销售订单附表ID
cpackunitidstring辅单位
cpricecalprocstring价格计算过程
cpriceitemidstring价格项目ID
cpriceitemtablestring价目表
cpricepolicyidstring价格政策ID
cprolineidstring产品线
cprovideridstring供应商
cquoteunitidstring报价计量单位
crecaddrnodestring收货地点
creccalbodyidstring收货库存组织
creceiptareaidstring收货地区
creceiptcorpidstring收货单位
creceipttypestring来源单据类型(V5.1开始支持)
crecwareidstring收货仓库
crownostring行号
csaleidstring销售主表ID
csourcebillbodyidstring来源单据附表ID(V5.1开始支持)
csourcebillidstring来源单据主表ID(V5.1开始支持)
ct_managebidstring合同行ID
ct_manageidstring合同ID
cunitidstring主计量单位
dconsigndatestring发货日期
ddeliverdatestring交货日期
dept_codestring部门code
dept_namestring部门name
drint删除标志
fbatchstatusint批次状态
frownotestring行备注
frowstatusint行状态
inventory_codestring存货code
inventory_namestring存货name
nastretprofnumdouble已参与返利辅数量
nasttaldcnumdouble已参与价保辅数量
ndiscountmnydouble本币折扣额
ndiscountratedouble整单折扣
nestbalancenumberstring累计暂估应收
nexchangeotobratedouble折本汇率
nitemdiscountratedouble单品折扣率
nmnydouble本币无税金额
nnetpricedouble本币无税净价
nnumberdouble数量
norgqtnetprcdouble报价单位无税净价
norgqtprcdouble报价单位无税单价
norgqttaxnetprcdouble报价单位含税净价
norgqttaxprcdouble报价单位含税单价
noriginalcurdiscountmnydouble原币折扣额
noriginalcurmnydouble原币无税金额
noriginalcurnetpricedouble原币无税净价
noriginalcurpricedouble原币无税单价
noriginalcursummnydouble原币价税合计
noriginalcurtaxmnydouble原币税额
noriginalcurtaxnetpricedouble原币含税净价
noriginalcurtaxpricedouble原币含税单价
npacknumberdouble辅数量
npricedouble本币无税单价
nqtnetprcdouble报价单位本币无税净价
nqtorgnetprcdouble询价原币无税净价
nqtorgprcdouble询价原币无税单价
nqtorgtaxnetprcdouble询价原币含税净价
nqtorgtaxprc double询价原币含税单价
nqtprcdouble报价单位本币无税单价
nqttaxnetprcdouble报价单位本币含税净价
nqttaxprcdouble报价单位本币含税单价
nquoteunitnumdouble报价单位数量
nquoteunitratedouble报价计量单位换算率
nretprofmnydouble返利金额
nretprofnumdouble已参与返利主数量
nreturntaxratedouble出口退税率
nsummnydouble本币价税合计
ntaldcmnydouble价保金额
ntaldcnumdouble已参与价保主数量
ntaxmnydouble本币税额
ntaxnetpricedouble本币含税净价
ntaxpricedouble本币含税单价
ntaxratedouble税率
ntotalbalancenumberstring累计应收确认数量
ntotalinventorynumberstring累计出库
ntotalinvoicenumberstring累计开票
ntotalpaymnystring累计收款金额
ntotalreceivenumberstring累计发货数量
ntotlbalcostnumstring累计成本结算数量
packunit_codestring辅单位code
packunit_namestring辅单位name
pk_corpstring公司主键
recaddrnode_codestring收货地点code
recaddrnode_namestring收货地点name
receiptarea_codestring收货地区code
receiptarea_namestring收货地区name
receiptcorp_codestring开票单位code
receiptcorp_namestring开票单位name
tconsigntimestring发货时间
tdelivertimestring到货时间
tsstring时间戳
unit_codestring单位code
unit_namestring单位name
veditreasonstring修订理由
vreceiveaddressstring收货地址
warehouse_codestring发货仓库code
warehouse_namestring发货仓库name
parent
approver_codestring审批人code
approver_namestring审批人name
bcooptopostring是否已协同生成采购订单
bfreecustflagstring是否散户
binitflagstring期初标志
binvoicendflagstring开票关闭标记
biztype_codestring业务类型code
biztype_namestring业务类型name
boutendflagstring出库关闭标记
boverdatestring是否超帐期
bpayendflagstring付款关闭标记
bpocooptomestring是否由采购订单协同生成
breceiptendflagstring发货关闭标记
bretinvflagstring退货标记
btransendflagstring运输关闭标志
calbody_codestring库存组织code
calbody_namestring库存组织name
capproveidstring审批人
cbaltypeidstring结算方式
cbiztypestring业务类型
ccalbodyidstring库存组织
ccooppohidstring对方订单号
ccreditnumstring信用证号
ccustbankidstring开户银行
ccustomeridstring客户
cdeptidstring部门
cemployeeidstring业务员
cfreecustidstring散户ID
coperatoridstring制单人
corp_codestring公司code
corp_namestring公司name
creceiptareaidstring收货地区
creceiptcorpidstring开票单位
creceiptcustomeridstring收货单位
creceipttypestring单据类型
csalecorpidstring销售组织
csaleidstring销售主表ID
ctermprotocolidstring收款协议
ctransmodeidstring运输方式
customer_codestring客户code
customer_namestring客户name
cwarehouseidstring仓库
dapprovedatestring审批日期
daudittimestring审批时间
dbilldatestring日期
dbilltimestring制单时间
dept_codestring部门code
dept_namestring部门name
dmakedatestring制单日期
dmoditimestring最后修改时间
drint删除标志
editauthorstring修订人
editdatestring修订日期
editionnumstring修订版本号
employee_codestring业务员code
employee_namestring业务员name
finvoiceclassdouble发票类别
finvoicetypedouble发票类型
fstatusdouble状态
ibalanceflagdouble结算标志
iprintcountstring打印次数
naccountperioddouble帐期
ndiscountratedouble整单折扣
nevaluatecarriagedouble预估运费
nheadsummnydouble金额合计
npreceivemnydouble预收款金额
npreceiveratedouble预收款比例
nsubscriptiondouble订金
operator_codestring制单人code
operator_namestring制单人name
pk_corpstring公司
pk_defdoc1string自定义项1
pk_defdoc10string自定义项10
pk_defdoc11string自定义项11
pk_defdoc12string自定义项12
pk_defdoc13string自定义项13
pk_defdoc14string自定义项14
pk_defdoc15string自定义项15
pk_defdoc16string自定义项16
pk_defdoc17string自定义项17
pk_defdoc18string自定义项18
pk_defdoc19string自定义项19
pk_defdoc2string自定义项2
pk_defdoc20string自定义项20
pk_defdoc3string自定义项3
pk_defdoc4string自定义项4
pk_defdoc5string自定义项5
pk_defdoc6string自定义项6
pk_defdoc7string自定义项7
pk_defdoc8string自定义项8
pk_defdoc9string自定义项9
receiptarea_codestring收货地区code
receiptarea_namestring收货地区name
receiptcorp_codestring开票单位code
receiptcorp_namestring开票单位name
receiptcustomer_codestring收货单位code
receiptcustomer_namestring收货单位name
salecorp_codestring销售组织code
salecorp_namestring销售组织name
transmode_codestring运输方式code
transmode_namestring运输方式name
tsstring时间戳
vaccountyearstring会计年度
vdef1string自定义项1
vdef10string自定义项10
vdef11string自定义项11
vdef12string自定义项12
vdef13string自定义项13
vdef14string自定义项14
vdef15string自定义项15
vdef16string自定义项16
vdef17string自定义项17
vdef18string自定义项18
vdef19string自定义项19
vdef2string自定义项2
vdef20string自定义项2-
vdef3string自定义项3
vdef4string自定义项4
vdef5string自定义项5
vdef6string自定义项6
vdef7string自定义项7
vdef8string自定义项8
vdef9string自定义项9
veditreasonstring修订理由
vnotestring备注
vreceiptcodestring单据号
vreceiveaddressstring收货地址

请求参数示例:

自制最简带统计型自定义项带备注型自定义项来源销售订单5.1及以后支持来源销售出库

复制代码

{"billvo":[{"parentvo":{"cbiztype":"so99","ccustomerid":"CU2024","cdeptid":"777","coperatorid":"apiwjh","csalecorpid":"5678","pk_corp":"2401","ccalbodyid":"9999","cwarehouseid":"0001"},"childrenvo":[{"cinventoryid":"0901","nnumber":"0.01","noriginalcurprice":"10"}]}]}

正确返回示例:

复制代码

{"status":"success","data":"[{\"parentvo\":{\"pk_corp\":\"1005\",\"corp_code\":\"2401\",\"corp_name\":\"wjh石油天然气集团有限公司\",\"cbiztype\":\"1005A210000000003U4R\",\"biztype_code\":\"so99\",\"biztype_name\":\"退货自制\",\"ccustomerid\":\"0001F410000000045LSJ\",\"customer_code\":\"CU2024\",\"customer_name\":\"w客户\",\"csalecorpid\":\"0001F410000000040YMS\",\"salecorp_code\":\"5678\",\"salecorp_name\":\"w销售组织\",\"ccalbodyid\":\"1005F4100000000011TD\",\"calbody_code\":\"9999\",\"calbody_name\":\"w库存组织\",\"coperatorid\":\"0001A11000000002QQ4J\",\"operator_code\":\"apiwjh\",\"operator_name\":\"wjh\",\"cdeptid\":\"1005F4100000000011TA\",\"dept_code\":\"777\",\"dept_name\":\"w部门\",\"vreceiptcode\":\"3U2309210002\",\"dbilldate\":\"2023-09-21\",\"dmakedate\":\"2023-09-21\",\"dbilltime\":\"2023-09-21 19:32:10\",\"dmoditime\":\"2023-09-21 19:32:10\",\"iprintcount\":\"0\",\"creceiptcustomerid\":\"0001F410000000045LSJ\",\"receiptcustomer_code\":\"CU2024\",\"receiptcustomer_name\":\"w客户\",\"creceiptcorpid\":\"0001F410000000045LSJ\",\"receiptcorp_code\":\"CU2024\",\"receiptcorp_name\":\"w客户\",\"cwarehouseid\":\"1005F4100000000011TG\",\"warehouse_code\":\"0001\",\"warehouse_name\":\"w无货位仓库1\",\"pk_apply\":\"1005ZZ10000000003VNT\",\"fstatus\":\"1\"},\"childrenvo\":[{\"cinventoryid\":\"0001F410000000044TSE\",\"inventory_code\":\"0901\",\"inventory_name\":\"大数量存货\",\"nnumber\":\"0.01\",\"noriginalcursummny\":\"0.113000\",\"cunitid\":\"0001A2100000000003DI\",\"unit_code\":\"2\",\"unit_name\":\"公斤\",\"creceiptcorpid\":\"0001F410000000045LSJ\",\"blargessflag\":false,\"noriginalcurprice\":\"10\",\"crowno\":\"10\",\"ntaxrate\":\"13.00000000\",\"noriginalcurtaxprice\":\"11.300000\",\"noriginalcurmny\":\"0.100000\",\"noriginalcurtaxmny\":\"0.013000\",\"ndiscountrate\":\"100.00000000\",\"nitemdiscountrate\":\"100.00000000\",\"noriginalcurnetprice\":\"10.000000\",\"noriginalcurtaxnetprice\":\"11.300000\",\"noriginalcurdiscountmny\":\"0.00000000\",\"pk_apply\":\"1005ZZ10000000003VNT\",\"pk_apply_b\":\"1005ZZ10000000003VNU\"}]}]","taskNumber":"202309210217"}

错误返回示例:

复制代码

{
status: "falied",
errorcode: "",
errormsg: "nc.vo.pub.BusinessException: 传入数据有的字段为空!第1条数据:表头:[业务流, 制单人, 客户, 公司]第1行表体:[存货, 数量]"
}