采购管理类

    purchasereceipt/get


    目录

    1.接口说明

    1.1接口描述

         获取单个采购到货单

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    订购应用

    3.接口调用说明

    3.1请求说明

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


    3.2url参数说明

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

    3.3请求示例

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


    3.4返回参数说明

    参数说明 类型 参数路径 描述
    errcode string   错误码,0 为正常。
    errmsg string   错误信息。
    date date 日期
    code string 单据号
    purchasetypecode string 采购类型编码
    purchasetypename string 采购类型
    vendorcode string 供货单位编号
    vendorabbname string 供应商
    vendorname string 供应商全称
    departmentcode string 部门编号
    departmentname string 部门
    personcode string 业务员编码
    personname string 业务员
    payconditioncode string 付款条件编码
    payconditionname string 付款条件
    foreigncurrency string 币种
    foreigncurrencyrate number 汇率
    memory string 备注
    businesstype string 业务类型
    maker string 制单人
    ccloser string 关闭人
    idiscounttaxtype number 扣税类别
    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
    shipcode string 运输方式编码
    shipname string 运输方式
    cauditdate date 审核日期
    cverifier string 审核人
    cvenpuomprotocol string 收付款协议编码
    cvenpuomprotocolname string 收付款协议名称
    mainid number entry 主表id
    warehousecode string entry 仓库编码
    warehousename string entry 仓库名称
    inventorycode string entry 存货编码
    inventoryaddcode string entry 存货代码
    inventoryname string entry 存货名称
    inventorystd string entry 规格型号
    inventoryclasscode string entry 存货分类编码
    unitid string entry 单位编码
    ccomunitcode string entry 单位编码
    cinvm_unit string entry 主计量
    cinva_unit string entry 采购单位
    iinvexchrate number entry 换算率
    serial string entry 批号
    originaltaxedprice number entry 含税单价
    quantity number entry 主计量数量
    number number entry 件数
    originalprice number entry 原币单价
    originalmoney number entry 原币金额
    originaltax number entry 原币税额
    originalsum number entry 原币价税合计
    price number entry 本币单价
    money number entry 本币金额
    tax number entry 本币税额
    sum number entry 本币价税合计
    cbcloser string entry 行关闭人
    free1 string entry 自由项1
    free2 string entry 自由项2
    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
    taxrate number entry 税率
    iposid number entry 订单子表ID
    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
    cordercode string entry 订单号
    vouchstate number entry 单据状态
    ivouchrowno number entry 行号
    cbmemo string entry 表体备注

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"errmsg":"",
    	"purchasereceipt":{
    		"cvenpuomprotocolname":"",
    		"cauditdate":"2014-12-0300:00:00.0",
    		"ccloser":"",
    		"idiscounttaxtype":"0",
    		"cverifier":"demo3",
    		"id":"1000000001",
    		"entry":[
    			{
    				"iposid":"3",
    				"originalsum":"1800.0000",
    				"inventoryclasscode":"12",
    				"inventoryname":"进口配件",
    				"originalprice":"9.000000",
    				"quantity":"200.000000",
    				"originaltax":"",
    				"cbcloser":"",
    				"warehousename":"",
    				"cinva_unit":"",
    				"iinvexchrate":"",
    				"define29":"",
    				"define27":"",
    				"number":"0.000000",
    				"define28":"",
    				"originaltaxedprice":"9.000000",
    				"define33":"",
    				"define32":"",
    				"define31":"",
    				"define30":"",
    				"price":"9.000000",
    				"define37":"",
    				"tax":"",
    				"define36":"",
    				"define35":"",
    				"define34":"",
    				"inventorystd":"",
    				"originalmoney":"1800.0000",
    				"free1":"",
    				"free3":"",
    				"free2":"",
    				"free5":"",
    				"sum":"1800.0000",
    				"free4":"",
    				"free7":"",
    				"free6":"",
    				"free9":"",
    				"vouchstate":"0",
    				"free10":"",
    				"free8":"",
    				"closer":"",
    				"taxrate":"0.000000",
    				"define24":"",
    				"define23":"",
    				"define26":"",
    				"define25":"",
    				"unitid":"",
    				"define22":"",
    				"money":"1800.0000",
    				"inventoryaddcode":"",
    				"inventorycode":"fx01",
    				"cinvm_unit":"公斤",
    				"ivouchrowno":"",
    				"ccomunitcode":"0101",
    				"cordercode":"",
    				"warehousecode":"",
    				"cbmemo":"",
    				"serial":""
    			},
    			{
    				"iposid":"5",
    				"originalsum":"18000.0000",
    				"inventoryclasscode":"0107",
    				"inventoryname":"稳压二极管",
    				"originalprice":"90.000000",
    				"quantity":"200.000000",
    				"originaltax":"",
    				"cbcloser":"",
    				"warehousename":"",
    				"cinva_unit":"",
    				"iinvexchrate":"",
    				"define29":"",
    				"define27":"",
    				"number":"0.000000",
    				"define28":"",
    				"originaltaxedprice":"90.000000",
    				"define33":"",
    				"define32":"",
    				"define31":"",
    				"define30":"",
    				"price":"585.000000",
    				"define37":"",
    				"tax":"",
    				"define36":"",
    				"define35":"",
    				"define34":"",
    				"inventorystd":"wenyaerjiguan",
    				"originalmoney":"18000.0000",
    				"free1":"",
    				"free3":"",
    				"free2":"",
    				"free5":"",
    				"sum":"117000.0000",
    				"free4":"",
    				"free7":"",
    				"free6":"",
    				"free9":"",
    				"vouchstate":"0",
    				"free10":"",
    				"free8":"",
    				"closer":"",
    				"taxrate":"0.000000",
    				"define24":"",
    				"define23":"",
    				"define26":"",
    				"define25":"",
    				"unitid":"",
    				"define22":"",
    				"money":"117000.0000",
    				"inventoryaddcode":"",
    				"inventorycode":"0107001",
    				"cinvm_unit":"PCS",
    				"ivouchrowno":"",
    				"ccomunitcode":"0108",
    				"cordercode":"",
    				"warehousecode":"",
    				"cbmemo":"",
    				"serial":""
    			}
    		],
    		"cvenpuomprotocol":""
    	},
    	"errcode":"0"
    }
    

    3.6错误返回示例

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

    4.API测试

    API测试 SDK下载