跳转至

查询账单关联凭证

功能说明

根据账单列表中有凭据的账单编号查询凭据压缩包文件地址,文件地址生效时间默认1天,且仅能下载2次,获取地址后请及时下载

接口地址

HTTP请求方式

  • Method: POST
  • Content-Type: application/x-www-form-urlencoded

参数说明

  • 公有参数

发送请求是必须传入公共参数,详见公共参数

  • 私有参数
参数名称 是否必须 参数类型 长度限制 描述
enterprise_code string [1,20] 企业编号(集团和运营商必填,企业不填)
userid string [1,50] 员工唯一标识
bill_no string [1,50] 账单编号

请求示例

POST /enterprise/expense/billVoucher/get HTTP/1.1
Host: openapi.guanaitong.tech
Content-Type: application/x-www-form-urlencoded
cache-control: no-cache

access_token=fdd9318db2fdf96f152226231d2b8f49&sign=6fc42a2a0fd3f3fb0602da732272bee406bef5e8&timestamp=1584590939&userid=213214&bill_no=GAT956345430343

返回参数说明

参数说明 描述
code 返回码,0代表正确返回
msg 如果错误,返回错误信息。
data 如果没有错误,返回凭证信息列表List

VoucherVO对象

字段名 描述
file_path 凭据文件下载地址
type 1:发票 2:水单
time_created 凭证上传时间

正确返回示例

{
  "code": 0,
  "data": [
    {
      "file_path": "https://openapi.guanaitong.tech/file/export/ce2af624-8456-4fd7-b63c-5cf9826012f5",
      "type": 1,
      "time_created": "2022-08-01 12:09:35"
    }
  ],
  "msg": "OK"
}

错误返回示例

{
  "code": 1000210001,
  "msg": "timestamp check failed!",
  "data": null
}
回到页面顶部