应收明细
应收明细
瑞盈毛行ERP公开接口限流 不限
接口地址
按环境选择对应 Base URL,请求方法见下方标识。
请求基础路径
https://api.maoyimall.com/wewin/POST
Request Method
应收明细/open/wool/custmoneydetail/open/wool/custmoneydetail调用说明
鉴权方式、调用限制与参数概览。
鉴权方式
请求需携带应用密钥相关 Header(见下方请求头参数),请先在控制台创建应用并获取 AppId / AppSecret。
调用限制
当前接口日限额为 不限 。超出限额将返回限流错误,请合理控制调用频率。
参数概览
Header 7 项 · Body 9 项 · 其中必填 15 项
请求头参数
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 params = {
// 请根据接口实际参数填写
};
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: 'POST',
url: `${BASE_URL}/open/wool/custmoneydetail`,
headers: {
'Content-Type': 'application/json',
'appid': APP_ID,
'access-token': ACCESS_TOKEN,
timestamp: timestamp,
sign: sign
},
data: params
})
.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": {
"totalWeight": 0,
"totalAmount": 5053784,
"totalPriorPlanIn": -61093051,
"totalCurrentRealIn": 3723552,
"totalBalance": -3723552,
"page": {
"records": [
{
"Tag": 0,
"CLID": 2,
"Seller": "",
"CreateTime": null,
"WCID": null,
"SKID": null,
"MkDate": "2025-12-31 00:00:00",
"IOType": "期初应收",
"PackType": "",
"MakerName": "",
"BalanceWay": "",
"WoolType": "",
"Color": "",
"ColorID": "",
"VatNo": "",
"WoolPN": "",
"Remarks": "",
"Unit": "",
"DetailRemarks": "",
"Remarks1": "",
"Remarks2": "",
"Remarks3": "",
"NetWeight": 0,
"GrossWeight": 0,
"StripQty": 0,
"Qty": 0,
"UnitPrice": 0,
"CostPrice": 0,
"SubTotal": 0,
"PriorPlanIn": 0,
"CurrentInCash": 0,
"CurrentInSign": 0,
"CurrentRealIn": 0,
"Discount": 1,
"DID": null,
"Maker": "sa",
"ID": 1,
"CurrentMoney": 0,
"IsPayment": false,
"CustName": "钟ZR",
"IncName": null,
"Contact": "",
"Tel1": "18788888888",
"Fax": null,
"ShortCode": "ZRH",
"MaxArrear": 0
}
],
"total": 10364,
"size": 1,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"searchCount": true,
"maxLimit": null,
"countId": null,
"pages": 10364
}
},
"timestamp": 1791793418175
}失败响应
{
"code": 500,
"message": "操作失败",
"result": null
}