oughtreceive/get
目录 |
1.接口说明
1.1接口描述
获取单张应收单
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
销售应用
3.接口调用说明
3.1请求说明
url | https://api.yonyouup.com/api/oughtreceive/get |
格式 | JSON |
https请求方式 | GET |
编码类型 | UTF-8 |
3.2url参数说明
参数 | 是否必填 | 类型 | 描述 |
---|---|---|---|
from_account | 是 | string | 调用方id |
to_account | 是 | string | 提供方id |
app_key | 是 | string | 应用编码 |
token | 是 | string | 全局访问唯一识别码 |
ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
id | 是 | string | 单据编号 |
3.3请求示例
GET https://api.yonyouup.com/api/oughtreceive/get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=843d03f66e6544e19707ccec11030296&id=0000000017&ds_sequence=1
3.4返回参数说明
参数说明 | 类型 | 参数路径 | 描述 |
---|---|---|---|
errcode | string | 错误码,0 为正常。 | |
errmsg | string | 错误信息。 | |
code | string | 应收单号 | |
date | date | 单据日期 | |
state | string | 单据状态 | |
cust_vendor_code | string | 客商编码 | |
cusname | string | 客商名称 | |
cusabbname | string | 客商简称 | |
deptcode | string | 部门编码 | |
deptname | string | 部门名称 | |
personcode | string | 人员编码 | |
personname | string | 人员 | |
amount | number | 原币金额 | |
natamount | number | 本币金额 | |
digest | string | 摘要 | |
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 | |
cust_vendor_code | string | entry | 客商编码 |
cusabbname | string | entry | 客商简称 |
deptcode | string | entry | 部门编码 |
deptname | string | entry | 部门名称 |
personcode | string | entry | 人员编码 |
personname | string | entry | 人员 |
digest | string | entry | 摘要 |
subjectcode | string | entry | 科目编码 |
currency_name | string | entry | 币种 |
currency_rate | number | entry | 汇率 |
natamount | number | entry | 本币金额 |
amount | number | entry | 原币金额 |
bdebitcredit | boolean | entry | 借贷方向 |
item_classcode | string | entry | 项目大类编码 |
item_code | string | 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 { "errmsg":"", "errcode":"0", "oughtreceive":{ "define1":"刘天达", "define2":null, "state":"开立", "define3":null, "define4":null, "digest":null, "define5":null, "define6":null, "define16":null, "date":"2015-09-14", "define7":null, "define8":null, "define9":null, "amount":"39000.0000", "deptcode":"0301", "deptname":"市场部", "cust_vendor_code":"00000006", "natamount":"39000.0000", "code":"0000000011", "cusabbname":"北京博达仪器有限公司", "define15":null, "define14":null, "define13":null, "define12":null, "define11":null, "personcode":"00024", "define10":null, "cusname":"北京博达仪器有限公司", "entry":[ { "item_classcode":null, "currency_rate":"10.0", "digest":null, "amount":"3000.0000", "define24":null, "define23":null, "bdebitcredit":"0", "define26":null, "define25":null, "item_code":null, "deptcode":"0301", "define22":null, "deptname":"市场部", "cust_vendor_code":"00000006", "natamount":"30000.0000", "define29":null, "define27":null, "define28":null, "subjectcode":"6031", "cusabbname":"北京博达仪器有限公司", "define33":null, "define32":null, "define31":null, "define30":null, "define37":null, "define36":null, "currency_name":"港币", "personcode":"00024", "define35":null, "define34":null, "personname":"刘天达" }, { "item_classcode":null, "currency_rate":"1.0", "digest":null, "amount":"9000.0000", "define24":null, "define23":null, "bdebitcredit":"0", "define26":null, "define25":null, "item_code":null, "deptcode":"0301", "define22":null, "deptname":"市场部", "cust_vendor_code":"00000006", "natamount":"9000.0000", "define29":null, "define27":null, "define28":null, "subjectcode":"6031", "cusabbname":"北京博达仪器有限公司", "define33":null, "define32":null, "define31":null, "define30":null, "define37":null, "define36":null, "currency_name":"人民币", "personcode":"00024", "define35":null, "define34":null, "personname":"刘天达" } ], "personname":"刘天达" } }
3.6错误返回示例
application/json;charset=UTF-8 { "errcode" : "30021", "errmsg" : "此应用未上线" }