This is a demo catalog. Create one for your own architecture with a single prompt.

Get started →

Account status lifecycle

What ACTIVE, SUSPENDED and CLOSED mean, who can move a customer between them, and how each state should be treated downstream.

Every customer profile carries a status. It is a small enum, but almost every downstream feature has to make a decision based on it, so the rules are written down here.

The states

StatusMeaningCan sign in?Can place orders?
ACTIVEThe account is in good standingYesYes
SUSPENDEDTemporarily blocked — usually fraud review or a payment disputeNoNo
CLOSEDThe customer has left or the account was terminatedNoNo

Transitions

  • A customer is always created as ACTIVE by Register CustomerCommandv1.0.0Register CustomerCommand to register a new customer. Ownercustomer-platformSchemaDiagramOpen docs.
  • Only Update CustomerCommandv1.0.0Update CustomerCommand to update an existing customer's profile. Ownercustomer-platformSchemaDiagramOpen docs changes the status, and only the support tooling owned by Customer PlatformTeamCustomer PlatformOwns the Customer domain — customer profiles and authentication across Acme Inc.Open docs is allowed to send it with a status field. Storefront profile edits cannot change status.
  • ACTIVE ↔ SUSPENDED is reversible. CLOSED is terminal; a customer who returns registers again and gets a new customerId.
  • Every transition publishes Customer UpdatedEventv1.0.0Customer UpdatedPublished when an existing customer's profile has changed. Ownercustomer-platformSchemaDiagramOpen docs with status inside the changes object. That event is the only signal you should rely on — do not poll Get CustomerQueryv1.0.0Get CustomerQuery to fetch a single customer by their identifier. Ownercustomer-platformSchemaDiagramOpen docs looking for changes.

What downstream teams should do

On SUSPENDED: stop new activity but keep existing state. Do not cancel in-flight orders or delete saved data; the account may be reinstated within hours.

On CLOSED: treat it as the start of a data-removal window. Anything you copied from a Customer RegisteredEventv1.0.0Customer RegisteredPublished when a new customer has registered. Ownercustomer-platformSchemaDiagramOpen docs or Customer UpdatedEventv1.0.0Customer UpdatedPublished when an existing customer's profile has changed. Ownercustomer-platformSchemaDiagramOpen docs event should be deleted or anonymised inside 30 days, unless you have a legal reason to keep it. The customer’s Customer AddressEntityv1.0.0Customer AddressA saved address attached to a customer profile.Ownercustomer-platformOpen docs records are removed by this domain automatically.

On an unknown value: do nothing. We reserve the right to add states, and consumers that fail closed on an unrecognised status have caused incidents before.

Status and authentication

The Identity ProviderSystemv1.0.0Identity ProviderThe identity system that authenticates customers. It is the source of truth for credentials and login, verifies sign-in ...Ownercustomer-platformDiagramOpen docs checks the account status before issuing a token, so a SUSPENDED or CLOSED customer will fail Authenticate CustomerCommandv1.0.0Authenticate CustomerCommand to authenticate a customer with their credentials. Ownercustomer-platformSchemaDiagramOpen docs with a 401 and no Customer AuthenticatedEventv1.0.0Customer AuthenticatedPublished when a customer has successfully authenticated. Ownercustomer-platformSchemaDiagramOpen docs will be published. There is a short propagation delay between the status change in Customer DatabaseContainerv1.0.0Customer DatabasePostgreSQL database that is the system of record for all customer profile data.Ownercustomer-platformDiagramOpen docs and the identity side seeing it — see runbooks/customer-events-lag if that delay grows.