新增/更新
- 接口:common/invoiceJournal/batch
- Method:POST
- 数据格式:JSON
- 接口说明:进项日记账批量同步接口
请求参数
字段名称 |
字段类型 |
字段描述 |
是否必填 |
bizId |
String |
业务唯一识别码 |
true |
timestamp |
long |
时间戳 |
true |
data.code |
String |
业务唯一key |
true |
data.branch_code |
String |
公司code |
true |
data.voucher_number |
String |
凭证号 |
false |
data.document_num |
String |
单据号 |
false |
data.voucher_date |
long |
记账日期 |
false |
data.post_date |
long |
过账日期 |
false |
data.create_user |
String |
创建人 |
false |
data.voucher_line_number |
String |
凭证行号 |
false |
data.structure_name |
String |
会计科目类型名 |
true |
data.accounting_subject_code |
String |
会计科目code |
true |
data.rec_pay_id |
String |
借贷标记 |
false |
data.voucher_amount |
BigDecimal |
记账金额 |
false |
data.check_code |
String |
对账码 |
false |
data.remark |
String |
备注 |
false |
示例
{
"bizId":"zzzzzzzxcasdasdasdad",
"timestamp":15912666599229,
"data":[
{
"code": "zzz111",
"structure_name":"default",
"branch_code": "C010103",
"voucher_number": "zxc",
"document_num": "zxc123",
"voucher_date": 123456789000,
"post_date": 123456789000,
"create_user": "张三",
"voucher_line_number": 1,
"accounting_subject_code": "1002010350",
"rec_pay_id": "zxc111",
"voucher_amount": 100.00,
"check_code": "zxc123",
"remark": "beizhu"
},
{
"code": "zzz222",
"structure_name":"defaut",
"branch_code": "C010103",
"voucher_number": "zxc",
"document_num": "zxc123",
"voucher_date": 123456789000,
"post_date": 123456789000,
"create_user": "张三",
"voucher_line_number": 1,
"accounting_subject_code": "1002010350",
"rec_pay_id": "zxc111",
"voucher_amount": 100.00,
"check_code": "zxc123",
"remark": "beizhu"
},
{
"code": "zzz333",
"structure_name":"default",
"branch_code": "C01010z",
"voucher_number": "zxc",
"document_num": "zxc123",
"voucher_date": 123456789000,
"post_date": 123456789000,
"create_user": "张三",
"voucher_line_number": 1,
"accounting_subject_code": "1002010350",
"rec_pay_id": "zxc111",
"voucher_amount": 100.00,
"check_code": "zxc123",
"remark": "beizhu"
}
,{
"code": "zzz444",
"structure_name":"default",
"branch_code": "C01010z",
"voucher_number": "zxc",
"document_num": "zxc123",
"voucher_date": 123456789000,
"post_date": 123456789000,
"create_user": "张三",
"voucher_line_number": 1,
"accounting_subject_code": "zzxc",
"rec_pay_id": "zxc111",
"voucher_amount": 100.00,
"check_code": "zxc123",
"remark": "beizhu"
}
]
}
返回参数
字段名称 |
字段类型 |
字段描述 |
resCode |
String |
状态码 |
resMsg |
String |
描述 |
bizId |
String |
业务唯一标识 |
data.validatorErrors |
String |
错误信息 |
data.created |
String |
新增数据信息 |
data.warnings.code |
String |
警告数据编码 |
data.warnings.messages |
String |
警告信息 |
data.dbErrors |
String |
数据库错误信息 |
data.updated |
String |
更新数据信息 |
示例
{
"resCode": 200000,
"resMsg": "success",
"bizId": "zzzzzzzxcasdasdasdad",
"data": {
"validatorErrors": [
{
"code": "zzz444",
"messages": [
"公司C01010z不存在"
]
},
{
"code": "zzz222",
"messages": [
"会计科目结构名称defaut不存在"
]
},
{
"code": "zzz333",
"messages": [
"公司C01010z不存在"
]
}
],
"created": "此次请求新建成功了1条数据",
"warnings": [],
"dbErrors": [],
"updated": "此次请求有0条重复数据"
}
}