采购管理类

    purchasereceiptlist/batch_get


    目录

    1.接口说明

    1.1接口描述

         获取采购到货单列表

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    订购应用

    3.接口调用说明

    3.1请求说明

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


    3.2url参数说明

    参数 是否必填 类型 描述
    from_account sting 调用方id
    to_account string 提供方id
    app_key string 应用编码
    token string 全局访问唯一识别码
    ds_sequence number 数据源序号(默认取应用的第一个数据源)
    date_begin date 起始日期
    date_end date 结束日期
    cauditdate_begin date 起始审核日期
    cauditdate_end date 结束审核日期
    code_begin string 起始单据号
    code_end 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 币种
    memory string 备注关键字
    businesstype string 业务类型
    maker string 制单人
    ccloser string 关闭人
    shipcode string 运输方式编码
    shipname string 运输方式关键字
    cauditdate date 审核日期
    cverifier string 审核人

    3.3请求示例

    GET https://api.yonyouup.com/api/purchasereceiptlist/batch_get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&date_begin=xxxxx&date_end=xxxxx&cauditdate_begin=xxxxx&cauditdate_end=xxxxx&code_begin=xxxxx&code_end=xxxxx&purchasetypecode=xxxxx&purchasetypename=xxxxx&vendorcode=xxxxx&vendorabbname=xxxxx&vendorname=xxxxx&departmentcode=xxxxx&departmentname=xxxxx&personcode=xxxxx&personname=xxxxx&payconditioncode=xxxxx&payconditionname=xxxxx&foreigncurrency=xxxxx&memory=xxxxx&businesstype=xxxxx&maker=xxxxx&ccloser=xxxxx&shipcode=xxxxx&shipname=xxxxx&cauditdate=xxxxx&cverifier=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 收付款协议名称
    originalmoney number 原币金额
    originaltax number 原币税额
    originalsum number 原币价税合计
    money number 本币金额
    tax number 本币税额
    sum number 本币价税合计

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"page_index":"1",
    	"rows_per_page":"20",
    	"row_count":"225",
    	"errmsg":"",
    	"purchasereceiptlist":[
    		{
    			"vendorname":"深圳辰环手机配件有限公司",
    			"originalsum":"5850.0000",
    			"foreigncurrencyrate":"1.0",
    			"foreigncurrency":"人民币",
    			"purchasetypecode":"",
    			"cvenpuomprotocolname":"",
    			"cauditdate":"2014-12-0300:00:00.0",
    			"originaltax":"850.0000",
    			"payconditionname":"",
    			"departmentcode":"0401",
    			"ccloser":"",
    			"vendorabbname":"辰环手机配件",
    			"businesstype":"普通采购",
    			"departmentname":"采购部",
    			"code":"0000000001",
    			"shipcode":"",
    			"tax":"850.0000",
    			"personname":"顾潇",
    			"purchasetypename":"",
    			"idiscounttaxtype":"0",
    			"originalmoney":"5000.0000",
    			"define1":"顾潇",
    			"define2":"",
    			"define3":"",
    			"sum":"5850.0000",
    			"define4":"",
    			"define5":"",
    			"cverifier":"demo3",
    			"define6":"",
    			"date":"2014-12-0300:00:00.0",
    			"define7":"",
    			"define16":"",
    			"define8":"",
    			"define9":"",
    			"id":"1000000001",
    			"money":"5000.0000",
    			"maker":"demo3",
    			"shipname":"",
    			"memory":"",
    			"vendorcode":"01002",
    			"define15":"",
    			"define14":"",
    			"define13":"",
    			"define12":"",
    			"define11":"",
    			"define10":"",
    			"personcode":"00043",
    			"cvenpuomprotocol":"",
    			"payconditioncode":""
    		},
    		{
    			"vendorname":"广州博大存储器公司",
    			"originalsum":"29250.0000",
    			"foreigncurrencyrate":"1.0",
    			"foreigncurrency":"人民币",
    			"purchasetypecode":"",
    			"cvenpuomprotocolname":"",
    			"cauditdate":"2014-12-0300:00:00.0",
    			"originaltax":"4250.0000",
    			"payconditionname":"",
    			"departmentcode":"0401",
    			"ccloser":"",
    			"vendorabbname":"博大存储",
    			"businesstype":"普通采购",
    			"departmentname":"采购部",
    			"code":"0000000002",
    			"shipcode":"",
    			"tax":"4250.0000",
    			"personname":"顾潇",
    			"purchasetypename":"",
    			"idiscounttaxtype":"0",
    			"originalmoney":"25000.0000",
    			"define1":"顾潇",
    			"define2":"",
    			"define3":"",
    			"sum":"29250.0000",
    			"define4":"",
    			"define5":"",
    			"cverifier":"demo3",
    			"define6":"",
    			"date":"2014-12-0300:00:00.0",
    			"define7":"",
    			"define16":"",
    			"define8":"",
    			"define9":"",
    			"id":"1000000002",
    			"money":"25000.0000",
    			"maker":"demo3",
    			"shipname":"",
    			"memory":"",
    			"vendorcode":"01004",
    			"define15":"",
    			"define14":"",
    			"define13":"",
    			"define12":"",
    			"define11":"",
    			"define10":"",
    			"personcode":"00043",
    			"cvenpuomprotocol":"",
    			"payconditioncode":""
    		}
    	],
    	"page_count":"12",
    	"errcode":"0"
    }
    

    3.6错误返回示例

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

    4.API测试

    API测试 SDK下载