总账类

    voucherdetails/batch_get


    目录

    1.接口说明

    1.1接口描述

         批量获取凭证列表详情

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    3.接口调用说明

    3.1请求说明

    url https://api.yonyouup.com/api/voucherdetails/batch_get
    格式 JSON
    https请求方式 GET


    3.2url参数说明

    参数 是否必填 类型 描述
    from_account sting 调用方id
    to_account string 提供方id
    app_key string 应用编码
    token string 全局访问唯一识别码
    ds_sequence number 数据源序号(默认取应用的第一个数据源)
    i_id number i_id
    date_begin date 起始制单日期
    date_end date 结束制单日期
    code_begin string 起始科目编码
    code_end string 结束科目编码
    bdelete boolean 是否核销 凭证状态
    coutno_id string 外部系统号

    3.3请求示例

    GET https://api.yonyouup.com/api/voucherdetails/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&i_id=xxxxx&date_begin=xxxxx&date_end=xxxxx&code_begin=xxxxx&code_end=xxxxx&bdelete=xxxxx&coutno_id=xxxxx


    3.4返回参数说明

    参数说明 类型 参数路径 描述
    errcode string   错误码,0 为正常。
    errmsg string   错误信息。
    i_id number i_id
    date date 制单日期
    ino_id string 凭证编号
    inid number 分录行号
    digest string 摘要
    code string 科目编码
    md number 借方金额
    mc number 贷方金额
    cdept_id string 部门编码
    cperson_id string 人员编码
    ccus_id string 客户编码
    csup_id string 供应商编码
    citem_id string 项目大类
    citem_class string 项目编码
    ccashitem string 现金流量项目
    bill string 制单人
    cexch_name string 币种名称
    md_f number 原币借方金额
    mc_f number 原币贷方金额
    nfrat number 汇率
    nd_s number 借方数量
    nc_s number 贷方数量
    iflag number --有错标识2 作废标识1 正常 0
    ccashier string 出纳
    ccheck string 审核
    cbook string 记账
    bdelete boolean 是否核销 凭证状态
    coutno_id string 外部系统号
    ccash_md number 现金流量借方金额
    ccash_mc number 现金流量贷方金额
    ccash_md_f number 现金流量借方金额
    ccash_mc_f number 现金流量贷方金额

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"page_index":"1",
    	"voucherdetails":[
    		{
    			"bdelete":"0",
    			"ccashitem":"",
    			"bill":"",
    			"i_id":"149",
    			"digest":"往来期初引入",
    			"ccash_mc":"",
    			"date":"2014-11-3000:00:00.0",
    			"ccashier":"",
    			"iflag":"",
    			"ccheck":"",
    			"ccash_md_f":"",
    			"cperson_id":"",
    			"cdept_id":"",
    			"mc_f":"0.0000",
    			"mc":"0.0000",
    			"ccash_mc_f":"",
    			"md":"20000.0000",
    			"md_f":"20000.0000",
    			"nc_s":"0.0",
    			"csup_id":"05001",
    			"coutno_id":"",
    			"cexch_name":"",
    			"code":"1123",
    			"ino_id":"",
    			"cbook":"demo1",
    			"nd_s":"0.0",
    			"citem_id":"",
    			"ccash_md":"",
    			"inid":"1",
    			"nfrat":"0.0",
    			"citem_class":"",
    			"ccus_id":""
    		},
    		{
    			"bdelete":"0",
    			"ccashitem":"",
    			"bill":"",
    			"i_id":"150",
    			"digest":"往来期初引入",
    			"ccash_mc":"",
    			"date":"2014-11-3000:00:00.0",
    			"ccashier":"",
    			"iflag":"",
    			"ccheck":"",
    			"ccash_md_f":"",
    			"cperson_id":"",
    			"cdept_id":"",
    			"mc_f":"0.0000",
    			"mc":"0.0000",
    			"ccash_mc_f":"",
    			"md":"50000.0000",
    			"md_f":"50000.0000",
    			"nc_s":"0.0",
    			"csup_id":"09001",
    			"coutno_id":"",
    			"cexch_name":"",
    			"code":"1123",
    			"ino_id":"",
    			"cbook":"demo1",
    			"nd_s":"0.0",
    			"citem_id":"",
    			"ccash_md":"",
    			"inid":"1",
    			"nfrat":"0.0",
    			"citem_class":"",
    			"ccus_id":""
    		}
    	],
    	"rows_per_page":"20",
    	"row_count":"225",
    	"errmsg":"",
    	"page_count":"12",
    	"errcode":"0"
    }
    

    3.6错误返回示例

    application/json;charset=UTF-8
    {
    	"errcode":"30021",
    	"errmsg":"此应用未上线"
    } 

    4.API测试

    API测试 SDK下载