purchaseorder/get
目录 |
1.接口说明
1.1接口描述
获取单张采购订单
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
订购应用
3.接口调用说明
3.1请求说明
url | https://api.yonyouup.com/api/purchaseorder/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/purchaseorder/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 | 订单日期,默认取系统日期 | |
operation_type_code | string | 采购业务类型,默认普通采购 | |
state | string | 订单状态 | |
purchase_type_code | string | 采购类型编码 | |
purchase_type_name | string | 采购类型 | |
vendorcode | string | 供应商编码 | |
vendorname | string | 供应商名称 | |
vendorabbname | string | 供应商简称 | |
deptcode | string | 部门编码 | |
deptname | string | 部门名称 | |
personcode | string | 业务员编码 | |
personname | string | 业务员 | |
maker | string | 制单人 | |
verifier | string | 审核人 | |
closer | string | 关闭人 | |
currency_name | string | 外币名称 | |
currency_rate | 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 | |
remark | string | 备注 | |
inventorycode | string | entry | 存货编码 |
inventoryname | string | entry | 存货名称 |
inventorystd | string | entry | 规格型号 |
unitcode | string | entry | 采购单位编码 |
unitname | string | entry | 采购单位 |
quantity | number | entry | 数量 |
arrivedate | date | entry | 计划到货日期 |
price | number | entry | 原币单价 |
quotedprice | number | entry | 报价 |
taxprice | number | entry | 含税单价 |
money | number | entry | 原币金额 |
tax | number | entry | 原币税额 |
sum | number | entry | 原币价税合计 |
discount | number | entry | 折扣额 |
natprice | number | entry | 本币单价 |
natmoney | number | entry | 本币金额 |
assistantunit | string | entry | 辅计量单位编码 |
nattax | number | entry | 本币税额 |
natsum | number | entry | 本币价税合计 |
natdiscount | number | entry | 本币折扣额 |
taxrate | number | entry | 税率 |
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 |
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 |
rowno | number | entry | 行号 |
3.5正确返回示例
JSON示例:
application/json;charset=UTF-8 { "errmsg":"", "errcode":"0", "purchaseorder":{ "vendorname":"深圳明亮外设商贸公司", "operation_type_code":"普通采购", "remark":"API_Save_88", "define1":"顾潇", "define2":null, "state":"开立", "define3":null, "define4":null, "define5":null, "define6":null, "define16":null, "date":"2015-01-07", "define7":null, "define8":null, "define9":null, "purchase_type_code":"01", "deptcode":"0401", "deptname":"采购部", "purchase_type_name":"委外采购", "vendorabbname":"明亮外设商贸", "code":"0000000044", "define15":null, "vendorcode":"01005", "define14":null, "define13":null, "define12":null, "define11":null, "personcode":"00043", "define10":null, "maker":"demo", "verifier":"demo", "closer":"demo", "entry":[ { "inventorystd":"船形开关线/线长500MM/2Pin", "quotedprice":null, "unitname":"PCS", "free1":null, "free3":null, "rowno":"1", "free2":null, "free5":null, "sum":"4884.0000", "free4":null, "free7":null, "free6":null, "free9":null, "free10":null, "free8":null, "define24":"UAP_1", "define23":null, "define26":null, "define25":null, "define22":null, "inventoryname":"线材", "money":"4174.3600", "quantity":"444.0000000000", "inventorycode":"01019002068", "taxprice":"11.000000", "arrivedate":"2015-01-07", "unitcode":null, "define29":null, "define27":null, "define28":null, "define33":null, "define32":null, "define31":null, "define30":null, "price":"9.4000000000", "define37":null, "tax":"709.6400", "define36":null, "define35":null, "define34":null }, { "inventorystd":"汇智2U机箱", "quotedprice":null, "unitname":"PCS", "free1":null, "free3":null, "rowno":"2", "free2":null, "free5":null, "sum":"4422.0000", "free4":null, "free7":null, "free6":null, "free9":null, "free10":null, "free8":null, "define24":"UAP_1", "define23":null, "define26":null, "define25":null, "define22":null, "inventoryname":"机箱", "money":"3779.4900", "quantity":"201.0000000000", "inventorycode":"01019002070", "taxprice":"22.000000", "arrivedate":"2015-01-07", "unitcode":null, "define29":null, "define27":null, "define28":null, "define33":null, "define32":null, "define31":null, "define30":null, "price":"18.8000000000", "define37":null, "tax":"642.5100", "define36":null, "define35":null, "define34":null } ], "personname":"顾潇" } }
3.6错误返回示例
application/json;charset=UTF-8 { "errcode" : "30021", "errmsg" : "此应用未上线" }