OrderCreatedv2.0.0
Event represents when an Order has been created for a Customer
Details
This event is emitted when a new Order item has been created for a Customer.
It is consumed by the Customer Service to update the Customer record accordingly with the right bookingThreshold.
Consumer / Producer Diagram
Event Example
OrderCreated Schema (json)
{
"version": "0",
"id": "a733aecb-524e-d6f7-db2e-4535589407cd",
"detail-type": "OrderCreated",
"source": "flatsy.service.billing",
"account": "932239071841",
"time": "2023-11-17T09:31:08Z",
"region": "eu-west-3",
"resources": [],
"detail": {
"metadata": {
"application": "larmina",
"service": "flatsy.service.billing",
"actor": "csm",
"actorID": "e309ceff-68a5-4fa4-b147-c4bf3cf62001",
"entity": "Order",
"entityID": "6a667e50-434b-4b1a-b527-9c2f875400a4",
"correlationID": null
},
"data": {
"order": {
"productCode": "rental_viewings_package",
"unit": "5",
"premiumRate": "1.0000",
"discountRate": "1.0000",
"startsAt": "2023-11-17",
"createdBy": "e309ceff-68a5-4fa4-b147-c4bf3cf62001",
"customerId": "622d7286-d1a9-4a5d-abcb-293b67970678"
}
}
}
}
Edit this pageLast updated on 2023/11/23
