库存管理类

    saleoutlistall/batch_get


    目录

    1.接口说明

    1.1接口描述

         批量获取销售出库单列表(包含子表)

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    物流应用

    3.接口调用说明

    3.1请求说明

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


    3.2url参数说明

    参数 是否必填 类型 描述
    from_account sting 调用方id
    to_account string 提供方id
    app_key string 应用编码
    token string 全局访问唯一识别码
    ds_sequence number 数据源序号(默认取应用的第一个数据源)
    businesstype string 业务类型
    warehousecode string 仓库编码
    warehousename string 仓库名称关键字
    date_begin string 起始单据日期
    date_end string 结束单据日期
    code_begin string 起始单据号
    code_end string 结束单据号
    receivecode string 收发类别编码
    receivename string 收发类别名称关键字
    departmentcode string 部门编码
    departmentname string 部门名称关键字
    personcode string 业务员编码
    personname string 业务员名称关键字
    saletypecode string 销售类型编码
    saletypename string 销售类型名称关键字
    customercode string 客户编码
    customername string 客户名称关键字
    arrivedate 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 string 审核日期
    barcode string 条形码
    inventorycode string 存货编码
    free1 string 存货自由项1
    free2 string 存货自由项2
    free3 string 存货自由项3
    free4 string 存货自由项4
    free5 string 存货自由项5
    free6 string 存货自由项6
    free7 string 存货自由项7
    free8 string 存货自由项8
    free9 string 存货自由项9
    free10 string 存货自由项10
    define22 string 表体自定义项1
    define23 string 表体自定义项2
    define24 string 表体自定义项3
    define25 string 表体自定义项4
    define26 number 表体自定义项5
    define27 number 表体自定义项6
    define28 string 表体自定义项7
    define29 string 表体自定义项8
    define30 string 表体自定义项9
    define31 string 表体自定义项10
    define32 string 表体自定义项11
    define33 string 表体自定义项12
    define34 number 表体自定义项13
    define35 number 表体自定义项14
    define36 date 表体自定义项15
    define37 date 表体自定义项16
    subconsignmentcode string 发货单号
    subordercode string 订单号

    3.3请求示例

    GET https://api.yonyouup.com/api/saleoutlistall/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&businesstype=xxxxx&warehousecode=xxxxx&warehousename=xxxxx&date_begin=xxxxx&date_end=xxxxx&code_begin=xxxxx&code_end=xxxxx&receivecode=xxxxx&receivename=xxxxx&departmentcode=xxxxx&departmentname=xxxxx&personcode=xxxxx&personname=xxxxx&saletypecode=xxxxx&saletypename=xxxxx&customercode=xxxxx&customername=xxxxx&arrivedate=xxxxx&handler=xxxxx&memory=xxxxx&maker=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&auditdate=xxxxx&barcode=xxxxx&inventorycode=xxxxx&free1=xxxxx&free2=xxxxx&free3=xxxxx&free4=xxxxx&free5=xxxxx&free6=xxxxx&free7=xxxxx&free8=xxxxx&free9=xxxxx&free10=xxxxx&define22=xxxxx&define23=xxxxx&define24=xxxxx&define25=xxxxx&define26=xxxxx&define27=xxxxx&define28=xxxxx&define29=xxxxx&define30=xxxxx&define31=xxxxx&define32=xxxxx&define33=xxxxx&define34=xxxxx&define35=xxxxx&define36=xxxxx&define37=xxxxx&subconsignmentcode=xxxxx&subordercode=xxxxx


    3.4返回参数说明

    参数说明 类型 参数路径 描述
    errcode string   错误码,0 为正常。
    errmsg string   错误信息。
    businesstype string 业务类型
    warehousecode string 仓库编码
    warehousename string 仓库名称
    date string 单据日期
    code string 收发单据号
    receivecode string 收发类别编码
    receivename string 收发类别名称
    departmentcode string 部门编码
    departmentname string 部门名称
    personcode string 业务员编码
    personname string 业务员名称
    saletypecode string 销售类型编码
    saletypename string 销售类型名称
    customercode string 客户编码
    customername string 客户名称
    quantity number 数量
    arrivedate 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 string 审核日期
    barcode string 条形码
    inventorycode string 存货编码
    free1 string 存货自由项1
    free2 string 存货自由项2
    free3 string 存货自由项3
    free4 string 存货自由项4
    free5 string 存货自由项5
    free6 string 存货自由项6
    free7 string 存货自由项7
    free8 string 存货自由项8
    free9 string 存货自由项9
    free10 string 存货自由项10
    shouldquantity number 应发数量
    shouldnumber number 应发件数
    cmassunitname string 主计量单位
    assitantunit string 库存单位码
    assitantunitname string 库存单位
    irate number 换算率
    number number 件数
    price number 单价
    cost number 金额
    define22 string 表体自定义项1
    define23 string 表体自定义项2
    define24 string 表体自定义项3
    define25 string 表体自定义项4
    define26 number 表体自定义项5
    define27 number 表体自定义项6
    define28 string 表体自定义项7
    define29 string 表体自定义项8
    define30 string 表体自定义项9
    define31 string 表体自定义项10
    define32 string 表体自定义项11
    define33 string 表体自定义项12
    define34 number 表体自定义项13
    define35 number 表体自定义项14
    define36 date 表体自定义项15
    define37 date 表体自定义项16
    subconsignmentid number 发货单子表id
    rowno number 行号
    subconsignmentcode string 发货单号
    suborderid number 订单子表id
    subordercode string 订单号
    orderrowno number 订单行号

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"page_index":"1",
    	"rows_per_page":"20",
    	"saleoutlistall":[
    		{
    			"quantity":"30.0000000000",
    			"businesstype":"普通销售",
    			"define29":"",
    			"define27":"",
    			"number":"",
    			"define28":"",
    			"departmentname":"销售部",
    			"saletypecode":"01",
    			"auditdate":"2014-12-01",
    			"define33":"",
    			"define32":"",
    			"define31":"",
    			"price":"",
    			"define30":"",
    			"define37":"",
    			"define36":"",
    			"shouldnumber":"",
    			"define35":"",
    			"define34":"",
    			"subordercode":"0000000006",
    			"free1":"",
    			"customercode":"3011",
    			"free3":"",
    			"free2":"",
    			"free5":"",
    			"free4":"",
    			"free7":"",
    			"free6":"",
    			"subconsignmentid":"1000000003",
    			"free9":"",
    			"date":"2014-12-01",
    			"define16":"",
    			"free10":"",
    			"free8":"",
    			"define24":"",
    			"define23":"",
    			"define26":"",
    			"define25":"",
    			"subconsignmentcode":"0000000001",
    			"define22":"",
    			"inventorycode":"01019002065",
    			"customername":"泰山数码科技公司",
    			"assitantunitname":"",
    			"arrivedate":"",
    			"orderrowno":"1",
    			"define15":"",
    			"define14":"",
    			"warehousecode":"30",
    			"define13":"",
    			"define12":"",
    			"define11":"",
    			"define10":"",
    			"rowno":"1",
    			"cmassunitname":"PCS",
    			"suborderid":"1000000019",
    			"departmentcode":"0302",
    			"warehousename":"PC原材料仓",
    			"barcode":"",
    			"code":"0000000001",
    			"receivename":"销售出库",
    			"cost":"",
    			"personname":"崔可",
    			"shouldquantity":"30.0000000000",
    			"define1":"崔可",
    			"define2":"",
    			"define3":"",
    			"define4":"",
    			"define5":"",
    			"define6":"",
    			"define7":"",
    			"define8":"",
    			"define9":"",
    			"assitantunit":"",
    			"maker":"demo9",
    			"receivecode":"22",
    			"memory":"",
    			"saletypename":"普通销售",
    			"irate":"",
    			"personcode":"00040",
    			"handler":"demo9"
    		},
    		{
    			"quantity":"11.0000000000",
    			"businesstype":"普通销售",
    			"define29":"",
    			"define27":"",
    			"number":"11.0000000000",
    			"define28":"",
    			"departmentname":"销售部",
    			"saletypecode":"01",
    			"auditdate":"2014-12-01",
    			"define33":"",
    			"define32":"",
    			"define31":"",
    			"price":"",
    			"define30":"",
    			"define37":"",
    			"define36":"",
    			"shouldnumber":"11.0000000000",
    			"define35":"",
    			"define34":"",
    			"subordercode":"0000000006",
    			"free1":"",
    			"customercode":"3011",
    			"free3":"",
    			"free2":"",
    			"free5":"",
    			"free4":"",
    			"free7":"",
    			"free6":"",
    			"subconsignmentid":"1000000004",
    			"free9":"",
    			"date":"2014-12-01",
    			"define16":"",
    			"free10":"",
    			"free8":"",
    			"define24":"",
    			"define23":"",
    			"define26":"",
    			"define25":"",
    			"subconsignmentcode":"0000000001",
    			"define22":"",
    			"inventorycode":"1004",
    			"customername":"泰山数码科技公司",
    			"assitantunitname":"个",
    			"arrivedate":"",
    			"orderrowno":"2",
    			"define15":"",
    			"define14":"",
    			"warehousecode":"02",
    			"define13":"",
    			"define12":"",
    			"define11":"",
    			"define10":"",
    			"rowno":"1",
    			"cmassunitname":"台",
    			"suborderid":"1000000020",
    			"departmentcode":"0302",
    			"warehousename":"PC机材料仓库",
    			"barcode":"",
    			"code":"0000000002",
    			"receivename":"销售出库",
    			"cost":"",
    			"personname":"崔可",
    			"shouldquantity":"11.0000000000",
    			"define1":"崔可",
    			"define2":"",
    			"define3":"",
    			"define4":"",
    			"define5":"",
    			"define6":"",
    			"define7":"",
    			"define8":"",
    			"define9":"",
    			"assitantunit":"0201",
    			"maker":"demo9",
    			"receivecode":"22",
    			"memory":"",
    			"saletypename":"普通销售",
    			"irate":"1.00000000",
    			"personcode":"00040",
    			"handler":"demo9"
    		}
    	],
    	"row_count":"225",
    	"errmsg":"",
    	"page_count":"12",
    	"errcode":"0"
    }
    

    3.6错误返回示例

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

    4.API测试

    API测试 SDK下载