Overview
Notifications inform users about important events, updates, and activities within the platform. Each notification can be linked to a related entity and tracks read/unread status.Create Notification
Request Body
The ID of the user who will receive this notification
The notification type (e.g.,
BOOKING_CONFIRMED, MESSAGE_RECEIVED, REVIEW_POSTED)The notification title
The notification message body
The type of entity this notification relates to (e.g.,
TripBooking, ChatMessage, Review)The ID of the related entity
Whether the notification has been read. Defaults to
false.Timestamp when the notification was created in ISO 8601 format (e.g.,
2026-03-11T14:30:00)Timestamp when the notification was read in ISO 8601 format. Null if unread.
Response
Unique identifier for the notification
The user ID who received this notification
The notification type
The notification title
The notification message body
The type of related entity
The ID of the related entity
Whether the notification has been read
Notification creation timestamp
Timestamp when notification was read (null if unread)
Get All Notifications
Response
Returns an array of notification objects.Get Notification by ID
Path Parameters
The unique identifier of the notification
Response
Update Notification
Path Parameters
The unique identifier of the notification to update
Request Body
The ID of the user who received this notification
The notification type
The notification title
The notification message body
The type of entity this notification relates to
The ID of the related entity
Whether the notification has been read. Set to
true to mark as read.Notification creation timestamp in ISO 8601 format
Timestamp when the notification was read. Set this along with
isRead: true to mark as read.Response
Delete Notification
Path Parameters
The unique identifier of the notification to delete
Response
Returns a success status code (typically 204 No Content) if the deletion was successful.Notification Types
Common notification types include:- BOOKING_CONFIRMED: Trip booking has been confirmed
- BOOKING_CANCELLED: Trip booking has been cancelled
- MESSAGE_RECEIVED: New chat message received
- REVIEW_POSTED: New review posted on a tour or guide
- PAYMENT_RECEIVED: Payment has been processed
- TOUR_REMINDER: Upcoming tour reminder
- PROFILE_UPDATE: Profile information updated
Read Status
Notifications track their read status in two ways:- isRead boolean flag: Quick check if notification has been read
- readAt timestamp: Exact time when notification was marked as read
- Set
isReadtotrue - Set
readAtto the current timestamp
Related Entities
Notifications can be linked to various entity types:- TripBooking: Booking-related notifications
- ChatMessage: Message notifications
- Review: Review-related notifications
- User: User profile notifications
- Tour: Tour-related notifications
relatedEntityType and relatedEntityId to associate notifications with specific entities, enabling users to navigate directly to the relevant content.
Related Endpoints
- Chat Messages - Messages that may trigger notifications
- Trip Bookings - Bookings that generate notifications