# Flock EventCatalog Schemas List of schemas for events, commands, queries, and services in EventCatalog. ## Events - [Cart Checked Out - cart-checked-out - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/cart-checked-out/1.0.0)} - Published when a customer has checked out their cart. - [Customer Authenticated - customer-authenticated - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/customer-authenticated/1.0.0)} - Published when a customer has successfully authenticated. - [Customer Registered - customer-registered - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/customer-registered/1.0.0)} - Published when a new customer has registered. - [Customer Updated - customer-updated - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/customer-updated/1.0.0)} - Published when an existing customer's profile has changed. - [Discount Calculated - discount-calculated - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/discount-calculated/1.0.0)} - Published when a discount has been calculated for a cart. - [Fraud Check Failed - fraud-check-failed - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/fraud-check-failed/1.0.0)} - Published when a payment fails fraud screening. - [Fraud Check Passed - fraud-check-passed - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/fraud-check-passed/1.0.0)} - Published when a payment passes fraud screening. - [Inventory Reserved - inventory-reserved - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/inventory-reserved/1.0.0)} - Published when stock has been successfully reserved for an order. - [Inventory Unavailable - inventory-unavailable - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/inventory-unavailable/1.0.0)} - Published when stock could not be reserved for an order. - [Order Cancelled - order-cancelled - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/order-cancelled/1.0.0)} - Published when an order has been cancelled. - [Order Completed - order-completed - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/order-completed/1.0.0)} - Published when an order has been fulfilled and completed. - [Order Created - order-created - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/order-created/1.0.0)} - Published when a new order has been created. - [Order Packed - order-packed - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/order-packed/1.0.0)} - Published when an order has been picked and packed in the warehouse. - [Order Ready For Shipping - order-ready-for-shipping - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/order-ready-for-shipping/1.0.0)} - Published when a packed order is ready to be handed to a carrier for shipping. - [Payment Failed - payment-failed - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/payment-failed/1.0.0)} - Published by Stripe when a charge fails. - [Payment Requested - payment-requested - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/payment-requested/1.0.0)} - Published when the Payment Processing System requests a charge from the payment processor. - [Payment Succeeded - payment-succeeded - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/payment-succeeded/1.0.0)} - Published by Stripe when a charge succeeds. - [Product Created - product-created - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/product-created/1.0.0)} - Published when a new product has been added to the catalog. - [Product Deleted - product-deleted - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/product-deleted/1.0.0)} - Published when a product has been removed from the catalog. - [Product Updated - product-updated - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/product-updated/1.0.0)} - Published when an existing product's data has changed. - [Rating Updated - rating-updated - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/rating-updated/1.0.0)} - Published when a product's aggregate rating changes as a result of a newly published review. - [Refund Processed - refund-processed - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/refund-processed/1.0.0)} - Published by Stripe when a refund has been processed. - [Refund Requested - refund-requested - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/refund-requested/1.0.0)} - Published when the Payment Processing System requests a refund from the payment processor. - [Review Flagged - review-flagged - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/review-flagged/1.0.0)} - Published when a published review is flagged and needs to be screened again. - [Review Helpful Voted - review-helpful-voted - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/review-helpful-voted/1.0.0)} - Published when a review's helpful count changes as a result of a customer vote. - [Review Published - review-published - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/review-published/1.0.0)} - Published when a submitted review passes moderation and becomes visible on the storefront. - [Review Rejected - review-rejected - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/review-rejected/1.0.0)} - Published when a submitted review fails moderation (spam, abuse or policy violation) and will not be shown. - [Review Submitted - review-submitted - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/review-submitted/1.0.0)} - Published when a customer submits a review. The review is stored but not yet visible — it awaits moderation. - [Shipment Created - shipment-created - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/shipment-created/1.0.0)} - Published by the carrier when a shipment has been created and dispatched. - [Shipment Delivered - shipment-delivered - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/shipment-delivered/1.0.0)} - Published by the carrier when a shipment has been delivered to the customer. - [Shipment Failed - shipment-failed - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/events/shipment-failed/1.0.0)} - Published by the carrier when a shipment could not be delivered. ## Commands - [Add Item To Cart - add-item-to-cart - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/add-item-to-cart/1.0.0)} - Command to add an item to a shopping cart. - [Authenticate Customer - authenticate-customer - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/authenticate-customer/1.0.0)} - Command to authenticate a customer with their credentials. - [Authorize Payment - authorize-payment - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/authorize-payment/1.0.0)} - Command to authorize payment for the total of a checked-out cart. - [Calculate Discount - calculate-discount - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/calculate-discount/1.0.0)} - Command to calculate the discount that applies to a cart. - [Cancel Order - cancel-order - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/cancel-order/1.0.0)} - Command to cancel an existing order. - [Checkout Cart - checkout-cart - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/checkout-cart/1.0.0)} - Command to check out a shopping cart. - [Create Order - create-order - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/create-order/1.0.0)} - Command to create a new order from a checked-out cart. - [Create Product - create-product - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/create-product/1.0.0)} - Command to add a new product to the catalog. - [Create Shipment - create-shipment - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/create-shipment/1.0.0)} - Command to create a shipment with a carrier for a packed order. - [Delete Product - delete-product - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/delete-product/1.0.0)} - Command to remove a product from the catalog. - [Flag Review - flag-review - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/flag-review/1.0.0)} - Command issued by a customer or moderator to flag a published review for re-moderation. - [Register Customer - register-customer - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/register-customer/1.0.0)} - Command to register a new customer. - [Release Inventory - release-inventory - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/release-inventory/1.0.0)} - Command to release a previously held inventory reservation. - [Remove Item From Cart - remove-item-from-cart - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/remove-item-from-cart/1.0.0)} - Command to remove an item from a shopping cart. - [Reserve Inventory - reserve-inventory - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/reserve-inventory/1.0.0)} - Command to reserve stock for the items in a checked-out cart. - [Submit Review - submit-review - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/submit-review/1.0.0)} - Command issued by a customer to submit a review and rating for a product. - [Update Customer - update-customer - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/update-customer/1.0.0)} - Command to update an existing customer's profile. - [Update Product - update-product - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/update-product/1.0.0)} - Command to update an existing product in the catalog. - [Vote Review Helpful - vote-review-helpful - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/commands/vote-review-helpful/1.0.0)} - Command issued by a customer to mark a published review as helpful (or remove their vote). ## Queries - [Get Customer - get-customer - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/queries/get-customer/1.0.0)} - Query to fetch a single customer by their identifier. - [Get Order - get-order - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/queries/get-order/1.0.0)} - Query to fetch a single order by its identifier. - [Get Product Reviews - get-product-reviews - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/queries/get-product-reviews/1.0.0)} - Query to fetch the published reviews and aggregate rating for a product. - [Get Product - get-product - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/queries/get-product/1.0.0)} - Query to fetch a single product by its identifier. - [Get Stock Level - get-stock-level - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/queries/get-stock-level/1.0.0)} - Query to fetch the current available stock level for a product. - [Search Products - search-products - 1.0.0](http://event-catalog.prod.infra.flockcover.com/api/schemas/queries/search-products/1.0.0)} - Query to search the catalog for products matching a term, with optional filters and pagination. ## Services - [cart-api - 1.0.0 - openapi specification](http://event-catalog.prod.infra.flockcover.com/api/schemas/services/cart-api/1.0.0/openapi) - Specification for The public-facing API for shopping carts. Handles commands to add and remove items and to check out, and publishes an event when a cart is checked out. - [customer-api - 1.0.0 - openapi specification](http://event-catalog.prod.infra.flockcover.com/api/schemas/services/customer-api/1.0.0/openapi) - Specification for The public-facing API for customer profiles. Handles commands to register and update customers, serves customer reads, and publishes customer change events. - [order-service - 1.0.0 - asyncapi specification](http://event-catalog.prod.infra.flockcover.com/api/schemas/services/order-service/1.0.0/asyncapi) - Specification for The system of record for orders. Creates and cancels orders, serves order lookups, and publishes events as orders move through their lifecycle. - [product-api - 1.0.0 - openapi specification](http://event-catalog.prod.infra.flockcover.com/api/schemas/services/product-api/1.0.0/openapi) - Specification for The public-facing API for the product catalog. Handles commands to create, update and delete products, serves product reads, and is the entry point into the Product Catalog System. - [search-api - 1.0.0 - openapi specification](http://event-catalog.prod.infra.flockcover.com/api/schemas/services/search-api/1.0.0/openapi) - Specification for Public-facing API that serves fast, relevant product search to the rest of the business, reading from the search index.