Subscriber
The Subscriber object manages the configuration of notifications for accounts.
It serves as the link between an account and a notification category, storing details about whether that category is enabled for the account and identifying the recipients who should receive notifications for it.
This object contains the following attributes:
id
string
The primary identifier for the notification subscriber.
Example: NTS-1111-2222-1234
href
string
A relative reference to the object.
Example: /notifications/subscribers/NTS-1111-2222-1234
name
string
The name of the category.
Example: Orders
status
enum
Indicates if the category connected to the configuration is enabled or disabled for the account. The possible values are Enabled or Disabled. When disabled, no notifications are sent for the category.
note
string
Notes related to the category.
Example: Disabled because we are not interested in this category.
recipients
recipients
The recipient of the notification email. To receive a notification, the user must be in the recipients.users or be a part of a group within recipients.userGroups.
Example:
{
"recipients": {
"users": [],
"userGroups": []
}
}Example
{
"id": "NTS-1111-2222-1234",
"href": "/notifications/subscribers/NTS-1111-2222-1234",
"status": "Enabled",
"category": {
"id": "NTC-1234-9876",
"href": "/v1/notifications/categories/NTC-1234-9876",
"name": "Orders",
"shortDescription": "Includes updates about order confirmations, order status updates, and related communications."
},
"account": {
"id": "AC-1111-2222",
"href": "/accounts/accounts/AC-1111-2222",
"type": "Client",
"status": "Active",
"name": "Agroasemex test copy 2",
"icon": "/v1/accounts/accounts/AC-1111-2222/icon"
},
"recipients": {
"users": [
{
"id": "USR-0000-0001",
"href": "/accounts/users/USR-0000-0001",
"name": "Will Smith"
}
],
"userGroups": [
{
"id": "UGR-2459-0365",
"href": "/accounts/user-groups/UGR-2459-0365",
"name": "Administrators",
"description": "Manages administrative tasks and resources within an organization.",
"isDefault": true
}
]
},
"audit": {
"created": {
"at": "2023-12-15T10:17:11.179Z",
"by": {
"id": "USR-0000-0001",
"href": "/accounts/users/USR-0000-0001",
"name": "Will Smith"
}
},
"updated": {
"at": "2023-12-15T10:17:11.179Z",
"by": {
"id": "USR-0000-0001",
"href": "/accounts/users/USR-0000-0001",
"name": "Will Smith"
}
}
}
}Last updated
Was this helpful?