Skip to main content
Fires when a new invoice is created in the billing system. Use this event to track billing cycles and invoice generation.

JavaScript

window._upstack('track', 'invoice_created', {
  accountId: 'acct_abc123',
  invoiceId: 'inv_ghi012',
  subscriptionId: 'sub_def456',
  amount: 9900,
  currency: 'USD',
  dueDate: '2026-03-01T00:00:00.000Z'
});

Properties

PropertyTypeRequiredDescription
accountIdstringYesAccount identifier
invoiceIdstringYesInvoice identifier
amountnumberYesInvoice amount in cents
subscriptionIdstringNoSubscription identifier
currencystringNoISO 4217 currency code
dueDatestringNoISO 8601 due date

When to Fire

  • When invoice is generated
  • When billing cycle creates new invoice
  • When Stripe invoice.created webhook fires

Stripe Webhook

Maps to invoice.created.