单据创建
- 接口:common/document
- Method:POST
- 数据格式:JSON
参数
单据头参数
字段名称 | 字段类型 | 字段描述 | 是否必填 | 长度限制(字节) |
---|---|---|---|---|
bizId | String | 当前次接口同步的唯一标识 | TRUE | 36 |
timestamp | long | 当前次接口同步时间对应的时间戳 | TRUE | 13 |
data | JSONObject | 请求数据体 | TRUE | 无 |
external_id | String | 外部系统单据id (根据此id和header_type_code单据类型决定是创建还是更新单据) | TRUE | 64 |
header_type_code | String | 单据类型编码 (单据internal_type会根据此编码自动带出) | TRUE | 64 |
internal_type | String | 单据类型 (根据单据类型编码header_type_code自动带出, 报文中无需传) | TRUE | 64 |
status | String | 单据状态 | TRUE | 64 |
submit_date | long | 单据提交时间 | FALSE | 13 |
start_datetime | long | 单据开始时间 | FALSE | 13 |
end_datetime | long | 单据结束时间 | FALSE | 13 |
pay_object | String | 支付对象(如果后续需要生成支付单, 该字段必须写入) | FALSE | 64 |
total_amount | Decimal | internal_type 不是 advance 的行的 claim_amount 乘以 pay_method_id.factor 汇总,pay_method_id 为空的时候取 claim_amount 汇总 | FALSE | 无 |
total_claim_amount | Decimal | internal_type 不是 advance 的行的 accumulation_claim_amount 汇总 | FALSE | 无 |
advance_amount | Decimal | internal_type 是 advance 的行的 claim_amount 汇总 | FALSE | 无 |
total_pay_amount | Decimal | internal_type 不是 advance 的行的 pay_claim_amount 汇总 | FALSE | 无 |
total_pay_currency_amount | Decimal | internal_type 是 request_advance 或者 request_travel_advance 或者 request_supplier 的时候,是 internal_type 是 advance 的行的 pay_currency_amount 汇总; | FALSE | 无 |
不然是 internal_type 不是 advance 的行的 pay_currency_amount 汇总 | ||||
link_header_vos | JSONArray | 关联的前序单据信息 | FALSE | 无 |
link_header_vos.external_id | String | 前序单据外部id (单据号单据类型匹配即关联,不查询校验规则), link_header_vos有值时必传 | FALSE | 64 |
link_header_vos.header_type_code | String | 前序单据单据类型(单据号单据类型匹配即关联,不查询校验规则), link_header_vos有值时必传 | FALSE | 64 |
link_header_vos.document_num | String | 前序单据单据号 | FALSE | 64 |
branch_code | String | 所属公司编码 (所属公司编码、费用承担部门编码、单据提交部门编码三选一必传) | FALSE | 64 |
charge_department_code | String | 费用承担部门编码 (所属公司编码、费用承担部门编码、单据提交部门编码三选一必传) | FALSE | 64 |
submit_department_code | String | 单据提交部门编码 (所属公司编码、费用承担部门编码、单据提交部门编码三选一必传) | FALSE | 64 |
submit_user_name | String | 单据提交人用户名 (单据创建人编码或单据创建人用户名有值时可不传) | FALSE | 64 |
charge_user_name | String | 单据报销人用户名 (单据创建人编码或单据创建人用户名有值时可不传) | FALSE | 64 |
pay_user_name | String | 单据收款人用户名 (单据创建人编码或单据创建人用户名有值时可不传) | FALSE | 64 |
created_by_user_name | String | 单据创建人用户名 (单据创建人编码有值时可不传) | FALSE | 64 |
submit_user_code | String | 单据创建人员工号 (单据创建人编码或单据创建人用户名有值时可不传) | FALSE | 64 |
charge_user_code | String | 报销人员工号 (单据创建人编码或单据创建人用户名有值时可不传) | FALSE | 64 |
pay_user_code | String | 收款人员工号 (单据创建人编码或单据创建人用户名有值时可不传) | FALSE | 64 |
created_by_code | String | 单据创建人编码 (单据创建人用户名有值时可不传) | FALSE | 64 |
currency_code | String | branch_id 对应的本位币缩写, 不传默认CNY | FALSE | 64 |
destination_cities | String | 多到达城市中文名称 (英文逗号隔开) 城市映射关系 |
FALSE | 无 |
destination_city_name | String | 出发城市名中文名称 城市映射关系 |
FALSE | 64 |
destination_city_to_name | String | 到达城市名中文名称 城市映射关系 |
FALSE | 64 |
user_account_code | String | 用户银行账号 | FALSE | 64 |
supplier_account_code | String | 供应商银行账号 | FALSE | 64 |
branch_account_code | String | 费用所属公司银行账号 | FALSE | 64 |
supplier_code | String | 供应商编码 | FALSE | 64 |
invoice_type | String | 开票类型 (单据internal_type为invoice_request时必传) | FALSE | 16 |
customer_code | String | 客户编码(单据internal_type为invoice_request时必传) | FALSE | 64 |
customer_identification_number | String | 客户纳税人识别号(单据internal_type为invoice_request时如果不传默认使用customer_code对应数据) | FALSE | 64 |
customer_address | String | 客户开票地址(单据internal_type为invoice_request时如果不传默认使用customer_code对应数据) | FALSE | 64 |
customer_account_number | String | 客户开票银行账号(单据internal_type为invoice_request时如果不传默认使用customer_code对应数据) | FALSE | 64 |
customer_bank | String | 客户开户银行(单据internal_type为invoice_request时如果不传默认使用customer_code对应数据) | FALSE | 64 |
customer_phone | String | 客户开票地址(单据internal_type为invoice_request时如果不传默认使用customer_code对应数据) | FALSE | 64 |
total_net_amount | String | 总发票不含税金额(单据internal_type为invoice_request时必传) | FALSE | 64 |
total_tax_amount | String | 总发票税额(单据internal_type为invoice_request时必传) | FALSE | 64 |
contract_type | String | 合同类型(单据类型为开票申请invoice_request时必传) | FALSE | 64 |
customer_account_code | String | 客户银行账号 | FALSE | 64 |
project_code | String | 项目编码 | FALSE | 64 |
absence_code | String | 请假类型编码 | FALSE | 64 |
ignore_warning | String | 忽略警告 | FALSE | 64 |
approver_list | Array | 批准人名单id | FALSE | 64 |
period_name | String | 财年期间 | FALSE | 255 |
attachments | JSONArray | 单据附件 | FALSE | 无 |
attachments.file_name | String | 文件名 | FALSE | 255 |
attachments.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments.document_num | String | 单据号 | FALSE | 255 |
attachments.version_id | Integer | 单据头id | FALSE | 11 |
attachments.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments1 | JSONArray | 单据附件1 | FALSE | 无 |
attachments1.file_name | String | 文件名 | FALSE | 255 |
attachments1.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments1.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments1.document_num | String | 单据号 | FALSE | 255 |
attachments1.version_id | Integer | 单据头id | FALSE | 11 |
attachments1.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments2 | JSONArray | 单据附件2 | FALSE | 无 |
attachments2.file_name | String | 文件名 | FALSE | 255 |
attachments2.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments2.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments2.document_num | String | 单据号 | FALSE | 255 |
attachments2.version_id | Integer | 单据头id | FALSE | 11 |
attachments2.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments3 | JSONArray | 单据附件3 | FALSE | 无 |
attachments3.file_name | String | 文件名 | FALSE | 255 |
attachments3.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments3.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments3.document_num | String | 单据号 | FALSE | 255 |
attachments3.version_id | Integer | 单据头id | FALSE | 11 |
attachments3.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments4 | JSONArray | 单据附件4 | FALSE | 无 |
attachments4.file_name | String | 文件名 | FALSE | 255 |
attachments4.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments4.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments4.document_num | String | 单据号 | FALSE | 255 |
attachments4.version_id | Integer | 单据头id | FALSE | 11 |
attachments4.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments5 | JSONArray | 单据附件5 | FALSE | 无 |
attachments5.file_name | String | 文件名 | FALSE | 255 |
attachments5.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments5.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments5.document_num | String | 单据号 | FALSE | 255 |
attachments5.version_id | Integer | 单据头id | FALSE | 11 |
attachments5.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments6 | JSONArray | 单据附件6 | FALSE | 无 |
attachments6.file_name | String | 文件名 | FALSE | 255 |
attachments6.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments6.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments6.document_num | String | 单据号 | FALSE | 255 |
attachments6.version_id | Integer | 单据头id | FALSE | 11 |
attachments6.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments7 | JSONArray | 单据附件7 | FALSE | 无 |
attachments7.file_name | String | 文件名 | FALSE | 255 |
attachments7.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments7.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments7.document_num | String | 单据号 | FALSE | 255 |
attachments7.version_id | Integer | 单据头id | FALSE | 11 |
attachments7.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments8 | JSONArray | 单据附件8 | FALSE | 无 |
attachments8.file_name | String | 文件名 | FALSE | 255 |
attachments8.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments8.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments8.document_num | String | 单据号 | FALSE | 255 |
attachments8.version_id | Integer | 单据头id | FALSE | 11 |
attachments8.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments9 | JSONArray | 单据附件9 | FALSE | 无 |
attachments9.file_name | String | 文件名 | FALSE | 255 |
attachments9.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments9.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments9.document_num | String | 单据号 | FALSE | 255 |
attachments9.version_id | Integer | 单据头id | FALSE | 11 |
attachments9.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
attachments10 | JSONArray | 单据附件10 | FALSE | 无 |
attachments10.file_name | String | 文件名 | FALSE | 255 |
attachments10.claim_line_id | Integer | 单据行id | FALSE | 11 |
attachments10.claim_header_id | Integer | 单据头id | FALSE | 11 |
attachments10.document_num | String | 单据号 | FALSE | 255 |
attachments10.version_id | Integer | 单据头id | FALSE | 11 |
attachments10.attachment_url | String | 文件地址 (需提前调用文件上传标准口上传文件,贴上传结果中的文件地址) | FALSE | 无 |
time_line | JSONArray | 时间行 | FALSE | 64 |
time_line.line_date | String | 行日期 | FALSE | 64 |
time_line.day_number | Decimal | 天数 | FALSE | 64 |
time_line.hour_number | Decimal | 小时数 | FALSE | 64 |
time_line.attachments | JSONObject | 时间行单据附件, 格式与头上一致 | FALSE | 无 |
pay_status | String | 支付状态, 支付单必传 (待支付传pending, 支付中paying, 已支付paid, 支付错误error) | FALSE | 16 |
due_date | long | 借款到期时间 | FALSE | 13 |
column1-150 | String | 自定义字段 | FALSE | 255 |
单据行参数
字段名称 | 字段类型 | 字段描述 | 是否必填 | 长度限制(字节) |
---|---|---|---|---|
claim_lines | JSONArray | 单据行 | FALSE | 无 |
claim_lines.line_type_code | String | 行费用类型 | TRUE | 64 |
claim_lines.destination_city_name | String | 行出发城市名中文名称 城市映射关系 |
FALSE | 64 |
claim_lines.link_line_column | String | 前序单据行关联字段 | FALSE | 64 |
claim_lines.destination_city_to_name | String | 行到达城市名中文名称 城市映射关系 |
FALSE | 64 |
claim_lines.cost_center_code | String | 行成本中心编码 | FALSE | 64 |
claim_lines.charge_user_code | String | 行报销人编码 | FALSE | 64 |
claim_lines.charge_user_name | String | 行报销人用户名 | FALSE | 64 |
claim_lines.pay_user_code | String | 行收款人编码 | FALSE | 64 |
claim_lines.pay_user_name | String | 行收款人用户名 | FALSE | 64 |
claim_lines.passenger_codes | Array | 同行人编码 | FALSE | 无 |
claim_lines.passenger_names | Array | 同行人用户名 | FALSE | 无 |
claim_lines.user_account_code | String | 行用户银行账号 | FALSE | 64 |
claim_lines.expense_id | Integer | 消费记录ID(当该 ID 被其他单据占用, 则该单据创建失败, 当传入单据状态为 cancelled 时, 不会占用该 ID) | FALSE | 11 |
claim_lines.supplier_code | String | 行供应商账号 | FALSE | 64 |
claim_lines.supplier_account_code | String | 行供应商银行账号(传值时supplier_code也必须有值) | FALSE | 64 |
claim_lines.customer_id | Integer | 行客户id | FALSE | 11 |
claim_lines.customer_code | String | 行客户编码 | FALSE | 64 |
claim_lines.customer_account_code(传值时customer_code也必须有值) | String | 行客户银行账号 | FALSE | 64 |
claim_lines.material_code | String | 行物料编码 | FALSE | 64 |
claim_lines.material_name | String | 行物料名称 | FALSE | 64 |
claim_lines.quantity | BigDecimal | 数量 | FALSE | 11 |
claim_lines.net_price | BigDecimal | 行单价 | FALSE | 64 |
claim_lines.original_amount | BigDecimal | 发票原金额 | FALSE | 64 |
claim_lines.unit_code | String | 行单位编码 | FALSE | 64 |
claim_lines.project_code | String | 行项目编码 | FALSE | 64 |
claim_lines.accumulation_type_id | Integer | 行费用计算方式 (页面获取) | FALSE | 11 |
claim_lines.pay_method_id | Integer | 行支付方式 (页面获取) | FALSE | 11 |
claim_lines.claim_currency | String | 头上的 branch_id 对应的本位币缩写 | FALSE | 64 |
claim_lines.receipt_currency | String | 头上的 branch_id 对应的本位币缩写 | FALSE | 64 |
claim_lines.receipt_amount | Decimal | 发票金额 | FALSE | 64 |
claim_lines.exchange_rate | Decimal | receipt_currency 到 claim_currency 的汇率。两个一样的时候一定是 1 | FALSE | 64 |
claim_lines.claim_amount | Decimal | receipt_amount 乘以 exchange_rate 然后四舍五入到分 | FALSE | 64 |
claim_lines.accumulation_claim_amount | Decimal | accumulation_type_id 为空的时候等于 claim_amount;不然等于 claim_amount 乘以 accumulation_type_id.factor 四舍五入到分 | FALSE | 64 |
claim_lines.pay_amount | Decimal | receipt_amount 乘以 pay_method_id.factor 然后四舍五入到分;如果 pay_method_id 为空,pay_amount 等于 receipt_amount | FALSE | 64 |
claim_lines.pay_claim_amount | Decimal | claim_amount 乘以 pay_method_id.factor 然后四舍五入到分;如果 pay_method_id 为空,pay_claim_amount 等于 claim_amount | FALSE | 64 |
claim_lines.pay_currency | String | 等于头上的 currency_code,如果不存在,等于头上的 branch_id 对应的本位币缩写 | FALSE | 64 |
claim_lines.pay_exchange_rate | Decimal | receipt_currency 到 pay_currency 的汇率。两个一样的时候是 1 | FALSE | 64 |
claim_lines.pay_currency_amount | Decimal | receipt_amount 乘以 pay_exchange_rate 然后四舍五入到分 | FALSE | 64 |
claim_lines.accumulation_type | String | 费用计算方式 | FALSE | 64 |
claim_lines.address | JSONObject | 地址 | FALSE | 无 |
claim_lines.comments | String | 描述 | FALSE | 255 |
claim_lines.claim_attachments | Array | 行上附件, 格式与头上一致 | FALSE | 无 |
claim_lines.attachments1-10 | Array | 行上附件, 格式与头上一致 | FALSE | 无 |
claim_lines.attachment_count | Integer | 发票张数 | FALSE | 10 |
claim_lines.period_name | String | 财年期间 | FALSE | 255 |
claim_lines.product_code | String | 商品编码(单据internal_type为invoice_request时必传) | FALSE | 64 |
claim_lines.product_specification | String | 规格型号(单据internal_type为invoice_request时时如果不传默认使用product_code对应值) | FALSE | 64 |
claim_lines.unit_code | String | 单位编码(单据internal_type为invoice_request时必传) | FALSE | 64 |
claim_lines.quantity | BigDecimal | 数量(单据internal_type为invoice_request时必传) | FALSE | 64 |
claim_lines.price | BigDecimal | 含税单价(单据internal_type为invoice_request时必传) | FALSE | 64 |
claim_lines.fin_tax_code | String | 税码 | FALSE | 64 |
claim_lines.receipt_amount | BigDecimal | 含税金额(单据internal_type为invoice_request时必传) | FALSE | 64 |
claim_lines.tax_code | String | 税号编码(单据internal_type为invoice_request时必传) | FALSE | 64 |
claim_lines.from_cities_name | Array | 来自城市名称 城市映射关系 |
FALSE | 255 |
claim_lines.to_cities_name | Array | 目的城市名称 城市映射关系 |
FALSE | 255 |
claim_lines.receipt_complete | String | 验收完成(Y或者N) | FALSE | 1 |
claim_lines.order_complete | String | 下单完成(Y或者N) | FALSE | 1 |
claim_lines.claim_complete | String | 核销完成(Y或者N) | FALSE | 1 |
claim_lines.invoice_complete | String | 收票完成(Y或者N) | FALSE | 1 |
claim_lines.tax_amount | Decimal | 如果 tax_code_id 未设置,tax_amount 为 0。不然,计算方式如下。如果 original_amount 没有设置,取 receipt_amount,不然取 original_amount。 上述的结果 乘以 exchange_rate 然后四舍五入到分。然后这个结果再 乘以 tax_code_id.tax_rate / (1 + tax_code_id.tax_rate),再四舍五入到分。这个结果是 tax_amount (单据internal_type为invoice_request时必传) | FALSE | 64 |
claim_lines.net_amount | Decimal | claim_amount - tax_amount 四舍五入到分 (单据internal_type为invoice_request时必传) | FALSE | 64 |
column1-150 | String | 自定义字段 | FALSE | 255 |
claim_lines.sub_type | String | 台账子类型 | FALSE | 64 |
claim_lines.line_num | String | 行号, 同一张单据不同行之间的line_num不能相同 (作为前序行被关联时必传) | FALSE | 64 |
claim_lines.link_vo | JSONObject | 头行/行行关联关系 | FALSE | 无 |
claim_lines.offset_detail | JSONArray | 偏移细节 | FALSE | 无 |
link_vo.external_id | String | 前序单据唯一值(link_vo有值时与link_vo.document_num二选一必传) | FALSE | 64 |
link_vo.document_num | String | 前序单据单据号(link_vo有值时与link_vo.external_id二选一必传) | FALSE | 64 |
link_vo.header_type_code | String | 前序单据类型 (link_vo有值时必传) | FALSE | 64 |
link_vo.line_num | String | 前序单据行行号, 行行关联时必传, 不传默认头行关联 | FALSE | 64 |
日程行参数
字段名称 | 字段类型 | 字段描述 | 是否必填 | 长度 |
---|---|---|---|---|
custom_line | Array | 日程行列表 | FALSE | / |
custom_line[].custom_line_type_code | String | 日程行类型 | TRUE | 64 |
custom_line[].cost_center_code | String | 日程行成本中心编码 | FALSE | 64 |
custom_line[].customer_code | String | 日程行客户编码 | FALSE | 64 |
custom_line[].supplier_code | String | 日程行供应商账号 | FALSE | 64 |
custom_line[].charge_user_code | String | 日程行人员编码 | FALSE | 64 |
custom_line[].charge_user_name | String | 日程行人员用户名 | FALSE | 64 |
custom_line[].passenger_codes | Array | 日程行人员列表编码 | FALSE | / |
custom_line[].passenger_names | Array | 日程行人员列表用户名 | FALSE | / |
custom_line[].project_code | String | 日程行项目编码 | FALSE | 64 |
custom_line[].destination_city_name | String | 日程行出发城市名称 城市映射关系 |
FALSE | 64 |
custom_line[].destination_city_to_name | String | 日程行到达城市名称 城市映射关系 |
FALSE | 64 |
custom_line[].destination_cities | String | 日程行多到达城市名称 (英文逗号分隔) 城市映射关系 |
FALSE | / |
custom_line[].start_datetime | Long | 日程行开始时间 | FALSE | 13 |
custom_line[].end_datetime | Long | 日程行结束时间 | FALSE | 13 |
custom_line[].attendee_number | Int | 日程行人数 | FALSE | / |
custom_line[].duration_day | Decimal | 日程行时长(天) | FALSE | / |
custom_line[].duration_hour | Decimal | 日程行时长(小时) | FALSE | / |
custom_line[].duration_minute | Decimal | 日程行时长(分钟) | FALSE | / |
custom_line[].comments | String | 日程行描述 | FALSE | 255 |
custom_line[].long_comments | String | 日程行长描述 | FALSE | / |
custom_line[].column1-100 | String | 日程行自定义字段 | FALSE | 255 |
预算分摊行参数
字段名称 | 字段类型 | 字段描述 | 是否必填 | 长度 |
---|---|---|---|---|
budget_line | Array | 预算分摊行列表 | FALSE | 无 |
budget_line[].period_name | String | 预算分摊行财年期间编码 | FALSE | 64 |
budget_line[].cost_center_code | String | 预算分摊行成本中心编码 | FALSE | 64 |
budget_line[].supplier_code | String | 预算分摊行供应商编码 | FALSE | 64 |
budget_line[].charge_department_code | String | 预算分摊行部门编码 | FALSE | 64 |
budget_line[].charge_user_code | String | 预算分摊行人员员工号 | FALSE | 64 |
budget_line[].charge_user_name | String | 预算分摊行人员用户名 | FALSE | 64 |
budget_line[].budget_amount | Decimal | 预算分摊行分摊金额 | FALSE | / |
budget_line[].budget_currency | String | 预算分摊行分摊币种 | FALSE | 16 |
budget_line[].ratio | Decimal | 预算分摊行分摊比例(小数) | FALSE | / |
budget_line[].column1-100 | String | 预算分摊行自定义字段 | FALSE | 255 |
示例:
请求数据
{
"bizId": "4aba2901-8b53-40f5-91fc-e8f375cddc84",
"timestamp": 1614053054469,
"data": {
"header": {
"branch_code": "105",
"charge_department_code": "32006",
"total_amount": 340.00,
"total_claim_amount": 340.00,
"column1": "300.88",
"column10": "0.00",
"column13": "CT02",
"column14": "光谷大道9号长飞6号门",
"column15": "CON20210223000021",
"column47": "PO20210223000016",
"column48": "340.00",
"column8": "1614053045000",
"created_by_code": "0101106",
"currency_code": "CNY",
"claim_lines": [
{
"column24": "119",
"column27": "0",
"column4": "1",
"column40": "REQ0000037169",
"column7": "固态继电器 480V 40A",
"cost_center_code": "32006",
"line_type_code": "T50",
"price": 34.00,
"project_code": "FD004.2",
"quantity": 10.00,
"receipt_amount": 340.00,
"receipt_currency": "CNY",
"claim_amount": 340.00,
"net_amount": 300.88,
"tax_amount": 39.12,
"tax_code": "TAX_IN_13",
"product_code":"aa",
"product_name":"test",
"column1":"xxx1",
"column51":"xxx",
"column53":"xxxxxx",
"link_vo":{
"external_id":"xx",
"document_num":"xx",
"line_num":"xxx",
"headerTypeCode": "xxxx"
}
}
],
"custom_line": [
{
"custom_line_type_code": "T02",
"cost_center_code": "D1",
"customer_code": "MKS",
"supplier_code": "AK001",
"charge_user_name": "aaa@cloudpense.com",
"passenger_names": [
"aaa@cloudpense.com",
"bbb@cloudpense.com"
],
"project_code": "DRHG1",
"destination_city_name": "上海",
"destination_city_to_name": "北京",
"destination_cities": "上海,北京",
"start_datetime": 1681660800000,
"end_datetime": 1681747200000,
"attendee_number": 2,
"duration_day": 1.0,
"duration_hour": 24.0,
"duration_minute": 1440.0,
"comments": "comments",
"long_comments": "long_comments",
"column1": "100",
"column14": "1400"
}
],
"budget_line": [
{
"period_name": "2023年5月",
"cost_center_code": "C004300249",
"supplier_code": "0070002396",
"charge_department_code": "D1",
"charge_user_name": "test@cloudpense.com",
"project_code": "apipro003",
"budget_amount": 340.00,
"budget_currency": "CNY",
"ratio": 1.0,
"column1": "100",
"column51": "5100"
}
],
"external_id": "6709",
"header_type_code": "T014",
"column51":"xxx",
"column53":"xxxxxx",
"status": "approved",
"supplier_code": "100662",
"invoice_type": "a",
"customer_identification_number": "500",
"customer_address": "c",
"customer_phone": "c",
"customer_bank": "a",
"customer_account_number":"xxx",
"total_net_amount": 300.88,
"total_tax_amount": 39.12,
"link_header_vos": [
{
"external_id": "PO00000315",
"header_type_code": "T014"
}
],
"attachments": [
{
"file_name": "微信截图_20210310161257.png",
"attachment_url": "https://srm-api.yofc.com:7000/srm-prod-private-bucket/1/ddf5af4de44041a8a49db335cc2797ed@微信截图_20210310161257.png"
}
],
"attachments1": [
{
"file_name": "微信截图_20210310161257.png",
"attachment_url": "https://srm-api.yofc.com:7000/srm-prod-private-bucket/1/ddf5af4de44041a8a49db335cc2797ed@微信截图_20210310161257.png"
}
],
"attachments2": [
{
"file_name": "微信截图_20210310161257.png",
"attachment_url": "https://srm-api.yofc.com:7000/srm-prod-private-bucket/1/ddf5af4de44041a8a49db335cc2797ed@微信截图_20210310161257.png"
}
],
"attachments10": [
{
"file_name": "微信截图_20210310161257.png",
"attachment_url": "https://srm-api.yofc.com:7000/srm-prod-private-bucket/1/ddf5af4de44041a8a49db335cc2797ed@微信截图_20210310161257.png"
}
],
"description": "2020??9月项目管理职务任职资格津贴报??"
}
}
}
返回数据
返回成功
{
"resCode": 200000,
"resMsg": "创建成功",
"data": {
"header": {
"description": "2020??9月项目管理职务任职资格津贴报??",
"status": "approved",
"company_id": 20387,
"external_id": "6709",
"header_id": 12204,
"document_id": 12204,
"document_num": "REQ0000001577",
"column1": "300.88",
"column10": "0.00",
"column13": "CT02",
"column14": "光谷大道9号长飞6号门",
"column15": "CON20210223000021",
"column47": "PO20210223000016",
"column8": "1614053045000",
"created_by_code": "0101106",
"currency_code": "CNY",
"submit_date": "2020-10-28",
"start_datetime": "2021-03-31",
"branch_id": 101330,
"submit_department_id": 103659,
"charge_department_id": 103659,
"submit_user_id": 270824,
"charge_user_id": 270824,
"pay_user": 270824,
"header_type_id": 155693,
"created_by": 270824,
"creation_date": 1603861810938,
"last_updated_by": 270824,
"last_update_date": 1603861810938
}
}
}
返回失败,返回失败时所有错误信息会写在error中,根据提示修改报文内容即可
{
"resCode": 500060,
"resMsg": "校验失败",
"data": {
"error": "header中费单据类型header_type_code值ZD20错误;"
}
}