正在加载页面,请稍候…

公开文档

应收汇总

应收汇总

瑞盈毛行ERP公开接口限流 不限

接口地址

按环境选择对应 Base URL,请求方法见下方标识。

请求基础路径https://api.maoyimall.com/wewin/
POST
Request Method应收汇总
生产环境
/open/wool/custmoneytotal
测试环境
/open/wool/custmoneytotal

调用说明

鉴权方式、调用限制与参数概览。

鉴权方式

请求需携带应用密钥相关 Header(见下方请求头参数),请先在控制台创建应用并获取 AppId / AppSecret。

调用限制

当前接口日限额为 不限 。超出限额将返回限流错误,请合理控制调用频率。

参数概览

Header 7 项 · Body 9 项 · 其中必填 14 项

字段名类型是否必填说明示例
pageNonumber必填页码1
pageSizenumber必填页数1
mkDatestring必填开始日期2026-01-01
endDatestring必填截止日期2026-01-31
sumTypenumber必填汇总类型;0:应收款对账单、1:应收款汇总、2:分业务员应收汇总;默认00
colorCondnumber必填颜色条件;0:分色分缸、1:分单汇总、2:品种汇总;默认00
payTypenumber必填付款类型;0:全部、1:未付清、2:已付清、3:本期付、4:预付款;默认00
clidstring可选客户ID—
custNamestring可选客户名称—
字段名类型是否必返说明示例
errcodenumber必返错误码0
errmsgstring必返错误码的英文消息ok
dataobject可选请求成功时返回的业务数据—
totalPriorPlanInnumber可选—-61093051
totalCurrentWeightnumber可选—166614.1
totalCurrentPlanInnumber可选—-59762819
totalCurrentInCashnumber可选—3723552
totalCurrentInSignnumber可选—0
totalCurrentRealInnumber可选—3723552
totalPlanInnumber可选—-56039267
totalBillCountnumber可选—1827
pageobject可选当前页记录列表,里面是具体生产/订单记录—
recordsobject[]可选当前页记录列表,里面是具体生产/订单记录—
CLIDnumber可选客户ID13764
CustNamestring可选客户
IncNamestring可选门店—
Provincestring可选省份—
Citystring可选城市—
Contactstring可选联系人—
Tel1string可选电话—
Faxstring可选传真—
ShortCodestring可选速记码—
MaxArrearnumber可选信用额度0
Sellerstring可选业务员—
IncIDstring可选门店id—
LastSaleDatestring可选——
MaxWCIDstring可选——
BillCountnumber可选单数0
SubTotalnumber可选金额0
PriorPlanInnumber可选期初应收0
CurrentInCashnumber可选—0
CurrentInSignnumber可选—0
CurrentRealInnumber可选本期实收0
CurrentWeightnumber可选本期销量0
CurrentPlanInnumber可选期末应收0
PlanInnumber可选—0
ArrearDiffnumber可选—0
Makerstring可选制单人sa
DayDiffstring可选——
totalnumber可选总记录数5236
sizenumber可选每页条数1
currentnumber可选当前页码1
ordersarray可选排序规则列表[]
optimizeCountSqlboolean可选是否优化 count SQLtrue
searchCountboolean可选是否执行 count 查询true
maxLimitstring可选最大查询条数限制—
countIdstring可选count 查询标识—
pagesnumber可选总页数5236
timestampnumber必返请求时的毫秒级时间戳1791791683176

请求示例

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/custmoneytotal`,
  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": {
    "totalPriorPlanIn": -61093051,
    "totalCurrentWeight": 166614.1,
    "totalCurrentPlanIn": -59762819,
    "totalCurrentInCash": 3723552,
    "totalCurrentInSign": 0,
    "totalCurrentRealIn": 3723552,
    "totalPlanIn": -56039267,
    "totalBillCount": 1827,
    "page": {
      "records": [
        {
          "CLID": 13764,
          "CustName": " ",
          "IncName": null,
          "Province": null,
          "City": null,
          "Contact": null,
          "Tel1": "",
          "Fax": null,
          "ShortCode": "",
          "MaxArrear": 0,
          "Seller": null,
          "IncID": "",
          "LastSaleDate": null,
          "MaxWCID": null,
          "BillCount": 0,
          "SubTotal": 0,
          "PriorPlanIn": 0,
          "CurrentInCash": 0,
          "CurrentInSign": 0,
          "CurrentRealIn": 0,
          "CurrentWeight": 0,
          "CurrentPlanIn": 0,
          "PlanIn": 0,
          "ArrearDiff": 0,
          "Maker": "sa",
          "DayDiff": null
        }
      ],
      "total": 5236,
      "size": 1,
      "current": 1,
      "orders": [],
      "optimizeCountSql": true,
      "searchCount": true,
      "maxLimit": null,
      "countId": null,
      "pages": 5236
    }
  },
  "timestamp": 1791791683176
}
失败响应
{
  "code": 500,
  "message": "操作失败",
  "result": null
}
错误码英文说明中文说明
-1system error系统繁忙,请稍候再试
40001appid invalidAPPID无效或不存在
40002appsecret invalidAppSecret错误,请检查密钥
41001access_token missing请求中未携带access_token
41002access_token expiredacess_token已过期,请重新获取