  1. [    Home ](/)
2. [Integrations](/integrations)
3. Order Events Stream
 
  Apache Kafka stream  

# Order Events Stream

 

  Overview  Topics 6   Messages 2  Documentation Connection 

 Every order state change on the commerce platform is published to this Kafka stream within milliseconds. Consumers use it to drive fulfilment, analytics, fraud screening, and customer notifications without polling. The attached AsyncAPI document describes each channel and message; the marketplace renders channels, message schemas, and generated sample payloads.



 

  Service type Apache Kafka stream 

  Tags kafka events orders 

  ### Topics

 `orders.created` `orders.paid` `orders.shipped` `orders.cancelled` 

###  Order Events AsyncAPI 2.6.0 · v1.2.0 

Kafka stream of order lifecycle events published by the commerce platform.

- `production` kafka-broker-1.example.com:9092 kafka
 
   orders/created Emitted whenever a new order is placed.

  subscribe  Receive new-order events. `OrderCreated`  

  

    orders/cancelled Emitted when an order is cancelled by the customer or by ops.

  subscribe  Receive order-cancellation events. `OrderCancelled`  

  

  

   message OrderCreated application/json 

A new order was placed.

   FieldTypeRequiredDescription    `orderId` `string` yes Unique order identifier.   `amount` `number` yes Order total in minor units.   `currency` `string` no ISO 4217 currency code.   `items` `array<object>` no Ordered line items.    Sample payload Example message — placeholder values 

 ```
{
    "orderId": "string",
    "amount": 0,
    "currency": "string",
    "items": [
        {}
    ]
}
```

 

 

 message OrderCancelled application/json 

An existing order was cancelled.

   FieldTypeRequiredDescription    `orderId` `string` yes Unique order identifier.   `reason` `string` no Free-text cancellation reason.    Sample payload Example message — placeholder values 

 ```
{
    "orderId": "string",
    "reason": "string"
}
```

 

 

  Request consumer-group credentials from the platform team, then subscribe to the channels listed on the Channels tab. Messages are JSON with a schema version header; consumers must tolerate unknown fields.



 

    Brokers `kafka-broker-1.example.com:9092`  
`kafka-broker-2.example.com:9092` 

 ### Specification files

- [ YAML order-events.asyncapi.yaml ](/sites/default/files/service-specs/demo-order-events-kafka/order-events.asyncapi.yaml)