This documentation provides a reference to the sdk.admin.notification
set of methods used to send requests to Medusa's Admin API routes.
This method retrieves a notification's details. It sends a request to the Get Notification API route.
To retrieve a notification by its ID:
To specify the fields and relations to retrieve:
Learn more about the fields
property in the API reference.
id
stringPromise
Promise<AdminNotificationResponse>This method retrieves a paginated list of notifications. It sends a request to the List Notifications API route.
To retrieve the list of notifications:
To configure the pagination, pass the limit
and offset
query parameters.
For example, to retrieve only 10 items and skip 10 items:
Using the fields
query parameter, you can specify the fields and relations to retrieve
in each notification:
Learn more about the fields
property in the API reference.
Promise
Promise<AdminNotificationListResponse>