库存管理类

    productinlist/batch_get


    目录

    1.接口说明

    1.1接口描述

         获取产成品入库单列表

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    库存应用

    3.接口调用说明

    3.1请求说明

    url https://api.yonyouup.com/api/productinlist/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 结束单据日期
    warehousecode string 仓库编码
    warehousename string 仓库名称关键字
    receivecode string 收发类别编码
    receivename string 收发类别名称关键字
    departmentcode string 部门编码
    departmentname string 部门名称关键字
    vendorcode string 供应商编码
    handler string 审核人关键字
    memory string 备注关键字
    maker string 制单人关键字

    3.3请求示例

    GET https://api.yonyouup.com/api/productinlist/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&warehousecode=xxxxx&warehousename=xxxxx&receivecode=xxxxx&receivename=xxxxx&departmentcode=xxxxx&departmentname=xxxxx&vendorcode=xxxxx&handler=xxxxx&memory=xxxxx&maker=xxxxx


    3.4返回参数说明

    参数说明 类型 参数路径 描述
    errcode string   错误码,0 为正常。
    errmsg string   错误信息。
    vouchtype string 单据类型编码
    businesstype string 业务类型
    warehousecode string 仓库编码
    warehousename string 仓库名称
    date date 单据日期
    code string 单据号
    receivecode string 收发类别编码
    receivename string 收发类别名称
    departmentcode string 部门编码
    departmentname string 部门名称
    personcode string 业务员编码
    saletypecode string 销售类型编码
    customercode string 客户编码
    handler string 审核人
    memory string 备注
    maker 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
    auditdate date 审核日期
    personname string 业务员名称

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"page_index":"1",
    	"productinlist":[
    		{
    			"customercode":"",
    			"define1":"",
    			"define2":"",
    			"define3":"",
    			"define4":"",
    			"define5":"",
    			"define6":"",
    			"define16":"",
    			"define7":"",
    			"date":"2014-12-31",
    			"define8":"",
    			"define9":"",
    			"departmentcode":"0501",
    			"warehousename":"保税仓",
    			"maker":"demo",
    			"businesstype":"成品入库",
    			"departmentname":"一车间",
    			"code":"0000000003",
    			"receivename":"出口成品入库",
    			"receivecode":"1b",
    			"memory":"",
    			"saletypecode":"",
    			"define15":"",
    			"auditdate":"2014-12-31",
    			"define14":"",
    			"warehousecode":"37",
    			"define13":"",
    			"define12":"",
    			"define11":"",
    			"define10":"",
    			"personcode":"",
    			"personname":"",
    			"handler":"demo"
    		},
    		{
    			"customercode":"",
    			"define1":"",
    			"define2":"",
    			"define3":"",
    			"define4":"",
    			"define5":"",
    			"define6":"",
    			"define16":"",
    			"define7":"",
    			"date":"2014-12-02",
    			"define8":"",
    			"define9":"",
    			"departmentcode":"0501",
    			"warehousename":"成品立体仓(货位+条码)",
    			"maker":"demo9",
    			"businesstype":"成品入库",
    			"departmentname":"一车间",
    			"code":"0000000004",
    			"receivename":"产成品入库",
    			"receivecode":"12",
    			"memory":"",
    			"saletypecode":"",
    			"define15":"",
    			"auditdate":"2014-12-04",
    			"define14":"",
    			"warehousecode":"40",
    			"define13":"",
    			"define12":"",
    			"define11":"",
    			"define10":"",
    			"personcode":"",
    			"personname":"",
    			"handler":"demo1"
    		}
    	],
    	"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下载