财务管理
汇总核心业务和各插件订单的统一财务视图。
查询系统订单列表
接口地址
text
GET /admin/finance/order/list接口说明
查询核心业务和所有已接入订单提供者的插件订单;查询前会执行插件增量同步。
接口参数说明
| Query 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
source_plugin_id | string | 否 | 来源业务模块标识 |
pay_status | integer | 否 | 支付状态:1未支付,2已支付,3已退款 |
keyword | string | 否 | 订单号、订单摘要、用户昵称或手机号关键词 |
start_at | string | 否 | 来源订单创建开始时间,格式 YYYY-MM-DD HH:mm:ss |
end_at | string | 否 | 来源订单创建结束时间,格式 YYYY-MM-DD HH:mm:ss |
page | integer | 否 | |
page_size | integer | 否 |
响应示例
json
{
"code": 0,
"msg": "success",
"data": {
"list": [
{
"uid": "",
"finance_order_no": "FOc123",
"source_plugin_id": "",
"source_plugin_name": "",
"source_order_uid": "",
"order_no": "",
"business_order_no": "EC202610150001",
"order_title": "",
"products": [
{
"uid": "",
"name": "",
"cover": "",
"spec_text": "",
"quantity": 0
}
],
"member_nickname": "",
"member_avatar": "",
"member_mobile": "",
"user_channel": 1,
"user_channel_text": "微信小程序",
"order_status": 0,
"status_text": "",
"pay_status": 1,
"pay_method": "",
"payment_channel": 1,
"payment_channel_text": "微信支付",
"payment_scene": 1,
"payment_scene_text": "微信小程序",
"product_amount": "",
"shipping_amount": "",
"discount_amount": "",
"pay_amount": "",
"paid_at": "2026-09-25T10:00:00+08:00",
"created_at": "2026-09-25T10:00:00+08:00",
"updated_at": "2026-09-25T10:00:00+08:00"
}
],
"total": 0,
"pay_counts": null,
"plugin_options": [
{
"plugin_id": "",
"name": "",
"count": 0
}
]
}
}响应参数说明
| 响应字段 | 类型 | 说明 |
|---|---|---|
list | array<FinanceOrderItem> | |
list[].uid | string | 核心统一订单UID |
list[].finance_order_no | string | 核心基座订单号 |
list[].source_plugin_id | string | 来源插件标识 |
list[].source_plugin_name | string | 来源业务模块名称 |
list[].source_order_uid | string | 来源业务订单UID |
list[].order_no | string | 业务订单号 |
list[].business_order_no | string | 业务订单号明确字段 |
list[].order_title | string | 订单摘要 |
list[].products | array<FinanceOrderProduct> | |
list[].products[].uid | string | 来源商品或订单项UID |
list[].products[].name | string | 商品或服务名称快照 |
list[].products[].cover | string | 按当前存储配置补全的封面地址 |
list[].products[].spec_text | string | 规格文本快照 |
list[].products[].quantity | integer | 数量 |
list[].member_nickname | string | 用户昵称快照 |
list[].member_avatar | string | 用户头像完整地址 |
list[].member_mobile | string | 用户手机号快照 |
list[].user_channel | integer | 用户渠道,与会员注册来源一致 |
list[].user_channel_text | string | 用户渠道名称 |
list[].order_status | integer | 来源业务订单状态值 |
list[].status_text | string | 来源业务订单状态文案 |
list[].pay_status | integer | 支付状态 |
list[].pay_method | string | 支付方式快照 |
list[].payment_channel | integer | 支付渠道:0未支付,1微信,2支付宝 |
list[].payment_channel_text | string | 支付渠道名称 |
list[].payment_scene | integer | 支付场景:0未支付,1至7对应统一支付场景 |
list[].payment_scene_text | string | 支付场景名称 |
list[].product_amount | string | 商品金额 |
list[].shipping_amount | string | 配送金额 |
list[].discount_amount | string | 优惠金额 |
list[].pay_amount | string | 实际支付金额 |
list[].paid_at | string | 支付时间 |
list[].created_at | string | 来源订单创建时间 |
list[].updated_at | string | 来源订单更新时间 |
total | integer | 符合筛选条件的订单总数 |
pay_counts | object | 各支付状态订单数量 |
plugin_options | array<FinancePluginOption> | |
plugin_options[].plugin_id | string | 业务模块标识 |
plugin_options[].name | string | 业务模块名称 |
plugin_options[].count | integer | 当前模块订单数量 |
查询系统订单详情
接口地址
text
GET /admin/finance/order/detail接口参数说明
| Query 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
uid | string | 是 | 核心统一订单UID |
响应示例
json
{
"code": 0,
"msg": "success",
"data": {
"uid": "",
"source_plugin_id": "",
"source_plugin_name": "",
"source_order_uid": "",
"order_no": "",
"order_title": "",
"products": [
{
"uid": "",
"name": "",
"cover": "",
"spec_text": "",
"quantity": 0
}
],
"member_nickname": "",
"member_avatar": "",
"member_mobile": "",
"order_status": 0,
"status_text": "",
"pay_status": 1,
"pay_method": "",
"product_amount": "",
"shipping_amount": "",
"discount_amount": "",
"pay_amount": "",
"paid_at": "2026-09-25T10:00:00+08:00",
"created_at": "2026-09-25T10:00:00+08:00",
"updated_at": "2026-09-25T10:00:00+08:00"
}
}响应参数说明
| 响应字段 | 类型 | 说明 |
|---|---|---|
uid | string | 核心统一订单UID |
source_plugin_id | string | 来源插件标识 |
source_plugin_name | string | 来源业务模块名称 |
source_order_uid | string | 来源业务订单UID |
order_no | string | 业务订单号 |
order_title | string | 订单摘要 |
products | array<FinanceOrderProduct> | |
products[].uid | string | 来源商品或订单项UID |
products[].name | string | 商品或服务名称快照 |
products[].cover | string | 按当前存储配置补全的封面地址 |
products[].spec_text | string | 规格文本快照 |
products[].quantity | integer | 数量 |
member_nickname | string | 用户昵称快照 |
member_avatar | string | 用户头像完整地址 |
member_mobile | string | 用户手机号快照 |
order_status | integer | 来源业务订单状态值 |
status_text | string | 来源业务订单状态文案 |
pay_status | integer | 支付状态 |
pay_method | string | 支付方式快照 |
product_amount | string | 商品金额 |
shipping_amount | string | 配送金额 |
discount_amount | string | 优惠金额 |
pay_amount | string | 实际支付金额 |
paid_at | string | 支付时间 |
created_at | string | 来源订单创建时间 |
updated_at | string | 来源订单更新时间 |
查询财务报表
接口地址
text
GET /admin/finance/report/overview接口说明
增量同步各插件订单后,汇总全系统订单、支付趋势、支付状态和业务模块贡献。
接口参数说明
无请求参数。
响应示例
json
{
"code": 0,
"msg": "success",
"data": {
"order_count": 0,
"paid_order_count": 0,
"pending_count": 0,
"refund_count": 0,
"buyer_count": 0,
"today_order_count": 0,
"total_pay_amount": "",
"today_pay_amount": "",
"trend": [
{
"date": "",
"order_count": 0,
"pay_amount": ""
}
],
"pay_statuses": [
{
"pay_status": 1,
"name": "",
"count": 0
}
],
"modules": [
{
"plugin_id": "",
"plugin_name": "",
"order_count": 0,
"paid_count": 0,
"refund_count": 0,
"pay_amount": "",
"refund_amount": ""
}
]
}
}响应参数说明
| 响应字段 | 类型 | 说明 |
|---|---|---|
order_count | integer | 全业务订单总数 |
paid_order_count | integer | 已支付订单数 |
pending_count | integer | 未支付订单数 |
refund_count | integer | 已退款订单数 |
buyer_count | integer | 去重业务用户数 |
today_order_count | integer | 今日订单数 |
total_pay_amount | string | 累计已支付金额 |
today_pay_amount | string | 今日已支付金额 |
trend | array<object> | |
trend[].date | string | 日期 MM-DD |
trend[].order_count | integer | 订单量 |
trend[].pay_amount | string | 已支付金额 |
pay_statuses | array<object> | |
pay_statuses[].pay_status | integer | |
pay_statuses[].name | string | |
pay_statuses[].count | integer | |
modules | array<object> | |
modules[].plugin_id | string | |
modules[].plugin_name | string | |
modules[].order_count | integer | |
modules[].paid_count | integer | |
modules[].refund_count | integer | |
modules[].pay_amount | string | |
modules[].refund_amount | string |