← Back to Docs

Recipe: Subscription billing code catalog

Map every billing event to a stable, auditable code. Use this catalog to keep your payment integrations, analytics, and support tooling in sync.

Code taxonomy

CodeEventRetry
SUB_NEWInitial subscription createdNo
SUB_RENEWRecurring charge succeededNo
SUB_FAILPayment failure (any reason)Yes
SUB_CANCELVoluntary cancellationNo
SUB_UPGRADEPlan upgrade mid-cycleNo
SUB_DOWNGRADEPlan downgrade (effective next cycle)No

Integration notes

  • Pass the code as billing_code in every webhook payload.
  • Retryable events use exponential backoff with a 24-hour ceiling.
  • Never derive the code from the payment provider's raw status — always map through this catalog.
Last updated: 2026-05-26 • Meridian billing v2.1