API中心

  1. 商业汇票
  2. 收票登记
返回

收票登记新增

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

参数填写指南

请求方式:POST

请求参数(header):

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

请求参数(body):

参数名类型是否数组必填描述默认值
billvo收票登记聚合VO
parentvo主表VO
divisiblestring能否分包流转(5.1及以上支持)
enddatestring到期日期
fbmbillnostring票据编号
fbmbillno_mainstring票据(包)号码(5.1及以上支持)
fbmbillno_sub_endstring子区间至(5.1及以上支持)
fbmbillno_sub_startstring子区间起(5.1及以上支持)
fbmbilltypestring票据类型
gatherdatestring收票日期
holdunitstring持票单位
invoicedatestring出票日期
isnewbill_fbmstring是否新一代票据(5.1及以上支持)
moneyydouble汇票金额
paybillunitstring付票单位
pk_corpstring公司
pk_currstring币种
voperatoridstring操作人

返回类型参数:

参数名类型是否数组必填描述默认值
billvo收票登记聚合VO_返回
parentvo收付票据登记表_返回
acceptancenostring承兑协议编号
cctypestring授信类型
chargeitemstring手续费支出项目
chargeplanitemstring手续费支出计划项目
contractnostring交易合同编号
currtype_codestring币种编码
currtype_namestring币种名称
dapprovedatestring审核日期
deptstring部门
dvoucherdatestring制证日期
enddatestring到期日期
fbmbillnostring票据编号
fbmbilltypestring票据类型
gatherdatestring收票日期
gatheritemstringgatheritem
gatherplanitemstring收票计划项目
gathertypestring收票来源类型
holdunitstring持票单位
holdunit_codestring持票单位编码
holdunit_namestring持票单位名称
impawnmodestring担保方式
invoicedatestring出票日期
invoiceitemstring开票收入项目
invoiceoutitemstring付票支出项目
invoiceoutplanitemstring付票计划项目
invoiceplanitemstring开票收入计划项目
invoiceunitstring出票单位
invoiceunit_codestring出票单位编码
invoiceunit_namestring出票单位名称
moneyystring汇票金额
notestring备注
notetype_codestring票据类型编码
notetype_namestring票据类型名称
operator_codestring操作人编码
operator_namestring操作人名称
paybankstring付款银行
paybank_codestring付款银行编码
paybank_namestring付款银行名称
paybankaccstring付款单位银行帐号
paybillunitstring付票单位
paybillunit_codestring付票单位编码
paybillunit_namestring付票单位名称
payunitstring付款单位
payunit_codestring付款单位编码
payunit_namestring付款单位名称
pk_corpstring公司
pk_corp_codestring公司编码
pk_corp_namestring公司名称
pk_currstring币种
poundagemoneystring手续费金额
poundagemoneybstring手续费本币
poundagemoneyfstring手续费辅币
receivebankstring收款银行
receivebank_codestring收款银行编码
receivebank_namestring收款银行名称
receivebankaccstring收款单位银行帐号
receivebankacc_codestring收款单位银行帐号编码
receivebankacc_namestring收款单位银行帐号名称
receiveunitstring收款单位
receiveunit_codestring收款单位编码
receiveunit_namestring收款单位名称
registernostring登记单编号
securityaccountstring保证金帐号
securitycodestring保证金编号
securitymoneystring保证金金额
securitymoneybstring保证金本币金额
securitymoneyfstring保证金辅币金额
securityratestring保证金比例
securityrateystring保证金汇率
securitytypestring保证金类型
vapproveidstring审核人
vapprovenotestring审核批语
verifymanstring核销人
voperatoridstring操作人
vvouchermanidstring制证人

请求参数示例:

复制代码

{
	"billvo": [{
		"parentvo": {
				"paybillunit":"03",
				"holdunit":"01",
				"gatherdate":"2021-10-07",
				"pk_corp":"01",
				"moneyy":"100",
				"fbmbillno":"22",
				"fbmbilltype":"bank",
				"pk_curr":"CNY",
				"invoicedate":"2021-10-08",
				"enddate":"2022-03-20",
				"voperatorid":"13072522785"
		}
	}]
}

正确返回示例:

复制代码

{
	"status": "success",
	"data": [{
		"parentvo": {
			"pk_curr": "00010000000000000001",
			"currtype_code": "CNY",
			"currtype_name": "人民币",
			"fbmbilltype": "FBMTYPE0000000000001",
			"notetype_code": "bank",
			"notetype_name": "银行承兑汇票",
			"fbmbillno": "28",
			"moneyy": 100,
			"invoicedate": "2021-10-08",
			"enddate": "2022-03-20",
			"pk_corp": "1001",
			"pk_corp_code": "01",
			"pk_corp_name": "企业运营",
			"voperatorid": "00011210000000003KCD",
			"operator_code": "13072522785",
			"operator_name": "尹茜",
			"paybillunit": "00011210000000000HMJ",
			"paybillunit_code": "03",
			"paybillunit_name": "王氏食品",
			"holdunit": "00011210000000000HMF",
			"holdunit_code": "01",
			"holdunit_name": "企业运营",
			"gatherdate": "2021-10-08",
			"gathertype": "input",
			"pk_register": "1001ZZ100000000099C2",
			"pk_baseinfo": "1001ZZ100000000099C1"
		},
		"childrenvo": [null]
	}],
	"taskNumber": "202111010007"
}

错误返回示例:

复制代码

{
    "status": "falied",
    "errorcode": "-32000",
    "errormsg": "U8C返回信息:存在以下错误,请检查:[第 1张收票登记单的收票日期应该大于等于出票日期]",
    "taskNumber": "202111010009"
}