This service is responsible for processing orders in our system.
orders/created
topic to receive new ordersorders/status
orders/notifications
Production Kafka Broker
Local Kafka Broker
This topic is used to publish information about new orders.
Sending a new order
Available only on servers:
Accepts the following message:
The main entity describing an order in the system
{
"order_id": "12345",
"customer_id": "user789",
"items": [
{
"product_id": "prod123",
"quantity": 2,
"price": 150000
}
],
"total_amount": 300000,
"created_at": "2024-02-20T15:30:00Z",
"status": "NEW"
}
Used to track the lifecycle of an order
Sending a status update
Available only on servers:
Accepts the following message:
{
"order_id": "string",
"status": "NEW",
"updated_at": "2019-08-24T14:15:22Z",
"comment": "string"
}
This topic is used to publish information about new orders.
Receiving new orders
Available only on servers:
Accepts the following message:
The main entity describing an order in the system
{
"order_id": "12345",
"customer_id": "user789",
"items": [
{
"product_id": "prod123",
"quantity": 2,
"price": 150000
}
],
"total_amount": 300000,
"created_at": "2024-02-20T15:30:00Z",
"status": "NEW"
}
Used to track the lifecycle of an order
Receiving status updates
Available only on servers:
Accepts the following message:
{
"order_id": "string",
"status": "NEW",
"updated_at": "2019-08-24T14:15:22Z",
"comment": "string"
}
The main entity describing an order in the system
Order status update
The main entity describing an order in the system
Order item
Order status update