Acknowledge basket deletion completedv1.0.0 · JSON Schema
Reports Finance's successful basket-cleanup outcome to Order API without changing the Order's business status.
1. Record Successful Post-Checkout Basket Cleanup
After Basket API emits BasketDeletedCompleteIntegrationEvent, Finance’s OrderOrchestrator publishes DeleteBasketCompleteCommand to Ordering API to log cleanup completion.
Payload details
id: UUIDv7 generated byIntegrationEvent(Guid.CreateVersion7()).creationDate: UTC ISO 8601 timestamp (DateTime.UtcNow).orderId: UUID of the order whose basket cleanup succeeded (Kafka partition key).totalMoney: Non-negative order total (decimal).
Example payload
{ "id": "01960a1b-8a01-7b00-8a9b-0c1d2e3f4f01", "creationDate": "2026-11-25T16:15:01Z", "orderId": "01960a1b-3c4d-7e00-8a9b-0c1d2e3f4a99", "totalMoney": 59.98}Using this example
Ordering API logs the completion event for operational visibility and leaves Order.Status unchanged.
using BookWorm.Chassis.EventBus;using BookWorm.Contracts;using Wolverine;using Wolverine.Attributes;
// Integration command contract (BookWorm.Contracts)[IntegrationMessageOwner(ServiceName = Services.Finance, TopicName = "delete-basket-complete")][MessageIdentity("BookWorm.Contracts.DeleteBasketCompleteCommand")]public sealed record DeleteBasketCompleteCommand(Guid OrderId, decimal TotalMoney) : IntegrationEvent;
// 1. Publishing from Finance Durable Functions activity via Wolverine IMessageBusawait bus.PublishAsync( new DeleteBasketCompleteCommand( Guid.Parse("01960a1b-3c4d-7e00-8a9b-0c1d2e3f4a99"), 59.98m ));
// 2. Consuming in Ordering API via Wolverineinternal sealed class DeleteBasketCompleteCommandHandler( ILogger<DeleteBasketCompleteCommandHandler> logger){ [WolverineHandler] public Task Handle(DeleteBasketCompleteCommand command, CancellationToken cancellationToken) { logger.LogInformation( "Basket deletion completed for Order {OrderId}, Amount: {TotalMoney}", command.OrderId, command.TotalMoney ); return Task.CompletedTask; }}1{
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "title": "DeleteBasketCompleteCommand",
4 "type": "object",
5 "additionalProperties": false,
6 "required": ["id", "creationDate", "orderId", "totalMoney"],
7 "properties": {
8 "id": {
9 "type": "string",
10 "format": "uuid",
11 "description": "Unique identifier assigned to the integration message."
12 },
13 "creationDate": {
14 "type": "string",
15 "format": "date-time",
16 "description": "UTC timestamp when the integration message was created."
17 },
18 "orderId": {
19 "type": "string",
20 "format": "uuid",
21 "description": "Identifier of the Order whose basket cleanup completed."
22 },
23 "totalMoney": {
24 "type": "number",
25 "format": "double",
26 "description": "Total purchase amount associated with the Order."
27 }
28 }
29}
30