Invoice Generated (v0.0.1)

Emitted when an invoice is generated for a subscription

Overview

The InvoiceGenerated event is emitted by the Billing Service when an invoice has been successfully generated for a subscription. This event notifies other services that a new invoice is available and ready for payment processing.

Cross-Domain Communication

This event facilitates communication between:

  • Source: Subscriptions Domain (BillingService)
  • Target: Payment Domain (PaymentService), Notification Services, Accounting Systems

Schema

Event-driven architecture documentation: FlowMart

InvoiceGenerated Schema

20 properties

Schema for invoice generated event

invoiceIdstring
required

Unique identifier for the invoice

invoiceNumberstring
required

Human-readable invoice number

subscriptionIdstring
required

Unique identifier for the subscription

customerIdstring
required

Unique identifier for the customer

invoiceDatestring<date-time>
required

Date and time when the invoice was generated

dueDatestring<date-time>
required

Date and time when the invoice payment is due

statusstring
required

Current status of the invoice

Allowed values: generated sent paid overdue cancelled
lineItemsarray[object]
required

List of items on the invoice

subtotalnumber
required

Subtotal amount before taxes

taxnumber
required

Tax amount applied to the invoice

totalnumber
required

Total amount including taxes

currencystring
required

Currency code (ISO 4217)

billingPeriodobject
required

Billing period covered by this invoice

planIdstring
required

Subscription plan identifier