oughtpaylist/batch_get
目录 |
1.接口说明
1.1接口描述
获取应付单列表
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
财务应用
3.接口调用说明
3.1请求说明
url | https://api.yonyouup.com/api/oughtpaylist/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 | 起始应收付单据号 |
code_end | 否 | string | 结束应收付单据号 |
state | 否 | string | 状态 |
date_begin | 否 | string | 起始单据日期 |
date_end | 否 | string | 结束单据日期 |
cust_vendor_code | 否 | string | 客商编号 |
deptcode | 否 | string | 部门编码 |
deptname | 否 | string | 部门名称关键字 |
personcode | 是 | string | 职员编码 |
personname | 否 | string | 职员名称关键字 |
item_code | 否 | string | 项目编码 |
digest | 是 | string | 摘要 |
operator | 否 | string | 操作员姓名关键字 |
define1 | 否 | string | 表头自定义项1 |
define2 | 否 | string | 表头自定义项2 |
define3 | 否 | string | 表头自定义项3 |
define4 | 否 | date | 表头自定义项4 |
define5 | 否 | number | 表头自定义项5 |
define6 | 否 | date | 表头自定义项6 |
define7 | 否 | number | 表头自定义项7 |
define8 | 否 | string | 表头自定义项8 |
define9 | 否 | string | 表头自定义项9 |
define10 | 否 | string | 表头自定义项10 |
define11 | 否 | string | 表头自定义项11 |
define12 | 否 | string | 表头自定义项12 |
define13 | 否 | string | 表头自定义项13 |
define14 | 否 | string | 表头自定义项14 |
define15 | 否 | number | 表头自定义项15 |
define16 | 否 | number | 表头自定义项16 |
ufts_begin | 是 | string | 起始时间戳 |
ufts_end | 否 | string | 结束时间戳 |
3.3请求示例
GET https://api.yonyouup.com/api/oughtpaylist/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&code_begin=xxxxx&code_end=xxxxx&state=xxxxx&date_begin=xxxxx&date_end=xxxxx&cust_vendor_code=xxxxx&deptcode=xxxxx&deptname=xxxxx&personcode=xxxxx&personname=xxxxx&item_code=xxxxx&digest=xxxxx&operator=xxxxx&define1=xxxxx&define2=xxxxx&define3=xxxxx&define4=xxxxx&define5=xxxxx&define6=xxxxx&define7=xxxxx&define8=xxxxx&define9=xxxxx&define10=xxxxx&define11=xxxxx&define12=xxxxx&define13=xxxxx&define14=xxxxx&define15=xxxxx&define16=xxxxx&ufts_begin=xxxxx&ufts_end=xxxxx
3.4返回参数说明
参数说明 | 类型 | 参数路径 | 描述 |
---|---|---|---|
errcode | string | 错误码,0 为正常。 | |
errmsg | string | 错误信息。 | |
vouchertype | string | 单据类型 | |
code | string | 应收付单据号 | |
state | string | 状态 | |
relatevouchercode | string | 对应单据号 | |
date | string | 单据日期 | |
cust_vendor_code | string | 客商编号 | |
deptcode | string | 部门编码 | |
deptname | string | 部门名称 | |
personcode | string | 职员编码 | |
personname | string | 职员名称 | |
item_classcode | string | 项目大类编码 | |
item_code | string | 项目编码 | |
digest | string | 摘要 | |
subjectcode | string | 科目编码 | |
currency_name | string | 币种 | |
currency_rate | number | 汇率 | |
bdebitcredit | boolean | 借贷方向 | |
natamount | number | 本币金额 | |
amount | number | 原币金额 | |
paycondition_code | string | 付款条件 | |
operator | string | 操作员姓名 | |
flag | string | 标志 | |
quantity | number | 数量 | |
define1 | string | 表头自定义项1 | |
define2 | string | 表头自定义项2 | |
define3 | string | 表头自定义项3 | |
define4 | date | 表头自定义项4 | |
define5 | number | 表头自定义项5 | |
define6 | date | 表头自定义项6 | |
define7 | number | 表头自定义项7 | |
define8 | string | 表头自定义项8 | |
define9 | string | 表头自定义项9 | |
define10 | string | 表头自定义项10 | |
define11 | string | 表头自定义项11 | |
define12 | string | 表头自定义项12 | |
define13 | string | 表头自定义项13 | |
define14 | string | 表头自定义项14 | |
define15 | number | 表头自定义项15 | |
define16 | number | 表头自定义项16 | |
startflag | boolean | 期初标志 | |
ufts | string | 时间戳 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8 { "oughtpaylist":[ { "item_classcode":"", "startflag":"0", "relatevouchercode":"0000000002", "define1":"", "define2":"", "state":"审核", "define3":"", "currency_rate":"1.0", "define4":"", "digest":"", "define5":"", "define6":"", "define16":"", "define7":"", "date":"2014-12-23", "define8":"", "define9":"", "amount":"5000.0000", "bdebitcredit":"0", "item_code":"", "deptcode":"1001", "quantity":"0.0", "cust_vendor_code":"01005", "deptname":"区域销售部", "natamount":"5000.0000", "paycondition_code":"", "code":"0000000001", "subjectcode":"224101", "operator":"demo5", "define15":"", "define14":"", "define13":"", "flag":"AP", "define12":"", "define11":"", "currency_name":"人民币", "personcode":"00023", "define10":"", "personname":"师小容", "ufts":"541.7186", "vouchertype":"P0" }, { "item_classcode":"", "startflag":"0", "relatevouchercode":"0000000003", "define1":"", "define2":"", "state":"审核", "define3":"", "currency_rate":"1.0", "define4":"", "digest":"", "define5":"", "define6":"", "define16":"", "define7":"", "date":"2014-12-23", "define8":"", "define9":"", "amount":"500.0000", "bdebitcredit":"0", "item_code":"", "deptcode":"0202", "quantity":"0.0", "cust_vendor_code":"03004", "deptname":"现场服务部", "natamount":"500.0000", "paycondition_code":"", "code":"0000000002", "subjectcode":"224101", "operator":"demo14", "define15":"", "define14":"", "define13":"", "flag":"AP", "define12":"", "define11":"", "currency_name":"人民币", "personcode":"00018", "define10":"", "personname":"张小海", "ufts":"541.7187", "vouchertype":"P0" } ], "page_index":"1", "rows_per_page":"20", "row_count":"225", "errmsg":"", "page_count":"12", "errcode":"0" }
3.6错误返回示例
application/json;charset=UTF-8 { "errcode":"30021", "errmsg":"此应用未上线" }