oughtpay/get


目录

[隐藏]

1.接口说明

1.1接口描述

     获取单个应付单

1.2适用版本

     支持U8V12.0 及更高版本

2.使用场景

财务应用

3.接口调用说明

3.1请求说明

url https://api.yonyouup.com/api/oughtpay/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/oughtpay/get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&id=xxxxx


3.4返回参数说明

参数说明 类型 参数路径 描述
errcode string   错误码,0 为正常。
errmsg string   错误信息。
vouchertype string 单据类型
code string 应收付单据号
state string 状态
relatevouchercode string 对应单据号
date string 单据日期
cust_vendor_code string 客商编号
deptcode string 部门编码
deptname string 部门名称
personcode string 职员编码
personname string 职员名称
item_classcode string 项目大类编码
item_code string 项目编码
digest string 摘要
subjectcode string 科目编码
currency_name string 币种
currency_rate number 汇率
bdebitcredit boolean 借贷方向
natamount number 本币金额
amount number 原币金额
paycondition_code string 付款条件
operator string 操作员姓名
flag string 标志
quantity 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
startflag boolean 期初标志
cust_vendor_code string entry 客商编号
deptcode string entry 部门编码
personcode string entry 职员编码
item_classcode string entry 项目大类编码
item_code string entry 项目编码
digest string entry 摘要
subjectcode string entry 科目编码
currency_name string entry 币种
currency_rate number entry 汇率
bdebitcredit boolean entry 借贷方向
natamount number entry 本币金额
amount number 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

3.5正确返回示例

JSON示例:

application/json;charset=UTF-8
{
	"oughtpay":{
		"item_classcode":"",
		"startflag":"0",
		"relatevouchercode":"0000000002",
		"define1":"",
		"define2":"",
		"state":"审核",
		"define3":"",
		"currency_rate":"1.0",
		"define4":"",
		"digest":"",
		"define5":"",
		"define6":"",
		"define16":"",
		"define7":"",
		"date":"2014-12-23",
		"define8":"",
		"define9":"",
		"amount":"5000.0000",
		"bdebitcredit":"0",
		"item_code":"",
		"deptcode":"1001",
		"quantity":"0.0",
		"cust_vendor_code":"01005",
		"deptname":"区域销售部",
		"natamount":"5000.0000",
		"paycondition_code":"",
		"code":"0000000001",
		"subjectcode":"224101",
		"operator":"demo5",
		"define15":"",
		"define14":"",
		"define13":"",
		"flag":"AP",
		"define12":"",
		"define11":"",
		"currency_name":"人民币",
		"personcode":"00023",
		"define10":"",
		"entry":[
			{
				"item_classcode":"",
				"currency_rate":"1.0",
				"digest":"",
				"define24":"",
				"amount":"5000.0000",
				"define23":"",
				"define26":"",
				"bdebitcredit":"1",
				"define25":"",
				"item_code":"",
				"deptcode":"1001",
				"define22":"",
				"cust_vendor_code":"01005",
				"natamount":"5000.0000",
				"define29":"",
				"define27":"",
				"define28":"",
				"subjectcode":"",
				"define33":"",
				"define32":"",
				"define31":"",
				"define30":"",
				"define37":"",
				"personcode":"00023",
				"currency_name":"人民币",
				"define36":"",
				"define35":"",
				"define34":""
			},
			{
				"item_classcode":"",
				"currency_rate":"1.0",
				"digest":"",
				"define24":"",
				"amount":"500.0000",
				"define23":"",
				"define26":"",
				"bdebitcredit":"1",
				"define25":"",
				"item_code":"",
				"deptcode":"0202",
				"define22":"",
				"cust_vendor_code":"03004",
				"natamount":"500.0000",
				"define29":"",
				"define27":"",
				"define28":"",
				"subjectcode":"",
				"define33":"",
				"define32":"",
				"define31":"",
				"define30":"",
				"define37":"",
				"personcode":"00018",
				"currency_name":"人民币",
				"define36":"",
				"define35":"",
				"define34":""
			}
		],
		"personname":"师小容",
		"vouchertype":"P0"
	},
	"errmsg":"",
	"errcode":"0"
}

3.6错误返回示例

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

4.API测试

API测试 SDK下载