Autional Autional
API Reference GitHub autional.com →

POST /internal/billing/records

Internal 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.

Billing Service - Internal None application/json

Request Body

Schema: dto.CreateBillingRecordInternalRequest

FieldTypeRequiredExampleConstraintsDescription
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

Responses

StatusDescriptionSchema
201Billing record created successfullyobject
400Invalid request parametersobject
401Unauthorizedobject
500Internal server errorobject