应收应付类

    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   错误信息。
    cvouchid string 单据编号
    dvouchdate date 单据日期
    cdwcode string 供应商编码
    cvenabbname string 供应商简称
    cvenname string 供应商名称
    cdepcode string 部门编码
    cdepname string 部门名称
    cperson string 业务员编码
    cpersonname string 业务员名称
    csscode string 结算方式编码
    cssname string 结算方式名称
    ccode string 结算科目
    citemcode string 项目编码
    citemname string 项目名称
    citem_class string 项目大类编码
    citem_name string 项目大类名称
    cdigest string 备注
    cexch_name string 币种
    iexchrate number 汇率
    cflag string 应收应付标志
    ccheckman string 审核人
    coperator string 制单人
    cbank string 对方银行
    cbankaccount string 对方银行帐号
    cnatbank string 本单位开户银行
    cnatbankaccount string 本单位开户银行帐号
    cdefine1 string 单据头自定义项1
    cdefine2 string 单据头自定义项2
    cdefine3 string 单据头自定义项3
    cdefine4 date 单据头自定义项4
    cdefine5 number 单据头自定义项5
    cdefine6 date 单据头自定义项6
    cdefine7 number 单据头自定义项7
    cdefine8 string 单据头自定义项8
    cdefine9 string 单据头自定义项9
    cdefine10 string 单据头自定义项10
    cdefine11 string 单据头自定义项11
    cdefine12 string 单据头自定义项12
    cdefine13 string 单据头自定义项13
    cdefine14 string 单据头自定义项14
    cdefine15 number 单据头自定义项15
    cdefine16 number 单据头自定义项16
    dverifydate date 审核日期
    ccloser string 关闭人
    dclosedate date 关闭日期
    cgatheringplan string 收付款协议编码
    cgatheringplanname string 收付款协议
    dgatheringdate date 收付款协议日期
    csysbarcode string 单据条码
    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 项目名称
    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 数量
    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
    csrcexchname string entry 源单币种
    isrcapplyamt_f number entry 源单申请金额
    isrcapplyamt number entry 源单申请金额(本币)
    cbsysbarcode string entry 单据表体条码
    isum number entry 源单本币金额
    iorisum number entry 源单金额
    ioritaxcost number entry 原币单价
    inattaxprice number entry 本币单价

    3.5正确返回示例

    JSON示例:

    application/json;charset=UTF-8
    {
    	"payrequest":{
    		"cbankaccount":"223355876",
    		"cdwcode":"01002",
    		"ccheckman":"demo3",
    		"ccode":"",
    		"cdepcode":"0401",
    		"cpersonname":"顾潇",
    		"cdefine14":"",
    		"cdefine13":"",
    		"cdefine16":"",
    		"cdefine15":"",
    		"coperator":"demo3",
    		"dgatheringdate":"",
    		"cnatbankaccount":"",
    		"cgatheringplanname":"",
    		"cdefine9":"",
    		"cdefine8":"",
    		"cdefine7":"",
    		"cdefine6":"",
    		"cdefine5":"",
    		"cdefine4":"",
    		"cdefine3":"",
    		"cnatbank":"",
    		"cdefine2":"",
    		"cdefine1":"顾潇",
    		"cflag":"AP",
    		"iexchrate":"1.0",
    		"cvenabbname":"辰环手机配件",
    		"csscode":"",
    		"citemname":"",
    		"cperson":"00043",
    		"citem_name":"",
    		"ccloser":"",
    		"cdepname":"采购部",
    		"cdigest":"",
    		"cexch_name":"人民币",
    		"citemcode":"",
    		"cbank":"工行上地支行",
    		"cssname":"",
    		"csysbarcode":"||ap40|0000000001",
    		"cvenname":"深圳辰环手机配件有限公司",
    		"dclosedate":"",
    		"cdefine12":"",
    		"cdefine11":"",
    		"citem_class":"",
    		"cdefine10":"",
    		"dvouchdate":"2014-12-0300:00:00.0",
    		"cgatheringplan":"",
    		"dverifydate":"2014-12-0300:00:00.0",
    		"entry":[
    			{
    				"clinecloser":"",
    				"isum":"140.4000",
    				"cdefine36":"",
    				"cdefine35":"",
    				"cdefine37":"",
    				"cinvcode":"010204",
    				"cinvname":"大容量存储器",
    				"dlineclosedate":"",
    				"citemname":"",
    				"cperson":"00043",
    				"citem_name":"",
    				"cdepname":"采购部",
    				"iorisum":"140.4000",
    				"iapplyamt_s":"3.0",
    				"citemcode":"",
    				"iapplyamt_f":"140.4000",
    				"inattaxprice":"40.0000",
    				"citem_class":"",
    				"cpersonname":"顾潇",
    				"cdefine22":"",
    				"cdefine23":"",
    				"isrcapplyamt":"140.4000",
    				"ioritaxcost":"46.8000",
    				"csrcexchname":"人民币",
    				"cbsysbarcode":"||ap40|0000000002|1",
    				"cinvstd":"",
    				"cdefine29":"",
    				"cdefine28":"",
    				"cdefine27":"",
    				"cdefine26":"",
    				"cdefine25":"",
    				"cdefine24":"",
    				"cdefine33":"",
    				"isrcapplyamt_f":"140.4000",
    				"cdefine34":"",
    				"cdefine31":"",
    				"cdefine32":"",
    				"cdefine30":"",
    				"iapplyamt":"140.4000"
    			},
    			{
    				"clinecloser":"",
    				"isum":"50000.0000",
    				"cdefine36":"",
    				"cdefine35":"0",
    				"cdefine37":"",
    				"cinvcode":"0334",
    				"cinvname":"多普达E860C",
    				"dlineclosedate":"",
    				"citemname":"",
    				"cperson":"00045",
    				"citem_name":"",
    				"cdepname":"采购部",
    				"iorisum":"50000.0000",
    				"iapplyamt_s":"10.0",
    				"citemcode":"",
    				"iapplyamt_f":"50000.0000",
    				"inattaxprice":"4273.5000",
    				"citem_class":"",
    				"cpersonname":"查玫",
    				"cdefine22":"",
    				"cdefine23":"",
    				"isrcapplyamt":"50000.0000",
    				"ioritaxcost":"5000.0000",
    				"csrcexchname":"人民币",
    				"cbsysbarcode":"||ap40|0000000003|1",
    				"cinvstd":"",
    				"cdefine29":"",
    				"cdefine28":"",
    				"cdefine27":"0.0",
    				"cdefine26":"0.0",
    				"cdefine25":"",
    				"cdefine24":"",
    				"cdefine33":"",
    				"isrcapplyamt_f":"50000.0000",
    				"cdefine34":"0",
    				"cdefine31":"",
    				"cdefine32":"",
    				"cdefine30":"",
    				"iapplyamt":"50000.0000"
    			}
    		]
    	},
    	"errmsg":"",
    	"errcode":"0"
    }
    

    3.6错误返回示例

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

    4.API测试

    API测试 SDK下载