/internal/billing/records
服务间内部调用:创建一条计费记录(由 pay-service 等支付相关微服务调用),含金额、币种、发票编号、支付方式、计费周期等字段
Request Body
Schema: dto.CreateBillingRecordInternalRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
amount |
number |
Yes | 99 |
||
period_end |
string |
Yes | 2026-06-01T00:00:00Z |
||
period_start |
string |
Yes | 2026-05-01T00:00:00Z |
||
status |
string |
Yes | paid |
||
subscription_id |
string |
Yes | sub_001 |
||
app_id |
string |
No | app_001 |
||
currency |
string |
No | CNY |
||
description |
string |
No | 月度订阅 |
||
invoice_number |
string |
No | INV-2026-001 |
||
payment_method |
string |
No | alipay |
Responses
| Status | Description | Schema |
|---|---|---|
| 201 | 计费记录创建成功 | object |
| 400 | 请求参数错误 | object |
| 401 | 未授权 | object |
| 500 | 服务器内部错误 | object |