otherin/get
目录 |
1.接口说明
1.1接口描述
获取单张其它入库单
1.2适用版本
支持U8V12.0 及更高版本
2.使用场景
办公用品领用
3.接口调用说明
3.1请求说明
url | https://api.yonyouup.com/api/otherin/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/otherin/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 | 制单日期 | |
maker | string | 制单人名称 | |
warehousecode | string | 仓库编码 | |
warehousename | string | 仓库名称 | |
memory | string | 备注 | |
receivecode | string | 收发类型编码 | |
receivename | string | 收发类型 | |
departmentcode | string | 部门编码 | |
departmentname | 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 | |
inventorycode | string | entry | 存货编码 |
inventoryname | string | entry | 存货 |
inventorystd | string | entry | 规格型号 |
quantity | number | entry | 数量 |
price | number | entry | 单价 |
cost | number | entry | 金额 |
cmassunitname | string | entry | 主计量单位名称 |
serial | string | entry | 批号 |
makedate | date | entry | 生产日期 |
validdate | date | entry | 失效日期 |
massunit | string | 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", "otherin":{ "define1":null, "define2":null, "define3":null, "define4":null, "define5":null, "define6":null, "define16":null, "date":"2015-11-13", "define7":null, "define8":null, "define9":null, "departmentcode":null, "warehousename":"办公用品仓", "maker":"demo", "departmentname":null, "code":"0000000008", "receivename":null, "receivecode":null, "memory":null, "define15":null, "define14":null, "warehousecode":"42", "define13":null, "define12":null, "define11":null, "define10":null, "entry":[ { "inventorystd":null, "free1":null, "free3":null, "rowno":"1", "free2":null, "free5":null, "free4":null, "free7":null, "free6":null, "free9":null, "free8":null, "free10":null, "cmassunitname":"个", "define24":null, "define23":null, "define26":null, "define25":null, "inventoryname":"签字笔", "define22":null, "quantity":"2.0000000000", "inventorycode":"1001", "define29":null, "define27":null, "define28":null, "cost":null, "define33":null, "define32":null, "define31":null, "define30":null, "price":null, "define37":null, "define36":null, "define35":null, "define34":null }, { "inventorystd":null, "free1":null, "free3":null, "rowno":"2", "free2":null, "free5":null, "free4":null, "free7":null, "free6":null, "free9":null, "free8":null, "free10":null, "cmassunitname":"本", "define24":null, "define23":null, "define26":null, "define25":null, "inventoryname":"笔记本", "define22":null, "quantity":"3.0000000000", "inventorycode":"1002", "define29":null, "define27":null, "define28":null, "cost":null, "define33":null, "define32":null, "define31":null, "define30":null, "price":null, "define37":null, "define36":null, "define35":null, "define34":null }, { "inventorystd":null, "free1":null, "free3":null, "rowno":"3", "free2":null, "free5":null, "free4":null, "free7":null, "free6":null, "free9":null, "free8":null, "free10":null, "cmassunitname":"台", "define24":null, "define23":null, "define26":null, "define25":null, "inventoryname":"计算器", "define22":null, "quantity":"4.0000000000", "inventorycode":"1003", "define29":null, "define27":null, "define28":null, "cost":null, "define33":null, "define32":null, "define31":null, "define30":null, "price":null, "define37":null, "define36":null, "define35":null, "define34":null } ] } }
3.6错误返回示例
application/json;charset=UTF-8 { "errcode" : "30021", "errmsg" : "此应用未上线" }