库存管理类

    transappvouchlist/batch_get


    目录

    1.接口说明

    1.1接口描述

         获取调拨申请单列表

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    物流应用

    3.接口调用说明

    3.1请求说明

    url https://api.yonyouup.com/api/transappvouchlist/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 结束调拨申请单号
    date_begin date 起始单据日期
    date_end date 结束单据日期
    idepcode string 转入部门编码
    odepcode string 转出部门编码
    irdcode string 入库类别编码
    ordcode string 出库类别编码
    iwhcode string 转入仓库编码
    owhcode string 转出仓库编码
    cpersoncode string 业务员关键字
    memory string 备注关键字
    maker string 制单人关键字

    3.3请求示例

    GET https://api.yonyouup.com/api/transappvouchlist/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&code_begin=xxxxx&code_end=xxxxx&date_begin=xxxxx&date_end=xxxxx&idepcode=xxxxx&odepcode=xxxxx&irdcode=xxxxx&ordcode=xxxxx&iwhcode=xxxxx&owhcode=xxxxx&cpersoncode=xxxxx&memory=xxxxx&maker=xxxxx


    3.4返回参数说明

    参数说明 类型 参数路径 描述
    errcode string   错误码,0 为正常。
    errmsg string   错误信息。
    tvcode string 调拨申请单号
    dtvdate date 单据日期
    idepcode string 转入部门编码
    odepcode string 转出部门编码
    irdcode string 入库类别编码
    ordcode string 出库类别编码
    iwhcode string 转入仓库编码
    owhcode string 转出仓库编码
    cpersoncode string 业务员
    memory string 备注
    auditperson string 审核人
    auditdate date 审核日期
    maker string 制单人
    closer 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

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"page_index":"1",
    	"rows_per_page":"20",
    	"row_count":"225",
    	"errmsg":"",
    	"transappvouchlist":[
    		{
    			"irdcode":"19",
    			"idepcode":"0501",
    			"define1":"",
    			"define2":"",
    			"csource":"1",
    			"define3":"",
    			"define4":"",
    			"owhcode":"02",
    			"define5":"",
    			"define6":"",
    			"define7":"",
    			"define16":"",
    			"closer":"",
    			"define8":"",
    			"define9":"",
    			"vtid":"37",
    			"id":"1000000001",
    			"cpersoncode":"",
    			"iwhcode":"30",
    			"auditperson":"demo3",
    			"ordcode":"2a",
    			"odepcode":"0402",
    			"maker":"demo3",
    			"dtvdate":"2014-12-0300:00:00.0",
    			"memory":"",
    			"auditdate":"2014-12-0300:00:00.0",
    			"define15":"",
    			"define14":"",
    			"define13":"",
    			"define12":"",
    			"define11":"",
    			"define10":""
    		},
    		{
    			"irdcode":"",
    			"idepcode":"",
    			"define1":"",
    			"define2":"",
    			"csource":"1",
    			"define3":"",
    			"define4":"",
    			"owhcode":"35",
    			"define5":"",
    			"define6":"",
    			"define7":"0.0",
    			"define16":"",
    			"closer":"",
    			"define8":"",
    			"define9":"",
    			"vtid":"37",
    			"id":"1000000002",
    			"cpersoncode":"",
    			"iwhcode":"03",
    			"auditperson":"",
    			"ordcode":"",
    			"odepcode":"",
    			"maker":"demo",
    			"dtvdate":"2015-01-1000:00:00.0",
    			"memory":"",
    			"auditdate":"",
    			"define15":"",
    			"define14":"",
    			"define13":"",
    			"define12":"",
    			"define11":"",
    			"define10":""
    		}
    	],
    	"page_count":"12",
    	"errcode":"0"
    }
    

    3.6错误返回示例

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

    4.API测试

    API测试 SDK下载