- Fetching Customer Notifications: Retrieve a list of important updates and present them in a user-friendly format, with key details such as titles, messages, and their read status.
- Managing Notifications with Pagination: When dealing with a large number of notifications, pagination helps break them down into easily navigable chunks, making it easier for users to stay on top of their updates.
- Customizing Notifications: Tailor the experience by offering language options and adjusting the design for better accessibility and engagement.
- Marking Notifications as Read: Allow customers to mark notifications as read, ensuring they can easily keep track of what’s new and what they’ve already seen.
1️⃣ Step 1: Fetch Customer Notifications
To fetch the customer notifications, use the Get Customer Notifications API. This will return a list of notifications for the customer. Response Body:- Render notifications in a list format with the notification title and body.
- Include the notification icon (optional) for visual appeal.
- Display whether the notification has been read or not.

Customizing and Navigating Notifications
Pagination in Customer Notifications
If your application involves displaying a large number of notifications, you can take advantage of pagination to break the notifications into manageable chunks. In the response, you’ll see two useful attributes to help with pagination:- count: The number of notifications returned in the current response (this corresponds to the number of items on the current page).
- hasMore: A boolean that indicates if there are more notifications that can be fetched.
- On the first page, you might show notifications 1–10.
- If there are more notifications, you can show a “Next” button to fetch the next page (using
hasMore). - If you’re on the last page, you can show a “Previous” button to go back.
Customizing Notifications by Language
By default, notifications are returned in the system’s default language, indicated by the lang attribute in the API response. However, if your customers want to see notifications in a different language (e.g., French or Spanish), you can provide them the option to do so. To fetch notifications in a different language, pass the desired language code as a query parameter in your request. Examples:- English:
lang=en - Spanish:
lang=es
2️⃣ Step 2: Mark Notifications as Read
When the customer views their notifications, you might want to mark them as read. This can be done through the Mark Notifications as Read API. You’ll need to pass thenotificationId for each notification that you want to mark as read.
Request Body:
- Once the notification is marked as read, update its status visually (e.g., changing the color or icon) to reflect that it’s been read.