单据单张详情查询
- 接口:common/document/unique
- Method:GET
- 数据格式:JSON
- 多语言:请求头
HEADER
中添加locale
参数,当前支持多语言zh_CN
/zh_TW
/en_US
/ja_JP
,任选其一,不传默认为zh_CN
- 接口说明:
- 单据单张详情查询,可查询范围如下
- 单据头
- 前序单据列表、后序单据列表
- 费用行列表、事项明细行(又名日程行、行程行)列表、预算分摊行列表
- 工作流列表
参数
请求参数
字段名称 |
字段类型 |
字段描述 |
是否必填* |
长度限制 |
参数类型 |
externalId |
String |
外部系统单据号或云简单据号 |
ONE-OF |
64 |
Query |
*是否必填:TRUE
表示必填,FALSE
表示非必填,ONE-OF
表示任选其一
返回参数
字段名称 |
字段类型 |
字段描述 |
resCode |
Integer |
响应状态码 |
resMsg |
String |
返回信息描述 |
data |
Object |
单据头信息 |
data.header_links |
Array |
前序单据列表 |
data.header_back_links |
Array |
后序单据列表 |
data.claim_lines |
Array |
费用行列表 |
data.custom_line |
Array |
事项明细行列表 |
data.budget_line |
Array |
预算分摊行列表 |
data.budget_adjustment_line |
Array |
预算分摊行列表 |
data.budget_transfer_line |
Array |
预算分摊行列表 |
data.workflow_paths |
Array |
工作流列表 |
示例
请求示例
common/document/unique?externalId=RVhQMDAwMDAwMDAwMQ
返回示例
{
"resCode": 200000,
"resMsg": "success",
"data": {
"id": 304638,
"code": "REQ0000000001",
"advance_amount": 0.00,
"branch_id": 124751,
"creation_date": 1685538635000,
"currency_code": "CNY",
"external_id": "506272",
"gl_period": 216,
"header_type_id": 155937,
"internal_type": "request",
"status": "closed",
"submit_date": 1685539627000,
"total_amount": 10000.00,
"total_claim_amount": 10000.00,
"total_pay_amount": 10000.00,
"total_pay_currency_amount": 10000.00,
"user_account_id": 599721,
"header_type": {
"id": 155937,
"code": "REQ022",
"budget_flag": "Y",
"config_type_code": "gl_none",
"delivery_flag": "N",
"internal_type": "request",
"revision_flag": "N",
"share_flag": "Y",
"type": "****报销计划"
},
"branch": {
"id": 124751,
"code": "001",
"account_number": "**************1744",
"approval_level": 1,
"bank_name": "*******支行",
"branch_company_id": 124751,
"budget_control": "N",
"budget_flag": "N",
"company_name": "******有限公司",
"cost_center_flag": "N",
"currency_code": "CNY",
"department_code": "001",
"department_id": 124751,
"department_name": "******有限公司",
"enabled_flag": "Y",
"exchange_rate_type_id": 0,
"ledger_id": 26286,
"owner_id": 304905,
"parent_id": 41734,
"phone": "010-******66",
"sequence_num": 100,
"supervisor_id": 41734,
"tax_address": "********99-18",
"tax_number": "91320000**********",
"type": "B"
},
"submit_department": {
"id": 125578,
"code": "1151166",
"approval_level": 1,
"branch_company_id": 124751,
"budget_control": "N",
"budget_flag": "N",
"cost_center_flag": "Y",
"department_code": "1151166",
"department_id": 125578,
"department_name": "******地区",
"enabled_flag": "Y",
"exchange_rate_type_id": 0,
"owner_id": 314444,
"parent_id": 125580,
"sequence_num": 9999,
"supervisor_id": 125580,
"type": "D"
},
"charge_department": {
...同submit_department格式
},
"created_by": {
"id": 314444,
"code": "JS190025",
"base_city": "400",
"birthday": "****-**-**",
"branch_id": 124751,
"company_id": 22144,
"cost_center_id": 125578,
"creation_date": 1675313253000,
"date_of_joining": "****-**-**",
"department_id": 125578,
"email_address": "test@test.com",
"employee_number": "JS190025",
"full_name": "赵*",
"gender": "M",
"last_update_date": 1695201907000,
"level_id": 2530,
"mobile": "18652765800",
"nationality": "CHN",
"parent_id": 314335,
"supervisor_id": 314335,
"user_name": "test@test.com",
"user_type": "1",
"wechatqy_name": "JS190025"
},
"submit_user": {
...同created_by格式
},
"charge_user": {
...同created_by格式
},
"pay_user": {
...同created_by格式
},
"gl_period_vo": {
"id": 216,
"code": "*年*月",
"end_date": 1685491200000,
"level_name": "**期间",
"parent_id": 225,
"period_status": "O",
"start_date": 1682899200000
},
"user_account": {
"id": 599721,
"code": "************5656",
"account_name": "赵*",
"account_number": "************5656",
"bank_branch": "**银行*******支行",
"bank_name": "**银行",
"enabled_flag": "Y",
"primary_flag": "Y",
"user_id": 314444
},
"claim_lines": [
{
"id": 894965,
"header_id": 304638,
"accumulation_claim_amount": 5000.00,
"accumulation_type_id": 1,
"attachment_count": 0,
"claim_amount": 5000.00,
"claim_currency": "CNY",
"cost_center_id": 125578,
"exchange_rate": 1.0000000000,
"internal_type": "meal",
"line_id": 894965,
"net_amount": 5000.00,
"order_complete": "N",
"pay_currency": "CNY",
"pay_currency_amount": 5000.00,
"pay_exchange_rate": 1.0000000000,
"pay_method_id": 31749,
"receipt_amount": 5000.00,
"receipt_currency": "CNY",
"tax_amount": 0.00,
"type_id": 628284,
"exp_type": {
"id": 628284,
"code": "3",
"category": "投入方式",
"enabled": "Y",
"type": "餐饮",
"type_code": "3"
},
"cost_center": {
"id": 125578,
"code": "1151166",
"approval_level": 1,
"branch_company_id": 124751,
"budget_control": "N",
"budget_flag": "N",
"cost_center_flag": "Y",
"department_code": "1151166",
"department_id": 125578,
"department_name": "******地区",
"enabled_flag": "Y",
"exchange_rate_type_id": 0,
"owner_id": 314444,
"parent_id": 125580,
"sequence_num": 9999,
"supervisor_id": 125580,
"type": "D"
},
"accumulation_type": {
"id": 1,
"code": "1",
"accumulation_type": "计入",
"description": "计入费用",
"enabled": "Y"
},
"pay_method": {
"id": 31749,
"factor": 1,
"description": "员工个人支付",
"pay_method": "本次支付/冲抵预付款"
},
"route": {
"fastCase": {}
}
}
],
"custom_line": [
{
"id": 227343,
"header_id": 304638,
"type_id": 2,
"start_datetime": 1684207800000,
"end_datetime": 1684209300000,
"duration_minute": 25.00,
"column1": "19",
"column58": "03",
"custom_type": {
"id": 2,
"code": "T02",
"enabled_flag": "Y",
"name": "活动议程",
"mobile_module_type": "calendar_duration"
}
}
],
"budget_line": [
{
"id": 50,
"budget_amount": 3000.00,
"budget_period": 216,
"cost_center_id": 125578,
"header_id": 304638,
"project_name": "50",
"ratio": 0.3000000000,
"cost_center": {
...同data.claim_lines.cost_center格式
},
"gl_period_vo": {
...同data.gl_period_vo格式
},
"project": {
"id": 50,
"code": "***1808-2",
"enabled_flag": "Y",
"project_name": "***0209",
"staff_flag": "N"
}
}
],
"header_back_links": [
{
"id": 305822,
"code": "EXP0000009582",
"advance_amount": 1200.00,
"branch_account_id": 949,
"branch_id": 124751,
"claim_complete": "N",
"creation_date": 1685540270000,
"currency_code": "CNY",
"document_id": 304639,
"exception_level": 1,
"external_id": "506272",
"gl_period": 216,
"header_type_id": 155923,
"internal_type": "claim_supplier",
"ledger1": 26286,
"link_header_id": 304638,
"status": "closed",
"submit_date": 1686236166000,
"total_adjust_point": 0.00,
"total_amount": 1258.42,
"total_claim_amount": 1258.42,
"total_pay_amount": 58.42,
"total_pay_currency_amount": 58.42,
"user_account_id": 599721,
"formula_description": {
"amount_obj": {
"amount_column": "total_amount"
},
"description": ""
},
"branch_account": {
"account_name": "******有限公司",
"account_number": "***********0202",
"bank_name": "**银行***支行",
"branch_id": 124751,
"code": "***********0202",
"enabled_flag": "Y",
"id": 949,
"internal_type": "ebank",
"last_update_date": 1685355061000,
"primary_flag": "Y"
},
"header_type": {
...同data.header_type格式
},
"branch": {
...同data.branch格式
},
"charge_department": {
...同data.charge_department格式
},
"submit_department": {
...同data.submit_department格式
},
"submit_user": {
...同data.created_by格式
},
"charge_user": {
...同data.created_by格式
},
"pay_user": {
...同data.created_by格式
},
"gl_period_vo": {
...同data.gl_period_vo格式
}
"user_account": {
...同data.user_account格式
}
}
],
"header_links": [],
"budget_adjustment_line": [
{
"id": 134197,
"adjustment_amount": 5000.00,
"gl_period_vo": {
"id": 1844,
"code": "2024年9月份",
"parentId": 1841,
"periodName": "2024年9月份",
"uniqueKey": 1844,
"level_name": "月份",
"period_status": "O",
"start_date": 1725148800000,
"end_date": 1727654400000
},
"budget_id_vo": {
"id": 20545,
"code": "6600",
"budgetCode": "6600",
"uniqueKey": 20545,
"enabled_flag": "Y",
"budget_control": "Y",
"budget_name": "003-租赁费"
},
"department_id_vo": {
"id": 220621,
"code": "00004849",
"parentId": 220617,
"type": "D",
"uniqueKey": 220621,
"department_name": "商务合作",
"department_code": "00004849",
"department_id": 220621,
"owner_id": 224129,
"approval_level": 1,
"natural_level": 4,
"exchange_rate_type_id": 0,
"cost_center_flag": "Y",
"budget_flag": "Y",
"budget_control": "Y",
"enabled_flag": "Y",
"branch_company_id": 221557,
"supervisor_id": 220617
}
}
],
"budget_transfer_line": [
{
"id": 4136,
"gl_period_vo_in": {
"id": 1860,
"code": "2024年11月份",
"parentId": 1858,
"periodName": "2024年11月份",
"uniqueKey": 1860,
"level_name": "月份",
"period_status": "O",
"start_date": 1730419200000,
"end_date": 1732924800000
},
"budget_id_vo_in": {
"id": 20546,
"code": "6601",
"budgetCode": "6601",
"uniqueKey": 20546,
"enabled_flag": "Y",
"budget_control": "Y",
"budget_name": "003-水电费"
},
"department_id_vo_in": {
"id": 104154,
"code": "YF100",
"parentId": 104153,
"column1": "104152",
"type": "D",
"uniqueKey": 104154,
"department_name": "研发一部门",
"department_code": "YF100",
"department_id": 104154,
"sequence_num": 10,
"owner_id": 320731,
"approval_level": 3,
"natural_level": 3,
"exchange_rate_type_id": 0,
"currency_code": "CNY",
"cost_center_flag": "Y",
"budget_flag": "Y",
"budget_control": "Y",
"ledger_id": 35216,
"enabled_flag": "Y",
"branch_company_id": 104152,
"supervisor_id": 104153
},
"project_id_vo_in": {
"id": 296815,
"code": "300230",
"column1": "1",
"projectCode": "300230",
"uniqueKey": 296815,
"staff_flag": "N",
"project_name": "300230",
"enabled_flag": "Y"
},
"supplier_id_vo_in": {
"id": 59086,
"code": "191",
"uniqueKey": 59086,
"supplier_code": "191",
"enabled_flag": "Y",
"supplier_name": "上海恩亚智能科技有限公司",
"contact_phone": ""
},
"gl_period_vo_out": {
"id": 1860,
"code": "2024年11月份",
"parentId": 1858,
"periodName": "2024年11月份",
"uniqueKey": 1860,
"level_name": "月份",
"period_status": "O",
"start_date": 1730419200000,
"end_date": 1732924800000
},
"budget_id_vo_out": {
"id": 20546,
"code": "6601",
"budgetCode": "6601",
"uniqueKey": 20546,
"enabled_flag": "Y",
"budget_control": "Y",
"budget_name": "003-水电费"
},
"department_id_vo_out": {
"id": 104153,
"code": "YF001",
"parentId": 104152,
"column1": "160698",
"column2": "column2-文本带值",
"column3": "10",
"type": "D",
"uniqueKey": 104153,
"department_name": "研发部",
"department_code": "YF001",
"department_id": 104153,
"sequence_num": 10,
"owner_id": 320733,
"approval_level": 2,
"natural_level": 2,
"exchange_rate_type_id": 0,
"currency_code": "CNY",
"cost_center_flag": "Y",
"budget_flag": "Y",
"budget_control": "Y",
"ledger_id": 35216,
"enabled_flag": "Y",
"branch_company_id": 104152,
"supervisor_id": 104152
},
"project_id_vo_out": {
"id": 296815,
"code": "300230",
"column1": "1",
"projectCode": "300230",
"uniqueKey": 296815,
"staff_flag": "N",
"project_name": "300230",
"enabled_flag": "Y"
},
"supplier_id_vo_out": {
"id": 59086,
"code": "191",
"uniqueKey": 59086,
"supplier_code": "191",
"enabled_flag": "Y",
"supplier_name": "上海恩亚智能科技有限公司",
"contact_phone": ""
}
}
]
"workflow_paths": [
{
"path_id": 19395,
"end_date": 1685539620000,
"function": "U",
"function_name": "指定用户",
"open_date": 1685539620000,
"position_name": "财务审核",
"position_user": [],
"sequence_num": 1,
"status": "approved",
"type": "A",
"user_id": 305108,
"user_name": "陈*",
"value": "305108",
"value_json": "{\"path_id\": 217296}",
"workflow_id": 0,
"workflow_step": "approval",
"workflow_type": "EXP"
}
]
}
}
{
"resCode": 206001,
"resMsg": "单据不存在"
}