command

Delete Product

Command to remove a product from the catalog.

Command
DELETE/products/{productId}

Overview

DeleteProduct 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 removes a product from the Product DatabaseProduct DatabaseContainerv1.0.0PostgreSQL database that is the system of record for all product data.MapView docs and, on success, publishes a Product DeletedProduct DeletedEventv1.0.0Published when a product has been removed from the catalog. Ownerproduct-platformSchemaMapView docs event so downstream systems can clean up.

Architecture diagram

Schema

Event-driven architecture documentation: Acme Inc

JSON Schema

2 properties

Command to remove a product from the catalog

productIdstring<uuid>
required

Unique identifier of the product to delete

reasonstring

Optional reason the product is being removed

Allowed values: DISCONTINUED DUPLICATE MERCHANT_REQUEST OTHER