概述
该接口主要用于第三方平台或自主研发者,通过调用【固定资产采购单】的查询接口,将Sunlike ERP或Online ERP系统中的【固定资产采购单】信息调出至第三方平台中显示。
参数说明
1.请求方式
请求方式 |
POST |
接口地址 |
http://Online站点/ERP_API/FIXAG/GETDATA |
格式 |
JSON |
编码类型 |
UTF-8 |
2.header参数
Content-Type |
application/json |
Authorization |
token |
授权接口所获取的值 |
3.请求参数
字段名称 |
字段代号 |
类型 |
长度 |
必填否 |
固定值 |
备注 |
程序代号 |
PGM |
|
|
必填 |
FIXAG |
|
单据识别代号 |
OS_ID |
String |
2 |
是 |
P9 |
|
单号 |
OS_NO |
string |
20 |
必填 |
|
ERP的单据号码 |
请求JSON示例
{
"PGM": "FIXAG", //程序代号
"OS_ID": "P9", //单据识别代号
"OS_NO": "P915190001" //ERP单据号码
}
返回结果示例
{
"code": 0, //0表示执行成功
"message": "查询成功",
"data": {
"MF_POS_FX": [ //返回查询单据表头数据信息
{
"OS_ID": "P9",
"OS_NO": "P915190001",
"OS_DD": "2021-05-19 00:00:00",
"DEP_PO": "0101",
"SAL_NO": "10001",
"CUS_NO": "1001",
"EXC_RTO": 1.0,
"TAX_ID": "1",
"EST_DD": "2021-05-19 00:00:00",
"PAY_MTH": "1",
"PAY_DAYS": 1,
"CHK_DAYS": 30,
"PAY_DD": "2021-06-01 00:00:00",
"CHK_DD": "2021-07-01 00:00:00",
"INT_DAYS": 30,
"PAY_REM": "结帐期:2021-06-01;票据到期日:2021-07-01",
"SEND_MTH": "1",
"USR": "ADMIN",
"CHK_MAN": "ADMIN",
"CLS_DATE": "2021-05-19 00:00:00",
"SYS_DATE": "2021-05-19 14:16:53",
"PRT_SW": "N",
"BIL_COUNT": 0
}
],
"TF_POS_FX": [ //返回查询单据表身数据信息
{
"OS_ID": "P9",
"OS_NO": "P915190001",
"ITM": 1,
"PRE_ITM": 1,
"FX_NAME": "电脑",
"FX_KND": "0000000000",
"UNIT": "台",
"QTY": 1.0,
"UP": 5000.0,
"AMT": 5000.0,
"AMTN_NET": 5000.0,
"TAX": 0.0,
"RTO_TAX": 13.0,
"DEP": "01",
"SAL_NO": "10001",
"REM_YT": "办公使用",
"POBN_QTY": 0
}
],
"BILL_STATE": {
"READONLY": false,
"READONLY_REM": []
}
}
}