/internal/billing/recordsInternal service call: Create a billing record (called by pay-service and other payment-related microservices), including amount, currency, invoice number, payment method, billing cycle, etc.
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 | Monthly subscription |
||
invoice_number |
string |
No | INV-2026-001 |
||
payment_method |
string |
No | alipay |
| Status | Description | Schema |
|---|---|---|
| 201 | Billing record created successfully | object |
| 400 | Invalid request parameters | object |
| 401 | Unauthorized | object |
| 500 | Internal server error | object |