# Adjust notifications

> Choose in CNPJá which e-mail notices the organization sends, to which roles and at which levels: quotas, charges, invoices, subscription, members, API keys and exports.

Notifications tell the members of the [organization](https://cnpja.com/en-us/docs/organizations/manage#what-it-is) by e-mail what happens in it: a quota running low, a bank slip issued, a card charge declined, the subscription past due, an API key created. Each notification can be turned on or off and goes to the roles picked; some fire at levels, such as a share of the quota or a few days ahead of a date. Owners and Administrators adjust them under **Settings** > **Notifications**, at the foot of the rail (on a phone, tap **Menu** > **Settings**).

## Who can adjust them

Owner and Administrator. The other roles do not see **Notifications** under **Settings**, but they receive the notifications sent to their role. The full matrix is in [Permissions by role](https://cnpja.com/en-us/docs/organizations/members-and-roles#matrix).

## Adjust a notification

1. Open **Settings** > **Notifications**. Notifications are grouped by area.
2. Turn each one on or off with the switch beside its name.
3. Pick the roles that receive it and, on those with **Levels**, add or remove levels.
4. Click **Save changes**. **Discard** undoes whatever is not saved yet.

A notification that is on needs at least one role, except **Role changed** and **Member removed**, which always tell the member affected, and, if it fires at levels, at least one level: until then, **Save changes** is held and points at the notification left to adjust. Leaving the page with unsaved changes asks first. Each notification changed is recorded in the [Audit log](https://cnpja.com/en-us/docs/organizations/audit-log#logged) as **Notification changed**.

## Who receives them

Each notification goes by e-mail to every member holding one of the roles picked, at the address and in the language of each one's account, set in the [account settings](https://cnpja.com/en-us/docs/account/settings). Any role can receive any notification. The **Recipients** panel shows, role by role, how many members hold it and how many of the notifications that are on it receives.

- Whoever made a change is not notified of it, such as whoever removed a card or created an API key.
- **Role changed** and **Member removed**, when on, also tell the member affected, in an e-mail of their own, whatever roles are picked.
- **Export completed** and **Export failed** go only to whoever requested the export, if their role is among those picked.
- In a deactivated organization, only **Organization deactivated** and the notifications of **Charges**, **Invoices** and **Payment methods** are still sent.

## Levels

Some notifications fire once at each level picked:

- *Percentage:* **Quota level reached** notifies when usage of a quota of the period reaches each percentage of it, and **Overage budget level reached**, when the overage spent this month reaches each percentage of the budget. A quota or a budget raised notifies again.
- *Days before:* **Due date approaching**, **Back to Free approaching** and **Yearly cycle end approaching** notify at each number of days before a bank slip is due, before a past-due subscription goes back to Free and before the cycle of a paid yearly plan ends.

When several levels are reached at once, a single notice is sent: the one of the highest percentage or of the fewest days. Each level notice is also recorded in the [Audit log](https://cnpja.com/en-us/docs/organizations/audit-log#logged), only while the notification is on. A level is a whole number from 1 to 99, and the field of a new level tells the range it takes.

## What can be notified

| Area | Notifications |
| --- | --- |
| **Quotas and overage** | **Quota level reached**, **Quota used up**, **Overage started**, **Overage budget level reached** and **Overage budget used up** |
| **Charges** | **Bank slip issued**, **Due date approaching**, **Charge overdue**, **Card charge failed**, **Charge expired**, **Charge cancelled**, **Payment refunded** and **Payment received** |
| **Invoices** | **Invoice paid**, **Invoice cancelled**, **Tax document authorized** and **Tax document cancelled** |
| **Payment methods** | **Card added**, **Default card set** and **Card removed** |
| **Subscription** | **Subscription activated**, **Subscription activation failed**, **Subscription past due**, **Back to Free approaching**, **Subscription ended**, **Cancellation scheduled**, **Cancellation undone**, **Yearly cycle end approaching**, **Payment method changed**, **Due day changed**, **Tax document issuance changed**, **Overage budget changed** and **Packs scheduled** |
| **Organization** | **Billing details changed** and **Organization deactivated** |
| **Members and invitations** | **Member added**, **Role changed**, **Member removed** and **Member left** |
| **API keys** | **API key created**, **API key revoked** and **Revoked key used** |
| **Exports** | **Export completed** and **Export failed** |

Each notification says on the page when it is sent.

## In the API

Notification settings are not in the public API: they are adjusted only in the app.
