expensesclaim/get
目录 |
1.接口说明
1.1接口描述
获取单张费用报销单
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
移动报销、报销应用
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/expensesclaim/get |
| 格式 | JSON |
| https请求方式 | GET |
| 编码类型 | UTF-8 |
3.2url参数说明
| 参数 | 是否必填 | 类型 | 描述 |
|---|---|---|---|
| from_account | 是 | string | 调用方id |
| to_account | 是 | string | 提供方id |
| app_key | 是 | string | 应用编码 |
| token | 是 | string | 全局访问唯一识别码 |
| ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
| id | 是 | string | 单据编号 |
3.3请求示例
GET https://api.yonyouup.com/api/expensesclaim/get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=843d03f66e6544e19707ccec11030296&id=0000000017&ds_sequence=1
3.4返回参数说明
| 参数说明 | 类型 | 参数路径 | 描述 |
|---|---|---|---|
| errcode | string | 错误码,0 为正常。 | |
| errmsg | string | 错误信息。 | |
| operationtypecode | string | 单据类型编码 | |
| typename | string | 单据类型 | |
| code | string | 单据编号 | |
| expensedate | date | 报销日期 | |
| expenserid | string | 报销人编码 | |
| cpsn_name | string | 报销人 | |
| deptid | string | 部门 | |
| cdepname | string | 部门名称 | |
| expensemoney | number | 报销金额 | |
| budgetitemid | string | 预算项目编码 | |
| cbgitemname | string | 预算项目 | |
| currency | string | 币种 | |
| agentid | string | 经办人 | |
| auditorid | string | 审核人 | |
| makerid | string | 制单人 | |
| auditdate | date | 审核日期 | |
| cuscode | string | 客户编码 | |
| ccusname | string | 客户名称 | |
| ccusabbname | string | 客户简称 | |
| vencode | string | 供应商编码 | |
| cvenname | string | 供应商名称 | |
| cvenabbname | string | 供应商简称 | |
| auditdatetime | date | 审核日期时间 | |
| auditstate | number | 审核状态 | |
| paystate | number | 支付状态 | |
| vouchstate | number | 单据状态 | |
| used | string | 用途 | |
| exchangerate | number | 汇率 | |
| itemclassid | string | 项目大类 | |
| itemid | string | 头项目 | |
| citem_name | string | 项目大类名称 | |
| citemname | string | 头项目 | |
| spreaddeptid | string | 头分摊部门 | |
| spreaddepname | string | 部门名称 | |
| cdefine1 | string | 自定义项1 | |
| cdefine2 | string | 自定义项2 | |
| cdefine3 | string | 自定义项3 | |
| cdefine4 | date | 自定义项4 | |
| cdefine5 | number | 自定义项5 | |
| cdefine6 | date | 自定义项6 | |
| cdefine7 | number | 自定义项7 | |
| cdefine8 | string | 自定义项8 | |
| cdefine9 | string | 自定义项9 | |
| cdefine10 | string | 自定义项10 | |
| cdefine11 | string | 自定义项11 | |
| cdefine12 | string | 自定义项12 | |
| cdefine13 | string | 自定义项13 | |
| cdefine14 | string | 自定义项14 | |
| cdefine15 | number | 自定义项15 | |
| cdefine16 | number | 自定义项16 | |
| costapplycode | string | 申请单号 | |
| begindate | date | entry | 起始日期 |
| enddate | date | entry | 终止日期 |
| begintime | string | entry | 起始时间 |
| emdtime | string | entry | 终止时间 |
| beginzero | string | entry | 起始地点 |
| endzero | string | entry | 达到地点 |
| vehiclecode | string | entry | 交通工具编码 |
| vehiclename | string | entry | 交通工具 |
| attachmentnum | number | entry | 附单据数 |
| costitemid | string | entry | 费用项目编码 |
| cexpname | string | entry | 费用项目 |
| deptid | string | entry | 部门编码 |
| subdepname | string | entry | 部门名称 |
| expenserid | string | entry | 报销人编码 |
| subpsn_name | string | entry | 报销人 |
| itemclassid | string | entry | 项目大类编码 |
| subcitem_name | string | entry | 项目大类名称 |
| itemid | string | entry | 项目编码 |
| subcitemname | string | entry | 项目名称 |
| expensemoney | number | entry | 报销金额 |
| localmoney | number | entry | 本币金额 |
| number | number | entry | 数量 |
| quota | number | entry | 定额 |
| vouchmoney | number | entry | 单据金额 |
| overquotarate | number | entry | 超定额比率 |
| rate | number | entry | 百分比 |
| spreaddeptid | string | entry | 费用承担部门编码 |
| spreaddepname | string | entry | 费用承担部门 |
| memo | string | entry | 说明 |
| budgetitemid | string | entry | 预算项目编码 |
| subbgitemname | string | entry | 预算项目 |
| cdefine22 | string | entry | 自定义项22 |
| cdefine23 | string | entry | 自定义项23 |
| cdefine24 | string | entry | 自定义项24 |
| cdefine25 | string | entry | 自定义项25 |
| cdefine26 | number | entry | 自定义项26 |
| cdefine27 | number | entry | 自定义项27 |
| cdefine28 | string | entry | 自定义项28 |
| cdefine29 | string | entry | 自定义项29 |
| cdefine30 | string | entry | 自定义项30 |
| cdefine31 | string | entry | 自定义项31 |
| cdefine32 | string | entry | 自定义项32 |
| cdefine33 | string | entry | 自定义项33 |
| cdefine34 | number | entry | 自定义项34 |
| cdefine35 | number | entry | 自定义项35 |
| cdefine36 | date | entry | 自定义项36 |
| cdefine37 | date | entry | 自定义项37 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"errmsg":"",
"errcode":"0",
"expensesclaim":{
"cbgitemname":"销售费用",
"spreaddeptid":"1001",
"cuscode":null,
"cvenabbname":null,
"ccusname":null,
"used":"客户研讨",
"exchangerate":"1.0",
"operationtypecode":"3003",
"spreaddepname":"区域销售部",
"deptid":"1001",
"ccusabbname":null,
"citemname":null,
"budgetitemid":"1002",
"iswfcontrolled":"1",
"expenserid":"00040",
"citem_name":null,
"cdepname":"区域销售部",
"code":"0000000017",
"agentid":"demo1",
"auditdate":null,
"cvenname":null,
"cdefine12":null,
"costapplycode":null,
"cdefine11":null,
"cdefine10":null,
"auditdatetime":null,
"cpsn_name":"崔可",
"expensemoney":"689.00",
"itemid":null,
"cdefine14":null,
"vouchstate":"0",
"cdefine13":null,
"cdefine16":null,
"cdefine15":null,
"currency":"人民币",
"id":"F112F17E-B67E-4F24-BD13-33D2DBFCE095",
"itemclassid":null,
"vencode":null,
"paystate":"0",
"cdefine9":null,
"cdefine8":null,
"expensedate":"2015-01-0600:00:00.0",
"cdefine7":null,
"cdefine6":null,
"cdefine5":null,
"cdefine4":null,
"cdefine3":null,
"cdefine2":null,
"cdefine1":null,
"auditorid":null,
"entry":[
{
"spreaddeptid":"0302",
"emdtime":null,
"cnedefine12":null,
"cnedefine1":null,
"cnedefine13":null,
"cnedefine2":null,
"cnedefine10":null,
"cnedefine3":null,
"iid":"BEFF6881-A8F8-4589-9866-329256D50E9A",
"begintime":null,
"cnedefine11":null,
"cnedefine4":null,
"cnedefine16":null,
"cdefine36":null,
"cnedefine17":null,
"cdefine35":null,
"cnedefine14":null,
"cnedefine15":null,
"cdefine37":null,
"cnedefine18":null,
"cnedefine19":null,
"spreaddepname":"销售部",
"deptid":"0302",
"budgetitemid":"1002",
"vouchmoney":null,
"expenserid":"00040",
"subdepname":"销售部",
"subbgitemname":"销售费用",
"beginzero":null,
"number":null,
"subpsn_name":"崔可",
"localmoney":"689.00",
"begindate":null,
"enddate":null,
"vehiclecode":null,
"memo":null,
"expensemoney":"689.00",
"cexpname":"招待费",
"costitemid":"0006",
"itemid":null,
"autoid":"18",
"cnedefine30":null,
"overquotarate":null,
"attachmentnum":null,
"id":"F112F17E-B67E-4F24-BD13-33D2DBFCE095",
"endzero":null,
"subcitem_name":null,
"quota":null,
"cdefine22":null,
"rate":null,
"cdefine23":null,
"itemclassid":null,
"costapplysubid":null,
"cnedefine29":null,
"vehiclename":null,
"cnedefine26":null,
"cnedefine25":null,
"cnedefine28":null,
"cnedefine27":null,
"cnedefine22":null,
"cnedefine21":null,
"cnedefine24":null,
"cdefine29":null,
"cnedefine23":null,
"cdefine28":null,
"cdefine27":null,
"cdefine26":null,
"cnedefine20":null,
"cdefine25":null,
"cdefine24":null,
"cdefine33":null,
"cdefine34":null,
"cdefine31":null,
"cdefine32":null,
"cdefine30":null,
"subcitemname":null,
"cnedefine9":null,
"cnedefine8":null,
"cnedefine7":null,
"cnedefine6":null,
"cnedefine5":null
}
],
"typename":"招待费报销单",
"auditstate":"0",
"makerid":"demo"
}
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode" : "30021",
"errmsg" : "此应用未上线"
}