POST /internal/billing/records

服务间内部调用:创建一条计费记录(由 pay-service 等支付相关微服务调用),含金额、币种、发票编号、支付方式、计费周期等字段

计费服务 - 内部接口 None application/json

请求体

Schema: service-billing/internal/handler/dto.CreateBillingRecordInternalRequest

字段类型必填示例约束描述
amount number 是 99
period_end string 是 2026-06-01T00:00:00Z
period_start string 是 2026-05-01T00:00:00Z
status string 是 paid
subscription_id string 是 sub_001
app_id string 否 app_001
currency string 否 CNY
description string 否 月度订阅
invoice_number string 否 INV-2026-001
payment_method string 否 alipay

响应

状态描述Schema
201计费记录创建成功object
400请求参数错误object
401未授权object
500服务器内部错误object