TransactKit-Prov1.0.0
TransactKit-Pro billing features
Create Customer Portal sessions, read invoices, synchronize active Entitlements, and record Stripe Billing Meter Events.
Updated
Customer Portal
POST /api/billing/portal/sessions creates a temporary Stripe-hosted Customer Portal Session for a Customer and an optional Portal configuration ID.
Authoritative invoices
Retrieve one Invoice by Stripe ID or list Customer invoices with an optional subscription filter and cursor pagination. Responses include hosted invoice and PDF URLs when Stripe supplies them.
Active Entitlements
GET /api/customers/{customerId}/entitlements reads every active Entitlement page from Stripe and atomically replaces the customer's small local feature projection. The webhook handler performs the same full rebuild because Stripe summary events may be truncated.
Usage-based billing and Meter Events
POST /api/billing/usage creates a stable Stripe Billing Meter Event from eventName, customerId, positive value, stable identifier, optional timestamp, and up to 20 dimensions.
- Reuse the same identifier for the same logical usage event to preserve Stripe deduplication semantics.
- TransactKit-Pro uses current Billing Meter Events, not legacy Usage Records.
- Usage events are not stored locally; Stripe Billing Meters own aggregation and billing behavior.