采购管理类

    payrequest/get


    目录

    1.接口说明

    1.1接口描述

         获取单个付款申请单

    1.2适用版本

         支持U8V12.0 及更高版本

    2.使用场景

    采购应用

    3.接口调用说明

    3.1请求说明

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


    3.2url参数说明

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

    3.3请求示例

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


    3.4返回参数说明

    参数说明 类型 参数路径 描述
    errcode string   错误码,0 为正常。
    errmsg string   错误信息。
    pid number 主表标识
    autoid number 子表标识
    csource string 来源
    ccovouchtype string 来源单据类型
    ccovouchid string 来源单据号
    ibvid number 订单/发票子表ID
    balancesguid string 合同/合同结算单子表GUID
    dprepaydate date 预计付款日期
    dactpaydate date 实际付款日期
    cdepcode string 自定义项
    cdepname string 部门名称
    cperson string 业务员
    cpersonname string 人员名称
    citemcode string 项目
    citemname string 项目名称
    citem_class string 项目大类
    citem_name string 项目名称
    corderno string 订单号
    ccontracttype string 合同类型
    ccontractid string 合同号
    ccontractname string 合同名称
    ccontracttypename string 合同类型
    cstagecode string 合同阶段
    cstagename string 合同阶段
    clinecloser string 行关闭人
    dlineclosedate date 行关闭日期
    cinvcode string 存货编码
    cinvname string 存货名称
    cinvstd string 规格型号
    iapplyamt_f number 申请金额
    iapplyamt number 申请金额(本币)
    iapplyamt_s number 数量
    csrcexchname string 源单币种
    isrcapplyamt_f number 源单申请金额
    isrcapplyamt number 源单申请金额(本币)
    iauditamt_f number 审批金额
    iauditamt number 审批金额(本币)
    isrcauditamt_f number 源单审批金额
    isrcauditamt number 源单审批金额(本币)
    cbg_itemcode string 预算项目
    cbg_itemname string 预算项目名称
    cbg_caliberkey1 string 预算口径类型1编码
    cbg_caliberkeyname1 string 预算口径类型1名称
    cbg_caliberkey2 string 预算口径类型2编码
    cbg_caliberkeyname2 string 预算口径类型2名称
    cbg_caliberkey3 string 预算口径类型3编码
    cbg_caliberkeyname3 string 预算口径类型3名称
    cbg_caliberkey4 string 预算口径类型4编码
    cbg_caliberkeyname4 string 预算口径类型4名称
    cbg_caliberkey5 string 预算口径类型5编码
    cbg_caliberkeyname5 string 预算口径类型5名称
    cbg_caliberkey6 string 预算口径类型6编码
    cbg_caliberkeyname6 string 预算口径类型6名称
    cbg_calibercode1 string 预算口径1编码
    cbg_calibername1 string 预算口径1名称
    cbg_calibercode2 string 预算口径2编码
    cbg_calibername2 string 预算口径2名称
    cbg_calibercode3 string 预算口径3编码
    cbg_calibername3 string 预算口径3名称
    cbg_calibercode4 string 预算口径4编码
    cbg_calibername4 string 预算口径4名称
    cbg_calibercode5 string 预算口径5编码
    cbg_calibername5 string 预算口径5名称
    cbg_calibercode6 string 预算口径6编码
    cbg_calibername6 string 预算口径6名称
    ibg_ctrl number 是否预算控制
    cbg_auditopinion string 审批意见
    cdefine22 string 自定义项1
    cdefine23 string 自定义项2
    cdefine24 string 自定义项3
    cdefine25 string 自定义项4
    cdefine26 number 自定义项5
    cdefine27 number 自定义项6
    cdefine28 string 自定义项7
    cdefine29 string 自定义项8
    cdefine30 string 自定义项9
    cdefine31 string 自定义项10
    cdefine32 string 自定义项11
    cdefine33 string 自定义项12
    cdefine34 number 自定义项13
    cdefine35 number 自定义项14
    cdefine36 date 自定义项15
    cdefine37 date 自定义项16
    cexpcode string 费用项目编码
    cexpname string 费用项目名称
    cbsysbarcode string 单据表体条码
    isum number 源单本币金额
    iorisum number 源单金额
    ioritaxcost number 原币单价
    inattaxprice number 本币单价
    pid number entry 主表标识
    autoid number entry 子表标识
    csource string entry 来源
    ccovouchtype string entry 来源单据类型
    ccovouchid string entry 来源单据号
    ibvid number entry 订单/发票子表ID
    balancesguid string entry 合同/合同结算单子表GUID
    dprepaydate date entry 预计付款日期
    dactpaydate date entry 实际付款日期
    cdepcode string entry 自定义项
    cdepname string entry 部门名称
    cperson string entry 业务员
    cpersonname string entry 人员名称
    citemcode string entry 项目
    citemname string entry 项目名称
    citem_class string entry 项目大类
    citem_name string entry 项目名称
    corderno string entry 订单号
    ccontracttype string entry 合同类型
    ccontractid string entry 合同号
    ccontractname string entry 合同名称
    ccontracttypename string entry 合同类型
    cstagecode string entry 合同阶段
    cstagename string entry 合同阶段
    clinecloser string entry 行关闭人
    dlineclosedate date entry 行关闭日期
    cinvcode string entry 存货编码
    cinvname string entry 存货名称
    cinvstd string entry 规格型号
    iapplyamt_f number entry 申请金额
    iapplyamt number entry 申请金额(本币)
    iapplyamt_s number entry 数量
    csrcexchname string entry 源单币种
    isrcapplyamt_f number entry 源单申请金额
    isrcapplyamt number entry 源单申请金额(本币)
    iauditamt_f number entry 审批金额
    iauditamt number entry 审批金额(本币)
    isrcauditamt_f number entry 源单审批金额
    isrcauditamt number entry 源单审批金额(本币)
    cbg_itemcode string entry 预算项目
    cbg_itemname string entry 预算项目名称
    cbg_caliberkey1 string entry 预算口径类型1编码
    cbg_caliberkeyname1 string entry 预算口径类型1名称
    cbg_caliberkey2 string entry 预算口径类型2编码
    cbg_caliberkeyname2 string entry 预算口径类型2名称
    cbg_caliberkey3 string entry 预算口径类型3编码
    cbg_caliberkeyname3 string entry 预算口径类型3名称
    cbg_caliberkey4 string entry 预算口径类型4编码
    cbg_caliberkeyname4 string entry 预算口径类型4名称
    cbg_caliberkey5 string entry 预算口径类型5编码
    cbg_caliberkeyname5 string entry 预算口径类型5名称
    cbg_caliberkey6 string entry 预算口径类型6编码
    cbg_caliberkeyname6 string entry 预算口径类型6名称
    cbg_calibercode1 string entry 预算口径1编码
    cbg_calibername1 string entry 预算口径1名称
    cbg_calibercode2 string entry 预算口径2编码
    cbg_calibername2 string entry 预算口径2名称
    cbg_calibercode3 string entry 预算口径3编码
    cbg_calibername3 string entry 预算口径3名称
    cbg_calibercode4 string entry 预算口径4编码
    cbg_calibername4 string entry 预算口径4名称
    cbg_calibercode5 string entry 预算口径5编码
    cbg_calibername5 string entry 预算口径5名称
    cbg_calibercode6 string entry 预算口径6编码
    cbg_calibername6 string entry 预算口径6名称
    ibg_ctrl number entry 是否预算控制
    cbg_auditopinion string entry 审批意见
    cdefine22 string entry 自定义项1
    cdefine23 string entry 自定义项2
    cdefine24 string entry 自定义项3
    cdefine25 string entry 自定义项4
    cdefine26 number entry 自定义项5
    cdefine27 number entry 自定义项6
    cdefine28 string entry 自定义项7
    cdefine29 string entry 自定义项8
    cdefine30 string entry 自定义项9
    cdefine31 string entry 自定义项10
    cdefine32 string entry 自定义项11
    cdefine33 string entry 自定义项12
    cdefine34 number entry 自定义项13
    cdefine35 number entry 自定义项14
    cdefine36 date entry 自定义项15
    cdefine37 date entry 自定义项16
    cexpcode string entry 费用项目编码
    cexpname string entry 费用项目名称
    cbsysbarcode string entry 单据表体条码
    isum number entry 源单本币金额
    iorisum number entry 源单金额
    ioritaxcost number entry 原币单价
    inattaxprice number entry 本币单价

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"errcode":"0",
    	"errmsg":"",
    	"payrequest":{
    		"cdepcode":"0401",
    		"citemname":"",
    		"cdefine3":"",
    		"cdefine2":"",
    		"citemcode":"",
    		"cbg_calibername6":"",
    		"cbg_calibername5":"",
    		"cbg_calibername4":"",
    		"cbg_calibername3":"",
    		"cbg_calibername2":"",
    		"cbg_calibername1":"",
    		"cbg_itemcode":"",
    		"cperson":"00043",
    		"csource":"采购发票",
    		"entry":[
    			{
    				"cstagecode":"",
    				"ccovouchid":"0000000003",
    				"dlineclosedate":"",
    				"cdefine37":"",
    				"cdefine36":"",
    				"ccontracttype":"",
    				"cdefine35":"",
    				"cdepcode":"0401",
    				"iapplyamt_s":"3.0",
    				"ccovouchtype":"01",
    				"iapplyamt_f":"140.4000",
    				"cbg_itemcode":"",
    				"cperson":"00043",
    				"isrcauditamt_f":"140.4000",
    				"iauditamt_f":"140.4000",
    				"isrcauditamt":"140.4000",
    				"balancesguid":"",
    				"iorisum":"140.4000",
    				"ccontractname":"",
    				"autoid":"1000000002",
    				"csource":"采购发票",
    				"dactpaydate":"2014-12-2100:00:00.0",
    				"ibvid":"1000000013",
    				"citemname":"",
    				"ibg_ctrl":"",
    				"clinecloser":"",
    				"csrcexchname":"人民币",
    				"iauditamt":"140.4000",
    				"citemcode":"",
    				"cinvstd":"",
    				"cexpcode":"",
    				"isrcapplyamt_f":"140.4000",
    				"cinvname":"大容量存储器",
    				"cdefine23":"",
    				"cdefine22":"",
    				"cbg_calibername6":"",
    				"cbg_calibername5":"",
    				"cbg_calibername4":"",
    				"cbg_calibername3":"",
    				"citem_class":"",
    				"cbg_calibername2":"",
    				"cbg_calibername1":"",
    				"cbg_caliberkeyname2":"",
    				"cbg_caliberkeyname1":"",
    				"cbg_caliberkeyname4":"",
    				"cbg_caliberkeyname3":"",
    				"cbg_calibercode1":"",
    				"iapplyamt":"140.4000",
    				"ioritaxcost":"46.8000",
    				"dprepaydate":"2014-12-0300:00:00.0",
    				"cbg_caliberkey3":"",
    				"cbg_calibercode5":"",
    				"cdefine27":"",
    				"cexpname":"",
    				"cbsysbarcode":"||ap40|0000000002|1",
    				"cstagename":"",
    				"cbg_caliberkey2":"",
    				"cbg_calibercode4":"",
    				"cdefine26":"",
    				"ccontracttypename":"",
    				"cbg_caliberkey5":"",
    				"cbg_calibercode3":"",
    				"cdefine25":"",
    				"cbg_caliberkey4":"",
    				"cbg_calibercode2":"",
    				"cdefine24":"",
    				"isrcapplyamt":"140.4000",
    				"cbg_caliberkeyname6":"",
    				"cdepname":"采购部",
    				"corderno":"0000000010",
    				"cbg_caliberkeyname5":"",
    				"cbg_caliberkey6":"",
    				"cbg_auditopinion":"",
    				"cdefine29":"",
    				"cbg_calibercode6":"",
    				"cdefine28":"",
    				"citem_name":"",
    				"cdefine30":"",
    				"cpersonname":"顾潇",
    				"isum":"140.4000",
    				"cdefine34":"",
    				"cdefine33":"",
    				"ccontractid":"",
    				"cbg_caliberkey1":"",
    				"cdefine32":"",
    				"cdefine31":"",
    				"inattaxprice":"40.0000",
    				"cbg_itemname":"",
    				"cinvcode":"010204"
    			},
    			{
    				"cstagecode":"",
    				"ccovouchid":"0000000004",
    				"dlineclosedate":"",
    				"cdefine37":"",
    				"cdefine36":"",
    				"ccontracttype":"1105",
    				"cdefine35":"0",
    				"cdepcode":"0401",
    				"iapplyamt_s":"10.0",
    				"ccovouchtype":"01",
    				"iapplyamt_f":"50000.0000",
    				"cbg_itemcode":"",
    				"cperson":"00045",
    				"isrcauditamt_f":"50000.0000",
    				"iauditamt_f":"50000.0000",
    				"isrcauditamt":"50000.0000",
    				"balancesguid":"",
    				"iorisum":"50000.0000",
    				"ccontractname":"产成品采购合同",
    				"autoid":"1000000003",
    				"csource":"采购发票",
    				"dactpaydate":"2014-12-2100:00:00.0",
    				"ibvid":"1000000015",
    				"citemname":"",
    				"ibg_ctrl":"",
    				"clinecloser":"",
    				"csrcexchname":"人民币",
    				"iauditamt":"50000.0000",
    				"citemcode":"",
    				"cinvstd":"",
    				"cexpcode":"",
    				"isrcapplyamt_f":"50000.0000",
    				"cinvname":"多普达E860C",
    				"cdefine23":"",
    				"cdefine22":"",
    				"cbg_calibername6":"",
    				"cbg_calibername5":"",
    				"cbg_calibername4":"",
    				"cbg_calibername3":"",
    				"citem_class":"",
    				"cbg_calibername2":"",
    				"cbg_calibername1":"",
    				"cbg_caliberkeyname2":"",
    				"cbg_caliberkeyname1":"",
    				"cbg_caliberkeyname4":"",
    				"cbg_caliberkeyname3":"",
    				"cbg_calibercode1":"",
    				"iapplyamt":"50000.0000",
    				"ioritaxcost":"5000.0000",
    				"dprepaydate":"2014-12-0300:00:00.0",
    				"cbg_caliberkey3":"",
    				"cbg_calibercode5":"",
    				"cdefine27":"0.0",
    				"cexpname":"",
    				"cbsysbarcode":"||ap40|0000000003|1",
    				"cstagename":"",
    				"cbg_caliberkey2":"",
    				"cbg_calibercode4":"",
    				"cdefine26":"0.0",
    				"ccontracttypename":"采购类合同-单价总额",
    				"cbg_caliberkey5":"",
    				"cbg_calibercode3":"",
    				"cdefine25":"",
    				"cbg_caliberkey4":"",
    				"cbg_calibercode2":"",
    				"cdefine24":"",
    				"isrcapplyamt":"50000.0000",
    				"cbg_caliberkeyname6":"",
    				"cdepname":"采购部",
    				"corderno":"0000000007",
    				"cbg_caliberkeyname5":"",
    				"cbg_caliberkey6":"",
    				"cbg_auditopinion":"",
    				"cdefine29":"",
    				"cbg_calibercode6":"",
    				"cdefine28":"",
    				"citem_name":"",
    				"cdefine30":"",
    				"cpersonname":"查玫",
    				"isum":"50000.0000",
    				"cdefine34":"0",
    				"cdefine33":"",
    				"ccontractid":"0000000008",
    				"cbg_caliberkey1":"",
    				"cdefine32":"",
    				"cdefine31":"",
    				"inattaxprice":"4273.5000",
    				"cbg_itemname":"",
    				"cinvcode":"0334"
    			}
    		],
    		"citem_class":"",
    		"cbg_caliberkeyname2":"",
    		"cbg_caliberkeyname1":"",
    		"cbg_caliberkeyname4":"",
    		"cbg_caliberkeyname3":"",
    		"cbg_calibercode1":"",
    		"cbg_caliberkey3":"",
    		"cbg_calibercode5":"",
    		"cbg_caliberkey2":"",
    		"cbg_calibercode4":"",
    		"cbg_caliberkey5":"",
    		"cbg_calibercode3":"",
    		"cbg_caliberkey4":"",
    		"cbg_calibercode2":"",
    		"cbg_caliberkeyname6":"",
    		"cdepname":"采购部",
    		"cbg_caliberkeyname5":"",
    		"cbg_caliberkey6":"",
    		"cbg_calibercode6":"",
    		"citem_name":"",
    		"cpersonname":"顾潇",
    		"cbg_caliberkey1":"",
    		"cbg_itemname":""
    	}
    }
    

    3.6错误返回示例

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

    4.API测试

    API测试 SDK下载