Acknowledge basket deletion completed
Reports Finance's successful basket-cleanup outcome to Order API without changing the Order's business status.
DeleteBasketCompleteCommand (v1.0.0) is an asynchronous Kafka integration command published by Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket
cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs to inform Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle,
creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs that post-checkout basket cleanup succeeded. Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle,
creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs logs the outcome for operational visibility without modifying the order’s business status.
Overview
| Property | Value |
|---|---|
| Bounded Context | Ordering |
| Producer | Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs |
| Consumer(s) | Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs |
| Protocol / Format | Kafka + CloudEvents JSON (camelCase payload) |
| Channel / Topic | Successful Basket Cleanup Command ChannelChannelv1.0.0Successful Basket Cleanup Command ChannelKafka topic owned by the commerce-fulfillment-team carrying Finance's successful basket-cleanup command consumed by Orde...Ownercommerce-fulfillment-teamOpen docs |
| Dead-Letter Channel | Ordering Dead Letter QueueChannelv1.0.0Ordering Dead Letter QueueKafka dead-letter topic owned by the platform-engineering-team that captures basket-cleanup outcome commands that Order ...Ownerplatform-engineering-teamOpen docs |
| Partition Key | OrderId |
| Delivery / Idempotency Guarantee | At-least-once delivery; consumer is side-effect-free (structured logging only) |
DeleteBasketCompleteCommand is distinct from Basket deletion completedEventv1.0.0Basket deletion completedIndicates that Basket successfully deleted the submitted basket during
checkout cleanup.
Ownercommerce-fulfillment-teamSchemaDiagramOpen docs. Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets,
Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs publishes BasketDeletedCompleteIntegrationEvent to Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket
cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs, which then publishes DeleteBasketCompleteCommand to Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle,
creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs.
Payload Fields & Envelope
Command Payload
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string (uuid) | Yes | UUIDv7 | Unique identifier assigned to the integration message |
creationDate | string (date-time) | Yes | ISO 8601 UTC timestamp | UTC timestamp when the command was created |
orderId | string (uuid) | Yes | Valid UUID; Kafka partition key; PII-redacted in logs | Identifier of the order whose basket cleanup succeeded |
totalMoney | number | Yes | Non-negative monetary amount | Total purchase amount associated with the order |
Delivery Guarantees & Error Handling
| Condition | System Behavior | Recovery / Compensation |
|---|---|---|
| Duplicate delivery | Consumer logs the message again with no database or status side effects | Naturally idempotent (no state mutation) |
| Activity publish failure in producer | Durable orchestration retries up to 3 times (5s initial delay, 2.0 backoff) | Runs LIFO saga compensations if all retries fail |
| Deserialization or processing failure | Retried with cooldown (50ms, 250ms, 1s with full jitter) | Exhausted messages route to Ordering Dead Letter QueueChannelv1.0.0Ordering Dead Letter QueueKafka dead-letter topic owned by the platform-engineering-team that captures basket-cleanup outcome commands that Order ...Ownerplatform-engineering-teamOpen docs |
Related Documentation
- Order APIServicev1.0.0Order APIAuthenticated Ordering service for Buyer profiles and the Order lifecycle, creating Orders from baskets, snapshotting pr...PublishesGetBasketGrpc, GetBookGrpc +5SubscribesCreateOrder, CompleteOrder +11APIsOpenAPI, AsyncAPI, Carrier Service LevelsOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs — Consuming service and Kafka setup.
- Order OrchestrationServicev1.0.0Order OrchestrationMessage-driven Finance workflow service that coordinates post-checkout basket cleanup and order notifications using Dura...PublishesPlaceOrderCommand, DeleteBasketCompleteCommand +3SubscribesUserCheckedOutIntegrationEvent, OrderStatusChangedToCompleteIntegrationEvent +3APIsAsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs — Producing orchestration service.
- Successful Basket Cleanup Command ChannelChannelv1.0.0Successful Basket Cleanup Command ChannelKafka topic owned by the commerce-fulfillment-team carrying Finance's successful basket-cleanup command consumed by Orde...Ownercommerce-fulfillment-teamOpen docs — Kafka topic specification.
- Ordering Dead Letter QueueChannelv1.0.0Ordering Dead Letter QueueKafka dead-letter topic owned by the platform-engineering-team that captures basket-cleanup outcome commands that Order ...Ownerplatform-engineering-teamOpen docs — Dead-letter queue for failed Ordering consumers.
- Handle basket deletion failedCommandv1.0.0Handle basket deletion failedReports Finance's failed basket-cleanup outcome so Order API can soft-delete the affected Order. Ownercommerce-fulfillment-teamSchemaDiagramOpen docs — Companion compensation command that soft-deletes the order.
- Basket deletion completedEventv1.0.0Basket deletion completedIndicates that Basket successfully deleted the submitted basket during checkout cleanup. Ownercommerce-fulfillment-teamSchemaDiagramOpen docs — Upstream event from Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs.
Acknowledge basket deletion completed schema
not allowedUnique identifier assigned to the integration message.
UTC timestamp when the integration message was created.
Identifier of the Order whose basket cleanup completed.
Total purchase amount associated with the Order.