售货详情
根据SOID获取对应的售货单详情
瑞盈毛行ERP公开接口限流 不限
接口地址
按环境选择对应 Base URL,请求方法见下方标识。
请求基础路径
https://api.maoyimall.com/wewin/GET
Request Method
售货详情/open/wool/semioutdetail/open/wool/semioutdetail调用说明
鉴权方式、调用限制与参数概览。
鉴权方式
请求需携带应用密钥相关 Header(见下方请求头参数),请先在控制台创建应用并获取 AppId / AppSecret。
调用限制
当前接口日限额为 不限 。超出限额将返回限流错误,请合理控制调用频率。
参数概览
Header 7 项 · Body 1 项 · 其中必填 8 项
请求头参数
7HTTP Header 字段说明,鉴权相关参数通常放在此处。
请求示例
1可直接复制到本地调试的多语言示例。
JavaScript
const crypto = require('crypto');
const axios = require('axios');
// 请替换为真实的appid,appsecret,access token
const APP_ID = 'your_app_id';
const APP_SECRET = 'your_app_secret';
const ACCESS_TOKEN = 'your_access_token';
const BASE_URL = 'https://your-domain.com';
const soid = 'your_soid';
const timestamp = Math.floor(Date.now() / 1000);
const signStr = `${APP_ID}${timestamp}${APP_SECRET}`;
const sign = crypto
.createHash('md5')
.update(signStr)
.digest('hex');
axios({
method: 'GET',
url: `${BASE_URL}/open/wool/semioutdetail`,
headers: {
'Content-Type': 'application/json',
'appid': APP_ID,
'access-token': ACCESS_TOKEN,
timestamp: timestamp,
sign: sign
},
params: {
soid: soid
}
})
.then(res => {
console.log('请求成功:');
console.log(res.data);
})
.catch(err => {
console.error('请求失败:');
console.error(err.response ? err.response.data : err.message);
});成功响应
{
"errcode": 0,
"errmsg": "ok",
"data": [
{
"ID": 421175,
"WID": null,
"SOID": 24103290,
"WoolType": "28/2高弹包芯纱",
"HouseName": "",
"StorePos": "",
"ColorType": null,
"Color": "枣红",
"ColorID": "A12G",
"VatNo": "2408109G",
"WoolPN": "",
"RGBValue": null,
"PackType": "筒装",
"StripQty": 0,
"Qty": 1,
"GrossWeight": 0,
"WetRate": 0,
"WasteRate": 0,
"NetWeight": 1.8,
"UnitPrice": 31,
"CostPrice": 0,
"Remarks": null,
"Unit": "KG",
"CustColorID": "",
"PcWeight": 0,
"DyeColorID": "",
"OrderWeight": 0,
"IID": 1,
"IsHide": false,
"Discount": 1,
"IsOver": false,
"DNID": null,
"COID": null,
"PLID": null,
"PackQty": 0,
"Remarks1": null,
"Remarks2": null,
"IncID": "",
"Alias": "",
"StoreWeight": 25.1,
"StoreQty": 15,
"StoreStrip": -1,
"EnvRequest": "",
"QtyWeight": 1.83,
"WeightDiff": -0.03,
"DiffRate": 0,
"ShipRemarks": null,
"OldStorePos": null,
"SpinPLID": null
}
],
"timestamp": 1791787580139
}失败响应
{
"code": 500,
"message": "操作失败",
"result": null
}