Fetches a list of notifications
GET/v1/notifications
Retrieves a paginated list of notifications based on the provided query parameters. Each notification includes details such as the notification type, associated organization, and status.
Request
Query Parameters
The number of notifications to return per page.
The page number to retrieve.
The sorting order of the notifications. Supported values are created_at
, -created_at
, id
, -id
, name
, -name
, ignored_at
, -ignored_at
, resolved_at
, -resolved_at
.
Comma-separated list of fields to include in the response.
Filter notifications by fields.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object[]
Unique identifier for the Notification object in string format.
Default value: notification
Type of object.
attributes object
Notification attributes.
Unique identifier for the Notification object.
Unique identifier for the Organization object.
Unique name for the type of notification.
Notification data used to capture the extra notification details different for each notification type or name.
Date and time when the notification was created.
Date and time when the notification was ignored. It is null if the notification is not ignored.
Date and time when the notification was resolved. It is null if the notification is not resolved.
Name of the organization
Name of the notification in title case.
State of the notification. It can be 'Pending', 'Ignored', or 'Resolved'. A notification is in 'Pending' state when it is created. It is in 'Ignored' state when resolved_at is null. It is in 'Resolved' state when resolved_at is not null.
Formatted created_at date and time in the organization's timezone.
Issue details in HTML format.
Issue details in HTML format.
meta object
pagination object
The index of the current page.
The index of the next page. This property is only included when there is a next page available.
The index of the last page. This property is only included when there is a next page available.
The total number of objects.
links object
URL to the object or collection of objects.
URL to the current page of objects. This property is only returned when fetching a collection of objects.
URL to the next page of notifications. This property is only returned when fetching a collection of objects a next page is available.
URL to the last page of notifications. This property is only returned when fetching a collection of objects a next page is available.
{
"data": [
{
"id": "1",
"type": "notification",
"attributes": {
"id": 1,
"organization_id": 1,
"name": "mapping_required",
"data": {
"line_item": "gross_sales",
"jeti_label": "Gross Sales"
},
"created_at": "2024-06-06T13:47:41.491Z",
"ignored_at": "2024-06-06T13:47:41.491Z",
"resolved_at": "2024-06-06T13:47:41.491Z",
"organization_name": "string",
"type": "Mapping Required",
"state": "Pending",
"formatted_created_at": "2024-06-06 09:47:41 EDT",
"issue_details": "<span>Stripe Balance is not mapped</span>",
"resolve_actions": "<p>Reconnect the connection</p>"
}
}
],
"meta": {
"pagination": {
"current": 1,
"next": 2,
"last": 5,
"records": 100
}
},
"links": {
"self": "https://api.bookkeep.com/v1/notifications",
"current": "https://api.bookkeep.com/v1/notifications?page[number]=1&page[size]=10",
"next": "string",
"last": "string"
}
}