凭证模版-详情查询接口
业务场景说明
通过此接口,查询凭证模板生成数据详情数据。
接口地址:
/api/openapi/dingtalk/voucher/generate/list
请求方式:
POST
请求参数说明:
参数说明
序号 | 字段 | 类型 | 描述 |
---|---|---|---|
1 | financeVersion | string | SYSTEM_V1、U8C2.0等编码对照表 |
2 | setOfBooks(预留字段) | string | 账套名称 |
3 | batchNum | string | 批次号(本参数已过时,请使用凭证号进行查询) |
4 | voucherCodeList | array<string> | 要查询的凭证内码 |
5 | rowId | number | 分录行唯一ID(对应分录详情中的rowId字段) |
参数示例:
{
"financeVersion": "SYSTEM_V1",
"voucherCodeList": [
"VIN1908141M7CLV5S"
]
}
响应参数:
参数说明
序号 | 字段 | 类型 | 备注 |
---|---|---|---|
1 | data | array<object> | 凭证 |
voucherCode | string | 凭证编码 | |
formCodes | array<string> | 来源表单 | |
voucherWordNumber | string | 每刻报销中凭证字-凭证号 | |
invalid | boolean | 作废标识。true:已经作废,false:未作废 | |
entrys | array<object> | 凭证分录 | |
entryNo | string | 分录号 | |
entryType | 分录类型 | 贷方 CREDIT, 借方 DEBIT, 借款核销LOAN_DEDUCTION, 税额 TAX, 税额转出(税额抵扣) TAX_DEDUCTION, 贷方中转 CREDIT_TRANSFER, 借方中转 DEBIT_TRANSFER |
|
rowId | number | 分录行唯一ID | |
row | array<object> | 分录值 | |
fieldLabel | string | 列标识(财务系统目标字段(中文)) | |
fieldTopLabel | string | 列主键(财务系统目标字段(英文)) | |
fieldDataType | string | 值类型string data | |
fieldIndex | string | 列索引 | |
fieldValue | string | 列值(每刻取值) | |
code | string | ||
message | string |
异常反参说明
异常信息 | 解决方案 |
---|---|
当前选择的凭证存在未导出凭证数据,请在"凭证生成-凭证查询"页面点击导出凭证文件 | 需要根据提示路径在每刻系统内点击“导出凭证文件” |
响应参数示例:
{
"code": "ACK",
"message": "",
"data": [
{
"voucherCode": "VIN28532669048429633",
"formCodes": [
"MK23050027"
],
"voucherWordNumber": "PRE001-69",
"entrys": [
{
"voucherCode": "VIN28532669048429633",
"billCode": "MK23050027",
"entryNo": "0",
"entryType": "DEBIT",
"direction": false,
"row": [
{
"fieldValue": "0",
"fieldIndex": "1",
"fieldTopLabel": "FVOUCHERID",
"fieldLabel": "(头)主键ID",
"fieldDataType": "STRING"
},
{
"fieldValue": "106",
"fieldIndex": "2",
"fieldTopLabel": "FAccountBookID",
"fieldLabel": "(头)账簿编号",
"fieldDataType": "STRING"
},
{
"fieldValue": "2023-05-26",
"fieldIndex": "3",
"fieldTopLabel": "FDate",
"fieldLabel": "(头)日期",
"fieldDataType": "STRING"
},
{
"fieldValue": "2023-05-26",
"fieldIndex": "4",
"fieldTopLabel": "FBUSDATE",
"fieldLabel": "(头)凭证生成日期",
"fieldDataType": "STRING"
},
{
"fieldValue": "PRE001",
"fieldIndex": "5",
"fieldTopLabel": "FVOUCHERGROUPID",
"fieldLabel": "(头)凭证字",
"fieldDataType": "STRING"
},
{
"fieldValue": "69",
"fieldIndex": "6",
"fieldTopLabel": "FVOUCHERGROUPNO",
"fieldLabel": "(头)凭证号",
"fieldDataType": "STRING"
},
{
"fieldValue": "A",
"fieldIndex": "7",
"fieldTopLabel": "FDocumentStatus",
"fieldLabel": "(头)审核状态",
"fieldDataType": "STRING"
},
{
"fieldValue": "2023",
"fieldIndex": "8",
"fieldTopLabel": "FYEAR",
"fieldLabel": "(头)会计年度",
"fieldDataType": "STRING"
},
{
"fieldValue": "5",
"fieldIndex": "9",
"fieldTopLabel": "FPERIOD",
"fieldLabel": "(头)会计期间",
"fieldDataType": "STRING"
},
{
"fieldValue": "false",
"fieldIndex": "10",
"fieldTopLabel": "FISADJUSTVOUCHER",
"fieldLabel": "(头)是否调整期凭证",
"fieldDataType": "STRING"
}
...
],
"rowId": 11945223
},
{
"voucherCode": "VIN28532669048429633",
"billCode": "MK23050027",
"entryNo": "1",
"entryType": "CREDIT",
"direction": true,
"row": [
{
"fieldValue": "0",
"fieldIndex": "1",
"fieldTopLabel": "FVOUCHERID",
"fieldLabel": "(头)主键ID",
"fieldDataType": "STRING"
},
{
"fieldValue": "106",
"fieldIndex": "2",
"fieldTopLabel": "FAccountBookID",
"fieldLabel": "(头)账簿编号",
"fieldDataType": "STRING"
},
{
"fieldValue": "2023-05-26",
"fieldIndex": "3",
"fieldTopLabel": "FDate",
"fieldLabel": "(头)日期",
"fieldDataType": "STRING"
},
{
"fieldValue": "2023-05-26",
"fieldIndex": "4",
"fieldTopLabel": "FBUSDATE",
"fieldLabel": "(头)凭证生成日期",
"fieldDataType": "STRING"
},
{
"fieldValue": "PRE001",
"fieldIndex": "5",
"fieldTopLabel": "FVOUCHERGROUPID",
"fieldLabel": "(头)凭证字",
"fieldDataType": "STRING"
},
{
"fieldValue": "69",
"fieldIndex": "6",
"fieldTopLabel": "FVOUCHERGROUPNO",
"fieldLabel": "(头)凭证号",
"fieldDataType": "STRING"
},
{
"fieldValue": "A",
"fieldIndex": "7",
"fieldTopLabel": "FDocumentStatus",
"fieldLabel": "(头)审核状态",
"fieldDataType": "STRING"
},
{
"fieldValue": "2023",
"fieldIndex": "8",
"fieldTopLabel": "FYEAR",
"fieldLabel": "(头)会计年度",
"fieldDataType": "STRING"
},
{
"fieldValue": "5",
"fieldIndex": "9",
"fieldTopLabel": "FPERIOD",
"fieldLabel": "(头)会计期间",
"fieldDataType": "STRING"
},
{
"fieldValue": "false",
"fieldIndex": "10",
"fieldTopLabel": "FISADJUSTVOUCHER",
"fieldLabel": "(头)是否调整期凭证",
"fieldDataType": "STRING"
}
...
],
"rowId": 11945224
}
],
"invalid": false
}
],
"errorCode": null,
"success": true
}