command

Remove Item From Cart

Command to remove an item from a shopping cart.

Command
DELETE/carts/{cartId}/items/{productId}

Overview

RemoveItemFromCart is handled by the Cart APICart APIServicev1.0.0The public-facing API for shopping carts. Handles commands to add and remove items and to check out, and publishes an ev...Publishescart-checked-out, calculate-discountSubscribesadd-item-to-cart, remove-item-from-cart +1APIsOpenAPIOwnershopping-platformMapRepoView docs. It removes an item from the cart (or decreases its quantity) and persists the change to the Cart DatabaseCart DatabaseContainerv1.0.0PostgreSQL database that is the system of record for shopping carts and their items.MapView docs.

Architecture diagram

Schema

Event-driven architecture documentation: Acme Inc

JSON Schema

3 properties

Command to remove an item from a shopping cart

cartIdstring<uuid>
required

Unique identifier of the cart

productIdstring<uuid>
required

Identifier of the product to remove

quantityinteger

Number of units to remove. If omitted, removes the item entirely.

Minimum: 1