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

Get started →

Integrating with Customers

How other teams read customer data and react to customer changes without coupling to the customer database.

The Customer domain is the source of truth for who our customers are. Ordering, payments, reviews and support all need customer data at some point — this guide covers the supported ways to get it.

Read customer data on demand

Use Get CustomerQueryv1.0.0Get CustomerQuery to fetch a single customer by their identifier. Ownercustomer-platformSchemaDiagramOpen docs on Customer APIServicev1.0.0Customer APIThe public-facing API for customer profiles. Handles commands to register and update customers, serves customer reads, a...Publishescustomer-registered, customer-updatedSubscribesregister-customer, update-customer +1APIsOpenAPIOwnercustomer-platformDiagramRepositoryOpen docs when you need the current state of a customer at request time (a checkout page, a support screen).

  • The response is the customer’s profile — id, email, name and account status. It never includes credentials.
  • Never query Customer DatabaseContainerv1.0.0Customer DatabasePostgreSQL database that is the system of record for all customer profile data.Ownercustomer-platformDiagramOpen docs directly. Its schema is private to Customer Management SystemSystemv1.0.0Customer Management SystemInternal system that is the source of truth for customer profile data. Owns the customer database and publishes customer...Ownercustomer-platformDiagramOpen docs and changes without notice.
  • A 404 means the customer does not exist. A SUSPENDED or CLOSED status is returned as a normal 200 — it is your job to decide what that means for your feature.

React to customer changes

Subscribe to the domain events published by Customer APIServicev1.0.0Customer APIThe public-facing API for customer profiles. Handles commands to register and update customers, serves customer reads, a...Publishescustomer-registered, customer-updatedSubscribesregister-customer, update-customer +1APIsOpenAPIOwnercustomer-platformDiagramRepositoryOpen docs when you need to keep a local copy of customer data in sync or trigger downstream work:

EventWhen it firesWhat it carries
Customer RegisteredEventv1.0.0Customer RegisteredPublished when a new customer has registered. Ownercustomer-platformSchemaDiagramOpen docsA new customer completes registrationThe full customer profile
Customer UpdatedEventv1.0.0Customer UpdatedPublished when an existing customer's profile has changed. Ownercustomer-platformSchemaDiagramOpen docsAny profile attribute changescustomerId plus a changes object containing only the fields that changed

Two things to get right when consuming these:

  1. Consumers must be idempotent. You may see the same event more than once. Use eventId as the idempotency key.
  2. customer-updated is a partial. The changes object only contains what changed. Merge it into your copy — do not treat missing fields as cleared.

The status value on both events is one of ACTIVE, SUSPENDED or CLOSED. Treat unknown values as “do nothing” so we can add states later without breaking you.

React to sign-ins

Customer AuthenticatedEventv1.0.0Customer AuthenticatedPublished when a customer has successfully authenticated. Ownercustomer-platformSchemaDiagramOpen docs is published by OAuth APIServicev1.0.0OAuth APIOAuth-style authentication API for the Identity Provider. Verifies customer credentials and publishes an event when a cu...Publishescustomer-authenticatedSubscribesauthenticate-customerOwnercustomer-platformDiagramRepositoryOpen docs in 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 every time a customer signs in successfully. It carries the customerId, the authentication method (PASSWORD, SSO or MFA) and the source IP. It is intended for auditing, session tracking and fraud signals — not for authorising requests. Verify the access token instead.

Commands are internal

Register CustomerCommandv1.0.0Register CustomerCommand to register a new customer. Ownercustomer-platformSchemaDiagramOpen docs and Update CustomerCommandv1.0.0Update CustomerCommand to update an existing customer's profile. Ownercustomer-platformSchemaDiagramOpen docs are only accepted from the storefront and the support tooling owned by Customer PlatformTeamCustomer PlatformOwns the Customer domain — customer profiles and authentication across Acme Inc.Open docs. Authenticate CustomerCommandv1.0.0Authenticate CustomerCommand to authenticate a customer with their credentials. Ownercustomer-platformSchemaDiagramOpen docs is only called by first-party login flows. If your team needs to change customer data, talk to us in #customer-support rather than calling these directly.

Personal data

Everything in this domain is PII. Keep only the fields you need, respect the retention rules in guides/customer-data-model, and never log an email address or IP address in plain text.