Create Product
Command to add a new product to the catalog.
/productsOverview
CreateProduct is handled by the Product APIProduct APIServicev1.0.0The public-facing API for the product catalog. Handles commands to create, update and delete products, serves product re...Subscribescreate-product, update-product +2APIsOpenAPIOwnerproduct-platformMapRepoView docs. It validates the incoming product, writes it to the Product DatabaseProduct DatabaseContainerv1.0.0
PostgreSQL database that is the system of record for all product data.MapView docs, and on success publishes a Product CreatedProduct CreatedEventv1.0.0Published when a new product has been added to the catalog.
Ownerproduct-platformSchemaMapView docs event.
Architecture diagram
Schema
JSON Schema
Command to add a new product to the catalog
Stock keeping unit — must be unique
Display name of the product
1Long-form product description
Price in minor units (e.g. cents)
0ISO 4217 currency code
^[A-Z]{3}$Category the product belongs to
Initial lifecycle status — defaults to DRAFT
DRAFT ACTIVE ARCHIVED