purchaserequisition/get
目录 |
1.接口说明
1.1接口描述
获取单个请购单
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
订购应用
3.接口调用说明
3.1请求说明
url | https://api.yonyouup.com/api/purchaserequisition/get |
格式 | JSON |
https请求方式 | GET |
3.2url参数说明
参数 | 是否必填 | 类型 | 描述 |
---|---|---|---|
from_account | 是 | sting | 调用方id |
to_account | 是 | string | 提供方id |
app_key | 是 | string | 应用编码 |
token | 是 | string | 全局访问唯一识别码 |
ds_sequence | 否 | number | 数据源序号(默认取应用的第一个数据源) |
id | 是 | number | 主表id |
3.3请求示例
GET https://api.yonyouup.com/api/purchaserequisition/get?from_account=openapi_dev&to_account=openapi_ent&app_key=opa6fdd4bea98b95ad7&token=26d2fc4a06844448957a7f8260f3d08b&id=xxxxx
3.4返回参数说明
参数说明 | 类型 | 参数路径 | 描述 |
---|---|---|---|
errcode | string | 错误码,0 为正常。 | |
errmsg | string | 错误信息。 | |
code | string | 单据编号 | |
date | date | 单据日期 | |
departmentcode | string | 部门编号 | |
personcode | string | 职员编号 | |
purchasetypecode | string | 采购类型编码 | |
businesstype | string | 业务类型 | |
maker | 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 | |
memory | string | 备注 | |
vendorcode | string | entry | 供应商编码 |
inventorycode | string | entry | 存货编码 |
quantity | number | entry | 数量 |
price | number | entry | 本币单价 |
taxrate | number | entry | 税率 |
taxprice | number | entry | 本币含税单价 |
money | number | entry | 本币金额 |
tax | number | entry | 本币税额 |
sum | number | entry | 本币价税合计 |
requiredate | date | entry | 需求日期 |
arrivedate | date | entry | 建议订货日期 |
item_class | string | entry | 项目大类编码 |
num | number | entry | 件数 |
unitid | string | entry | 单位编码 |
deptcodeexec | string | entry | 执行部门 |
personcodeexec | string | entry | 执行采购员 |
currency_name | string | entry | 币种 |
currency_rate | number | entry | 汇率 |
originalprice | number | entry | 原币单价 |
originaltaxedprice | number | entry | 含税单价 |
originalmoney | number | entry | 原币金额 |
originaltax | number | entry | 原币税额 |
originalsum | number | entry | 原币价税合计 |
ivouchrowno | 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 |
free1 | string | entry | 自由项1 |
free2 | string | entry | 自由项2 |
free3 | string | entry | 自由项3 |
free4 | string | entry | 自由项4 |
free5 | string | entry | 自由项5 |
free6 | string | entry | 自由项6 |
free7 | string | entry | 自由项7 |
free8 | string | entry | 自由项8 |
free9 | string | entry | 自由项9 |
free10 | string | entry | 自由项10 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8 { "errmsg":"", "purchaserequisition":{ "define1":"徐海", "define2":"", "define3":"", "define4":"", "define5":"", "define6":"", "define7":"", "date":"2014-12-0200:00:00.0", "define16":"", "define8":"", "define9":"", "purchasetypecode":"", "departmentcode":"", "businesstype":"普通采购", "maker":"demo3", "code":"0000000001", "memory":"", "define15":"", "define14":"", "define13":"", "define12":"", "define11":"", "personcode":"", "define10":"", "entry":[ { "requiredate":"2014-12-0500:00:00.0", "originalsum":"", "quantity":"1000.000000", "originalprice":"", "originaltax":"", "taxprice":"", "define29":"", "define27":"", "define28":"", "originaltaxedprice":"", "define33":"", "define32":"", "define31":"", "price":"", "define30":"", "define37":"", "tax":"", "define36":"", "define35":"", "define34":"", "free1":"", "originalmoney":"", "free3":"", "free2":"", "free5":"", "free4":"", "sum":"", "currency_rate":"1.0000000000", "free7":"", "free6":"", "deptcodeexec":"", "free9":"", "free10":"", "free8":"", "id":"1000000001", "taxrate":"17.000000", "define24":"", "define23":"", "define26":"", "define25":"", "unitid":"", "define22":"", "money":"", "inventorycode":"01040813029", "arrivedate":"2014-12-0200:00:00.0", "ivouchrowno":"1", "num":"", "currency_name":"人民币", "item_class":"", "personcodeexec":"" }, { "requiredate":"2014-12-0500:00:00.0", "originalsum":"", "quantity":"120.000000", "originalprice":"", "originaltax":"", "taxprice":"", "define29":"", "define27":"", "define28":"", "originaltaxedprice":"", "define33":"", "define32":"", "define31":"", "price":"", "define30":"", "define37":"", "tax":"", "define36":"", "define35":"", "define34":"", "free1":"", "originalmoney":"", "free3":"", "free2":"", "free5":"", "free4":"", "sum":"", "currency_rate":"1.0000000000", "free7":"", "free6":"", "deptcodeexec":"", "free9":"", "free10":"", "free8":"", "id":"1000000001", "taxrate":"17.000000", "define24":"", "define23":"", "define26":"", "define25":"", "unitid":"", "define22":"", "money":"", "inventorycode":"01021001", "arrivedate":"2014-12-0200:00:00.0", "ivouchrowno":"2", "num":"", "currency_name":"人民币", "item_class":"", "personcodeexec":"" } ] }, "errcode":"0" }
3.6错误返回示例
application/json;charset=UTF-8 { "errcode":"30021", "errmsg":"此应用未上线" }