库存管理类

    materialout/get


    目录

    1.接口说明

    1.1接口描述

         获取单个材料出库单

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    生产管理

    3.接口调用说明

    3.1请求说明

    url https://api.yonyouup.com/api/materialout/get
    格式 JSON
    https请求方式 GET


    3.2url参数说明

    参数 是否必填 类型 描述
    from_account sting 调用方id
    to_account string 提供方id
    app_key string 应用编码
    token string 全局访问唯一识别码
    ds_sequence number 数据源序号(默认取应用的第一个数据源)
    id string 收发记录主表标识

    3.3请求示例

    GET https://api.yonyouup.com/api/materialout/get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&id=xxxxx


    3.4返回参数说明

    参数说明 类型 参数路径 描述
    errcode string   错误码,0 为正常。
    errmsg string   错误信息。
    receiveflag number 收发标志
    vouchtype string 单据类型编码
    businesstype string 业务类型
    source string 单据来源
    cmpocode string 生产订单号
    serial string 生产批号
    businesscode string 对应业务单号
    warehousecode string 仓库编码
    warehousename string 仓库名称
    date string 单据日期
    code string 出库单号
    receivecode string 收发类别编码
    receivename string 收发类别名称
    departmentcode string 部门编码
    departmentname string 部门名称
    personcode string 业务员编码
    personname string 业务员名称
    vendorcode string 供应商编码
    vendorabbname string 供应商简称
    quantity number 产量
    arrivedate string 到货日期
    checkcode string 检验单号
    checkdate string 检验日期
    checkperson string 检验员
    templatenumber number 单据模版号
    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 审核日期
    id number 收发记录主表标识
    id number entry 收发记录主表标识
    barcode string entry 条形码
    inventorycode string entry 存货编码
    free1 string entry 存货自由项1
    free2 string entry 存货自由项2
    free3 string entry 存货自由项3
    free4 string entry 存货自由项4
    free5 string entry 存货自由项5
    free6 string entry 存货自由项6
    free7 string entry 存货自由项7
    free8 string entry 存货自由项8
    free9 string entry 存货自由项9
    free10 string entry 存货自由项10
    shouldquantity number entry 应发数量
    shouldnumber number entry 应发件数
    quantity number entry 数量
    cmassunitname string entry 主计量单位
    assitantunit string entry 库存单位码
    assitantunitname string entry 库存单位
    irate number entry 换算率
    number number entry 件数
    price number entry 单价
    cost number entry 金额
    plancost number entry 计划单价/售价
    planprice number entry 计划金额/售价金额
    serial string entry 批号
    makedate date entry 生产日期
    validdate date entry 失效日期
    subbillcode number entry 发票子表ID
    position string entry 货位编码
    itemclasscode string entry 项目大类编码
    itemclassname string entry 项目大类名称
    itemcode string entry 项目编码
    itemname string entry 项目
    define22 string entry 表体自定义项1
    define23 string entry 表体自定义项2
    define24 string entry 表体自定义项3
    define25 string entry 表体自定义项4
    define26 number entry 表体自定义项5
    define27 number entry 表体自定义项6
    define28 string entry 表体自定义项7
    define29 string entry 表体自定义项8
    define30 string entry 表体自定义项9
    define31 string entry 表体自定义项10
    define32 string entry 表体自定义项11
    define33 string entry 表体自定义项12
    define34 number entry 表体自定义项13
    define35 number entry 表体自定义项14
    define36 date entry 表体自定义项15
    define37 date entry 表体自定义项16
    subconsignmentid number entry 发货单子表ID
    delegateconsignmentid number entry 委托子表id
    subcheckid number entry 检验单子表ID
    iid number entry 子表标识
    rowno number entry 行号

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"materialout":{
    		"define1":"",
    		"templatenumber":"65",
    		"define2":"",
    		"define3":"",
    		"define4":"",
    		"define5":"",
    		"define6":"",
    		"date":"2014-11-30",
    		"define7":"",
    		"define16":"",
    		"define8":"",
    		"define9":"",
    		"id":"1000000159",
    		"checkperson":"",
    		"receiveflag":"0",
    		"checkcode":"",
    		"checkdate":"",
    		"cmpocode":"",
    		"businesscode":"",
    		"quantity":"",
    		"departmentcode":"0401",
    		"arrivedate":"",
    		"warehousename":"PC机材料仓库",
    		"vendorabbname":"辰环手机配件",
    		"vouchtype":"11",
    		"businesstype":"委外发料",
    		"maker":"demo3",
    		"departmentname":"采购部",
    		"code":"0000000002",
    		"receivename":"委托加工出库",
    		"receivecode":"23",
    		"memory":"",
    		"vendorcode":"01002",
    		"define15":"",
    		"auditdate":"",
    		"warehousecode":"02",
    		"define14":"",
    		"define13":"",
    		"define12":"",
    		"source":"委外",
    		"define11":"",
    		"personcode":"00043",
    		"define10":"",
    		"entry":[
    			{
    				"plancost":"",
    				"iid":"",
    				"rowno":"1",
    				"itemcode":"",
    				"cmassunitname":"PCS",
    				"quantity":"10.0000000000",
    				"define29":"",
    				"barcode":"",
    				"number":"",
    				"define27":"",
    				"define28":"",
    				"cost":"5600.0000",
    				"define33":"",
    				"define32":"",
    				"define31":"",
    				"define30":"",
    				"price":"560.0000000000",
    				"define37":"",
    				"define36":"",
    				"define35":"",
    				"shouldnumber":"",
    				"define34":"",
    				"itemclassname":"",
    				"position":"",
    				"free1":"",
    				"shouldquantity":"",
    				"planprice":"",
    				"free3":"",
    				"free2":"",
    				"free5":"",
    				"free4":"",
    				"free7":"",
    				"free6":"",
    				"free9":"",
    				"free10":"",
    				"free8":"",
    				"assitantunit":"",
    				"id":"1000000159",
    				"define24":"",
    				"define23":"",
    				"define26":"",
    				"subcheckid":"",
    				"define25":"",
    				"itemname":"",
    				"validdate":"",
    				"define22":"",
    				"itemclasscode":"",
    				"inventorycode":"01019002065",
    				"assitantunitname":"",
    				"makedate":"",
    				"irate":"",
    				"serial":""
    			},
    			{
    				"plancost":"",
    				"iid":"",
    				"rowno":"1",
    				"itemcode":"",
    				"cmassunitname":"PCS",
    				"quantity":"13000.0000000000",
    				"define29":"",
    				"barcode":"",
    				"number":"",
    				"define27":"",
    				"define28":"",
    				"cost":"26165.6400",
    				"define33":"",
    				"define32":"",
    				"define31":"",
    				"define30":"",
    				"price":"2.0100000000",
    				"define37":"",
    				"define36":"",
    				"define35":"",
    				"shouldnumber":"",
    				"define34":"",
    				"itemclassname":"",
    				"position":"",
    				"free1":"",
    				"shouldquantity":"13000.0000000000",
    				"planprice":"",
    				"free3":"",
    				"free2":"",
    				"free5":"",
    				"free4":"",
    				"free7":"",
    				"free6":"",
    				"free9":"",
    				"free10":"",
    				"free8":"",
    				"assitantunit":"",
    				"id":"1000000176",
    				"define24":"",
    				"define23":"",
    				"define26":"",
    				"subcheckid":"",
    				"define25":"",
    				"itemname":"",
    				"validdate":"",
    				"define22":"",
    				"itemclasscode":"",
    				"inventorycode":"01019002082",
    				"assitantunitname":"",
    				"makedate":"",
    				"irate":"",
    				"serial":""
    			}
    		],
    		"personname":"顾潇",
    		"serial":"",
    		"handler":""
    	},
    	"errmsg":"",
    	"errcode":"0"
    }
    

    3.6错误返回示例

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

    4.API测试

    API测试 SDK下载