BookingCreated
v2.0.0

Event represents when a Booking has been created for a Mission

Details

This event is emitted when a Booking item has been scheduled for a Mission.

It is consumed by the Notification Service to notify third parties of the scheduling. It is consumed by the Mission Service to update the Mission record accordingly.

Related Events

Is generally followed by a "ItemBilledWithDefaultOrderToCSM" Notification being generated in the Notification Service through the Dispatch Service.

Consumer / Producer Diagram

Event Example

BookingCreated Schema (json)
{
  "version": "0",
  "id": "676ddc84-11d2-587b-34a3-bb0d7c1ac7f3",
  "detail-type": "BookingCreated",
  "source": "flatsy.service.mission",
  "account": "221760190323",
  "time": "2023-04-13T07:37:58Z",
  "region": "eu-west-3",
  "resources": [],
  "detail": {
    "metadata": {
      "application": "Pro",
      "service": "flatsy.service.mission",
      "actor": "Customer",
      "actorID": "f2bb4633-95ba-4e94-a53a-7986d7150a3d",
      "entity": "Booking",
      "correlationID": null,
      "entityID": "873940cd-76db-77831-b32c-03cda359098a",
      "version": "2.0",
      "requestID": "bdb6b724-fc25-47c1-94d8-8c8504e3f8bc"
    },
    "data": {
      "booking": {
        "id": "873940cd-76db-77831-b32c-03cda359098a",
        "createdAt": "2023-05-01T10:02:54.156Z",
        "startsAt": "2023-05-15T10:00:00Z",
        "durationInMinutes": 90,
        "agent": { 
          "type" : "FLATGUIDE",
          "id" : "ccca4633-95ba-4e94-a53a-7986d7151234"
        },
        "missionId": "ccca4633-95ba-4e94-a53a-7986d7151234"
      }
    }
  }
}
Edit this pageLast updated on 2023/11/3