command

Register Customer

Command to register a new customer.

Command
POST/customers

Overview

RegisterCustomer is handled by the Customer APICustomer APIServicev1.0.0The 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-platformMapRepoView docs. It validates the new customer, writes it to the Customer DatabaseCustomer DatabaseContainerv1.0.0PostgreSQL database that is the system of record for all customer profile data.MapView docs, and on success publishes a Customer RegisteredCustomer RegisteredEventv1.0.0Published when a new customer has registered. Ownercustomer-platformSchemaMapView docs event.

Architecture diagram

Schema

Event-driven architecture documentation: Acme Inc

JSON Schema

3 properties

Command to register a new customer

emailstring<email>
required

Customer's email address — must be unique

namestring

Customer's full name

Min length: 1
passwordstring
required

Initial password for the customer's credentials

Min length: 8