cashflowitem/batch_get
目录 |
1.接口说明
1.1接口描述
批量获取现金流量项目
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
报销应用、财务管控应用
3.接口调用说明
3.1请求说明
| url | https://api.yonyouup.com/api/cashflowitem/batch_get |
| 格式 | JSON |
| https请求方式 | GET |
3.2url参数说明
| 参数 | 是否必填 | 类型 | 描述 |
|---|---|---|---|
| from_account | 是 | sting | 调用方id |
| to_account | 是 | string | 提供方id |
| app_key | 是 | string | 应用编码 |
| token | 是 | string | 全局访问唯一识别码 |
| ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
| code_begin | 否 | string | 起始项目编码 |
| citemname | 否 | string | 项目名称关键字 |
| bclose | 否 | boolean | 是否结算 |
| citemccode | 否 | string | 项目大类编码 |
| citemcname | 否 | string | 项目大类名称关键字 |
| cdirection | 否 | string | 方向 |
| bdatastyle | 否 | boolean | 数据类型 |
| cdatasource | 否 | string | 数据源 |
| code_end | 否 | string | 结束项目编码 |
3.3请求示例
GET https://api.yonyouup.com/api/cashflowitem/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&code_begin=xxxxx&citemname=xxxxx&bclose=xxxxx&citemccode=xxxxx&citemcname=xxxxx&cdirection=xxxxx&bdatastyle=xxxxx&cdatasource=xxxxx&code_end=xxxxx
3.4返回参数说明
| 参数说明 | 类型 | 参数路径 | 描述 |
|---|---|---|---|
| errcode | string | 错误码,0 为正常。 | |
| errmsg | string | 错误信息。 | |
| citemcode | string | 项目编码 | |
| citemname | string | 项目名称 | |
| bclose | boolean | 是否结算 | |
| citemccode | string | 项目大类编码 | |
| citemcname | string | 项目大类名称 | |
| cdirection | string | 方向 | |
| iid | number | entry | 序号 |
| citemcode | string | entry | 项目编码 |
| bdatastyle | boolean | entry | 数据类型 |
| cdatasource | string | entry | 数据源 |
| bdir | boolean | entry | 取数方式 |
| ccode_name | string | entry | 科目名称 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8
{
"page_index":"1",
"rows_per_page":"20",
"cashflowitem":[
{
"citemccode":"0101",
"cdirection":"流入",
"entry":[
{
"bdatastyle":"0",
"citemcode":"01",
"cdatasource":"100201",
"bdir":"1",
"ccode_name":"银行存款-民生银行"
},
{
"bdatastyle":"0",
"citemcode":"01",
"cdatasource":"100201",
"bdir":"1",
"ccode_name":"银行存款-民生银行"
}
],
"citemname":"销售商品、提供劳务收到的现金",
"bclose":"0",
"citemcname":"现金流入"
},
{
"citemccode":"0101",
"cdirection":"流入",
"entry":[
{
"bdatastyle":"0",
"citemcode":"01",
"cdatasource":"100201",
"bdir":"1",
"ccode_name":"银行存款-民生银行"
},
{
"bdatastyle":"0",
"citemcode":"01",
"cdatasource":"100201",
"bdir":"1",
"ccode_name":"银行存款-民生银行"
}
],
"citemname":"收到的税费返还",
"bclose":"0",
"citemcname":"现金流入"
}
],
"row_count":"225",
"errmsg":"",
"page_count":"12",
"errcode":"0"
}
3.6错误返回示例
application/json;charset=UTF-8
{
"errcode":"30021",
"errmsg":"此应用未上线"
}