对账单
合作商对账单由 E2C 按结算周期生成。合作商可查看账单与明细;如无异议,账单在异议截止日后自动确认,由 E2C 财务完成结算。合作商侧不提供确认或结算接口。
认证
所有接口使用 Authorization: Bearer <会话令牌>。
账单列表
POST
/channel/api/v1/reconciliation/statement/listAuth: Authorization: Bearer <session token>
返回当前合作商的对账单,支持按账期和状态筛选。
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
period | string | 否 | 账期,YYYY-MM |
status | string | 否 | open / confirmed / disputed / invoiced / paid / overdue |
page | integer | 否 | 页码,默认 1 |
pageSize | integer | 否 | 每页条数,默认 20,最大 100 |
响应
json
{
"code": 200,
"msg": "success",
"data": {
"data": [
{
"id": 1,
"statement_no": "BS202611011200000001",
"period": "2026-11",
"period_start": "2026-11-01",
"period_end": "2026-11-30",
"status": "open",
"total_amount": 123.45,
"due_date": "2026-12-30",
"objection_deadline": "2026-12-07"
}
],
"total": 1,
"per_page": 20,
"current_page": 1
}
}状态
| 状态 | 含义 |
|---|---|
open | 待确认,可提出异议 |
confirmed | 已确认(含异议期届满自动确认) |
disputed | 已提出异议 |
invoiced | 已开票 |
paid | 已收款 |
overdue | 已逾期 |
错误码
| code | 含义 |
|---|---|
| 909 | 未认证或不属于合作商 |
cURL
curl -X POST 'https://apigate.e2c-energy.com/channel/api/v1/reconciliation/statement/list' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"period": "2026-11",
"page": 1,
"pageSize": 20
}'账单详情
POST
/channel/api/v1/reconciliation/statement/detailAuth: Authorization: Bearer <session token>
返回指定对账单及其费用明细。
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | integer | 是 | 对账单 ID |
响应
json
{
"code": 200,
"msg": "success",
"data": {
"id": 1,
"statement_no": "BS202611011200000001",
"period": "2026-11",
"period_start": "2026-11-01",
"period_end": "2026-11-30",
"status": "open",
"total_amount": 123.45,
"due_date": "2026-12-30",
"objection_deadline": "2026-12-07",
"lines": [
{
"id": 10,
"description": "Outbound handling",
"quantity": 2,
"unit_price": 10,
"amount": 20
}
]
}
}错误码
| code | 含义 |
|---|---|
| 909 | 未认证或不属于合作商 |
| 400 | id 缺失 |
| 404 | 对账单不存在或不属于当前合作商 |
cURL
curl -X POST 'https://apigate.e2c-energy.com/channel/api/v1/reconciliation/statement/detail' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"id": 1
}'提出异议
POST
/channel/api/v1/reconciliation/statement/disputeAuth: Authorization: Bearer <session token>
在异议截止日前对账单提出异议。异议提交后由 E2C 内部财务复核,合作商侧不再执行其他结算操作。
请求体
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | integer | 是 | 对账单 ID |
reason | string | 是 | 异议原因,最长 512 字符 |
响应
json
{
"code": 200,
"msg": "success",
"data": null
}错误码
| code | 含义 |
|---|---|
| 909 | 未认证或不属于合作商 |
| 400 | id 或 reason 缺失;对账单当前状态不可提异议 |
| 404 | 对账单不存在或不属于当前合作商 |
cURL
curl -X POST 'https://apigate.e2c-energy.com/channel/api/v1/reconciliation/statement/dispute' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"id": 1,
"reason": "The handling fee quantity is incorrect."
}'结算说明
- 对账单由 E2C 按结算周期生成,合作商侧只读。
- 合作商可在异议截止日前提交异议;逾期未提交视为无异议。
- 异议期届满且无异议时,对账单自动确认。
- 开票与收款由 E2C 内部财务完成;合作商侧不提供确认或结算接口。
- 对账单状态与金额仅供查询;如需调整,请通过异议流程或联系客户经理。