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

数据源定义列表

GET
/tripartite/definition/simple

请求参数

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

返回响应

🟢200成功
application/json
Body

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/tripartite/definition/simple' \
--header 'accountSetId: 794981295003285450' \
--header 'F-API-KEY: <api-key>'
响应示例响应示例
{
    "success": true,
    "code": 200,
    "msg": "",
    "data": [
        {
            "id": "802135025771417602",
            "accountSetsId": "735079029572375852",
            "dataCount": "0",
            "voucherCount": "0",
            "pos": 1,
            "name": "纷析云费用系统",
            "code": "0xFmmwnNRth",
            "description": "纷析云费用系统",
            "enabled": true,
            "dataFields": [
                {
                    "displayName": "编码",
                    "fieldName": "code",
                    "fieldType": "STRING",
                    "description": "确定数据的唯一性",
                    "required": true,
                    "primaryKey": true,
                    "period": false
                },
                {
                    "displayName": "日期",
                    "fieldName": "date",
                    "fieldType": "DATE",
                    "description": "生成凭证时的凭证日期",
                    "required": true,
                    "primaryKey": false,
                    "period": true
                },
                {
                    "displayName": "员工姓名",
                    "fieldName": "name",
                    "fieldType": "STRING",
                    "description": "",
                    "required": false,
                    "primaryKey": false,
                    "period": false,
                    "accountingCategoryType": "EMPLOYEE",
                    "categoryTypeId": "2"
                },
                {
                    "displayName": "应发工资",
                    "fieldName": "wageAmount",
                    "fieldType": "NUMBER",
                    "description": "",
                    "required": false,
                    "primaryKey": false,
                    "period": false
                },
                {
                    "displayName": "实发工资",
                    "fieldName": "actualWageAmount",
                    "fieldType": "NUMBER",
                    "description": "",
                    "required": false,
                    "primaryKey": false,
                    "period": false
                },
                {
                    "displayName": "社保",
                    "fieldName": "socialAmount",
                    "fieldType": "NUMBER",
                    "description": "",
                    "required": false,
                    "primaryKey": false,
                    "period": false
                },
                {
                    "displayName": "公积金",
                    "fieldName": "providentAmount",
                    "fieldType": "NUMBER",
                    "description": "",
                    "required": false,
                    "primaryKey": false,
                    "period": false
                }
            ],
            "voucherTemplates": [
                {
                    "tid": "2018607450332200960",
                    "voucherWord": "记",
                    "dateFieldName": "date",
                    "summaryFieldNames": [
                        "providentAmount",
                        "socialAmount"
                    ],
                    "items": [
                        {
                            "itemType": "DATA_SUBJECT",
                            "subjectId": "433708449910640641",
                            "direction": "借",
                            "amountFieldName": "actualWageAmount",
                            "autoEqual": false,
                            "amountRatio": 100.00
                        },
                        {
                            "itemType": "FINANCIAL_SUBJECT",
                            "subjectId": "433708450254573570",
                            "direction": "贷",
                            "amountFieldName": "wageAmount",
                            "autoEqual": false,
                            "amountRatio": 100.00
                        }
                    ],
                    "rules": [
                        {
                            "fieldName": "name",
                            "matchValues": [
                                "99"
                            ],
                            "logical": "OR"
                        },
                        {
                            "fieldName": "code",
                            "matchValues": [
                                "212"
                            ],
                            "logical": "AND"
                        }
                    ]
                }
            ]
        },
        {
            "id": "802127171958149122",
            "accountSetsId": "735079029572375852",
            "dataCount": "0",
            "voucherCount": "0",
            "pos": 0,
            "name": "纷析云进销存",
            "code": "0xFkYfzu9tR",
            "description": "纷析云进销存的单据数据生成凭证",
            "enabled": true,
            "dataFields": [
                {
                    "displayName": "编码",
                    "fieldName": "code",
                    "fieldType": "STRING",
                    "description": "确定数据的唯一性",
                    "required": true,
                    "primaryKey": true,
                    "period": false
                },
                {
                    "displayName": "日期",
                    "fieldName": "date",
                    "fieldType": "DATE",
                    "description": "生成凭证时的凭证日期",
                    "required": true,
                    "primaryKey": false,
                    "period": true
                },
                {
                    "displayName": "金额",
                    "fieldName": "amount",
                    "fieldType": "NUMBER",
                    "description": "单据金额",
                    "required": true,
                    "primaryKey": false,
                    "period": false
                },
                {
                    "displayName": "类型",
                    "fieldName": "type",
                    "fieldType": "STRING",
                    "description": "单据类型",
                    "required": true,
                    "primaryKey": false,
                    "period": false
                },
                {
                    "displayName": "客户",
                    "fieldName": "customer",
                    "fieldType": "STRING",
                    "description": "关联客户",
                    "required": false,
                    "primaryKey": false,
                    "period": false,
                    "accountingCategoryType": "CUSTOMER",
                    "categoryTypeId": "0"
                },
                {
                    "displayName": "备注",
                    "fieldName": "remark",
                    "fieldType": "STRING",
                    "description": "单据备注",
                    "required": false,
                    "primaryKey": false,
                    "period": false,
                    "accountingCategoryType": "VENDOR"
                }
            ],
            "voucherTemplates": [
                {
                    "tid": "2018592473819000832",
                    "voucherWord": "记",
                    "dateFieldName": "date",
                    "summaryFieldNames": [
                        "remark",
                        "code",
                        "type"
                    ],
                    "items": [
                        {
                            "itemType": "DATA_SUBJECT",
                            "subjectId": "433708450439122958",
                            "direction": "借",
                            "amountFieldName": "amount",
                            "autoEqual": false,
                            "amountRatio": 100.00
                        },
                        {
                            "itemType": "FINANCIAL_SUBJECT",
                            "subjectId": "433708449910640641",
                            "direction": "贷",
                            "amountFieldName": "amount",
                            "autoEqual": true,
                            "amountRatio": 100.00
                        }
                    ],
                    "rules": [
                        {
                            "fieldName": "type",
                            "matchValues": [
                                "入库"
                            ],
                            "logical": "AND"
                        }
                    ]
                },
                {
                    "tid": "2018873199353352192",
                    "voucherWord": "记",
                    "dateFieldName": "date",
                    "summaryFieldNames": [
                        "remark",
                        "code",
                        "type"
                    ],
                    "items": [
                        {
                            "itemType": "DATA_SUBJECT",
                            "subjectId": "433708450380402697",
                            "direction": "借",
                            "amountFieldName": "amount",
                            "autoEqual": false,
                            "amountRatio": 100.00
                        },
                        {
                            "itemType": "FINANCIAL_SUBJECT",
                            "subjectId": "433708449910640641",
                            "direction": "贷",
                            "amountFieldName": "amount",
                            "autoEqual": true,
                            "amountRatio": 100.00
                        }
                    ],
                    "rules": [
                        {
                            "fieldName": "type",
                            "matchValues": [
                                "出库"
                            ],
                            "logical": "AND"
                        }
                    ]
                }
            ]
        }
    ]
}
修改于 2026-02-06 03:17:00
上一页
根据凭证ID获取凭证
下一页
批量推送业务数据
Built with