财税软件API
  1. 凭证操作
财税软件API
  • 基础数据
    • 账套列表
      GET
    • 账套模板列表
      GET
    • 新建账套
      POST
  • 辅助数据
    • 科目
      • 全部科目列表
      • 可使用科目列表
    • 币别
      • 币别列表
      • 创建币种
      • 删除币种
    • 凭证字
      • 凭证字列表
      • 创建凭证字
      • 更新凭证字
      • 删除凭证字
    • 辅助核算
      • 辅助类别
        • 类别列表
        • 创建类别
        • 更新类别
        • 删除类别
      • 客户
        • 客户列表
        • 创建客户
        • 更新客户
        • 删除客户
      • 供应商
        • 供应商列表
        • 创建供应商
        • 更新供应商
        • 删除供应商
      • 职员
        • 职员列表
        • 创建职员
        • 更新职员
        • 删除职员
      • 部门
        • 部门列表
        • 创建部门
        • 更新部门
        • 删除部门
      • 组织机构
        • 组织机构列表
        • 创建组织机构
        • 更新组织机构
        • 删除组织机构
      • 项目
        • 项目列表
        • 创建项目
        • 更新项目
        • 删除项目
      • 存货
        • 存货列表
        • 创建存货
        • 更新存货
        • 删除存货
  • 凭证操作
    • 凭证列表
      POST
    • 创建凭证
      POST
    • 更新凭证
      PUT
    • 删除凭证
      POST
    • 根据凭证ID获取凭证
      GET
  1. 凭证操作

根据凭证ID获取凭证

GET
/api/voucher/{voucherId}
编辑凭证之前,获取原始凭证信息

请求参数

Authorization
在 header 添加参数
F-API-KEY
示例:
F-API-KEY: ********************
Path 参数

Header 参数

返回响应

🟢200成功
application/json
Body

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/voucher/' \
--header 'accountSetId: 794981295003285450' \
--header 'F-API-KEY: <api-key>'
响应示例响应示例
{
    "success": true,
    "code": 200,
    "msg": "",
    "data": {
        "id": "796501811056939594",
        "word": "记",
        "code": 1,
        "remark": "备注欠款",
        "receiptNum": 1,
        "createMember": "527079702007971841",
        "createMemberName": "18676037292",
        "createMemberMobile": "18676037292",
        "createDate": "2025-12-30 22:13",
        "debitAmount": 4000.00,
        "creditAmount": 4000.00,
        "accountSetsId": "796501038579388980",
        "year": 2025,
        "month": 12,
        "voucherDate": "2025-12-30",
        "lastUpdateMember": "527079702007971841",
        "lastUpdateDate": "2025-12-30 22:13",
        "lastUpdateMemberName": "18676037292",
        "carryForward": false,
        "billList": [
            {
                "name": "c39c9bc8-9dee-491c-b0e9-c737b47ba220.png",
                "size": "246896",
                "type": "image/png",
                "url": "/attachment/voucher/0f7751b1-d2b1-4d1d-b947-80ce82435546.png",
                "uid": "8b22e8b3-ef24-f3d4-02a7-75dba4e25b3f",
                "status": "SUCCESS"
            }
        ],
        "details": [
            {
                "id": "796501811149214283",
                "accountSetsId": "796501038579388980",
                "voucherId": "796501811056939594",
                "year": 2025,
                "month": 12,
                "voucherDate": "2025-12-30",
                "currencyId": "433722807319433217",
                "currencyName": "人民币",
                "currencyCode": "RMB",
                "originalAmount": "0",
                "summary": "支付货款",
                "subjectId": "796501214140371526",
                "subjectName": "1002001 银行存款_人民币",
                "subjectCode": "1002001",
                "subject": {
                    "id": "796501214140371526",
                    "accountSetsId": "796501038579388980",
                    "type": "资产",
                    "code": "1002001",
                    "queryCode": "10020010000",
                    "name": "人民币",
                    "mnemonicCode": "yxck_rmb",
                    "balanceDirection": "借",
                    "status": true,
                    "parentId": "433708450254573570",
                    "level": 2,
                    "systemDefault": false,
                    "cash": true,
                    "fullName": "银行存款_人民币",
                    "leaf": true,
                    "adjustments": false,
                    "qualifiedType": "NON_LIMITING",
                    "auxiliaryAccounting": [],
                    "nonAuxiliaryAccounting": [],
                    "currencyAccounting": [],
                    "children": [],
                    "typeAlias": "资产类"
                },
                "debitAmount": 2000.00,
                "num": "0",
                "price": "0",
                "auxiliary": [],
                "debitAmountFor": 0.00,
                "creditAmountFor": 0.00,
                "exchangeRate": "1",
                "debitNum": "0",
                "creditNum": "0",
                "carryForward": false,
                "cashFlow": true,
                "rowNum": 1,
                "subjectPrintTitle": "1002001 银行存款_人民币",
                "amount": 2000.00,
                "auxiliaryTitle": ""
            },
            {
                "id": "796501811178574412",
                "accountSetsId": "796501038579388980",
                "voucherId": "796501811056939594",
                "year": 2025,
                "month": 12,
                "voucherDate": "2025-12-30",
                "currencyId": "796501153767559749",
                "currencyName": "美元",
                "currencyCode": "USD",
                "originalAmount": "285.95",
                "summary": "支付货款",
                "subjectId": "796501248105845319",
                "subjectName": "1002002 银行存款_美元",
                "subjectCode": "1002002",
                "subject": {
                    "id": "796501248105845319",
                    "accountSetsId": "796501038579388980",
                    "type": "资产",
                    "code": "1002002",
                    "queryCode": "10020020000",
                    "name": "美元",
                    "mnemonicCode": "yxck_my",
                    "balanceDirection": "借",
                    "status": true,
                    "parentId": "433708450254573570",
                    "level": 2,
                    "systemDefault": false,
                    "cash": true,
                    "fullName": "银行存款_美元",
                    "leaf": true,
                    "adjustments": false,
                    "qualifiedType": "NON_LIMITING",
                    "auxiliaryAccounting": [],
                    "nonAuxiliaryAccounting": [],
                    "currencyAccounting": [
                        "796501153767559749"
                    ],
                    "children": [],
                    "typeAlias": "资产类"
                },
                "creditAmount": 2000.00,
                "num": "0",
                "price": "0",
                "auxiliary": [],
                "debitAmountFor": 0.00,
                "creditAmountFor": 285.95,
                "exchangeRate": "6.994239",
                "debitNum": "0",
                "creditNum": "0",
                "carryForward": false,
                "cashFlow": true,
                "rowNum": 2,
                "subjectPrintTitle": "1002002 银行存款_美元",
                "amount": 2000.00,
                "auxiliaryTitle": ""
            },
            {
                "id": "796501811199545933",
                "accountSetsId": "796501038579388980",
                "voucherId": "796501811056939594",
                "year": 2025,
                "month": 12,
                "voucherDate": "2025-12-30",
                "currencyId": "433722807319433217",
                "currencyName": "人民币",
                "currencyCode": "RMB",
                "originalAmount": "0",
                "summary": "支付货款",
                "subjectId": "433708449910640641",
                "subjectName": "1001 库存现金",
                "subjectCode": "1001",
                "subject": {
                    "id": "433708449910640641",
                    "accountSetsId": "796501038579388980",
                    "type": "资产",
                    "code": "1001",
                    "queryCode": "10010000000",
                    "name": "库存现金",
                    "mnemonicCode": "kcxj",
                    "balanceDirection": "借",
                    "status": true,
                    "parentId": "0",
                    "level": 1,
                    "systemDefault": true,
                    "cash": true,
                    "unit": "",
                    "fullName": "库存现金",
                    "leaf": true,
                    "adjustments": false,
                    "qualifiedType": "NON_LIMITING",
                    "auxiliaryAccounting": [],
                    "nonAuxiliaryAccounting": [],
                    "currencyAccounting": [],
                    "children": [],
                    "typeAlias": "资产类"
                },
                "debitAmount": 2000.00,
                "num": "0",
                "price": "0",
                "auxiliary": [],
                "debitAmountFor": 0.00,
                "creditAmountFor": 0.00,
                "exchangeRate": "1",
                "debitNum": "0",
                "creditNum": "0",
                "carryForward": false,
                "cashFlow": true,
                "rowNum": 3,
                "subjectPrintTitle": "1001 库存现金",
                "amount": 2000.00,
                "auxiliaryTitle": ""
            },
            {
                "id": "796501811220517454",
                "accountSetsId": "796501038579388980",
                "voucherId": "796501811056939594",
                "year": 2025,
                "month": 12,
                "voucherDate": "2025-12-30",
                "currencyId": "433722807319433217",
                "currencyName": "人民币",
                "currencyCode": "RMB",
                "originalAmount": "0",
                "summary": "支付货款",
                "subjectId": "433708450392985610",
                "subjectName": "1123 预付账款",
                "subjectCode": "1123",
                "subject": {
                    "id": "433708450392985610",
                    "accountSetsId": "796501038579388980",
                    "type": "资产",
                    "code": "1123",
                    "queryCode": "11230000000",
                    "name": "预付账款",
                    "mnemonicCode": "yfzk",
                    "balanceDirection": "借",
                    "status": true,
                    "parentId": "0",
                    "level": 1,
                    "systemDefault": true,
                    "cash": false,
                    "unit": "个",
                    "fullName": "预付账款",
                    "leaf": true,
                    "adjustments": false,
                    "qualifiedType": "NON_LIMITING",
                    "auxiliaryAccounting": [
                        "3",
                        "0"
                    ],
                    "nonAuxiliaryAccounting": [],
                    "currencyAccounting": [],
                    "cashFlowIn": "434018565528743939",
                    "cashFlowOut": "434018565528743939",
                    "children": [],
                    "typeAlias": "资产类"
                },
                "creditAmount": 2000.00,
                "num": "20",
                "price": "100",
                "auxiliaryDetailId": "796501811237294671",
                "auxiliary": [
                    {
                        "id": "796501415005590088",
                        "categoryId": "0",
                        "categoryType": "CUSTOMER",
                        "code": "1001",
                        "name": "纷析云(株洲)科技有限公司",
                        "categoryTypeTitle": "客户"
                    },
                    {
                        "id": "435628563161690120",
                        "categoryId": "3",
                        "categoryType": "DEPARTMENT",
                        "code": "10003",
                        "name": "行政部",
                        "categoryTypeTitle": "部门"
                    }
                ],
                "debitAmountFor": 0.00,
                "creditAmountFor": 0.00,
                "exchangeRate": "1",
                "debitNum": "0",
                "creditNum": "20",
                "carryForward": false,
                "cashFlow": true,
                "rowNum": 4,
                "subjectPrintTitle": "1123 预付账款_1001_纷析云(株洲)科技有限公司_10003_行政部",
                "amount": 2000.00,
                "auxiliaryTitle": "1001_纷析云(株洲)科技有限公司_10003_行政部"
            }
        ],
        "locked": false,
        "insert": false,
        "cash": false,
        "printTitle": "记账凭证"
    }
}
修改于 2025-12-30 14:26:44
上一页
删除凭证
Built with