Order Events Stream
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
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.
-
productionkafka-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
A new order was placed.
| Field | Type | Required | Description |
|---|---|---|---|
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. |
{
"orderId": "string",
"amount": 0,
"currency": "string",
"items": [
{}
]
}
An existing order was cancelled.
| Field | Type | Required | Description |
|---|---|---|---|
orderId |
string |
yes | Unique order identifier. |
reason |
string |
no | Free-text cancellation reason. |
{
"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:9092kafka-broker-2.example.com:9092