- [Resource: NotificationSubscription](https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions#NotificationSubscription)
  - [JSON representation](https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions#NotificationSubscription.SCHEMA_REPRESENTATION)
- [NotificationEventType](https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions#NotificationEventType)
- [Methods](https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions#METHODS_SUMMARY)

## Resource: NotificationSubscription

Represents a notification subscription owned by a Merchant account.

See [Decode notifications](https://developers.google.com/merchant/api/guides/accounts/notifications#decode_notifications) for information on how to decode the notification payload and how to interpret its contents.

| JSON representation |
|---|
| ``` { "name": string, "registeredEvent": enum (`https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions#NotificationEventType`), "callBackUri": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "allManagedAccounts": boolean, "targetAccount": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The `name` of the notification configuration. Generated by the Merchant API upon creation of a new `NotificationSubscription`. The `account` represents the merchant ID of the merchant that owns the configuration. Format: `accounts/{account}/notificationsubscriptions/{notificationSubscription}` |
| `registeredEvent` | ``enum (`https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions#NotificationEventType`)`` The event that the merchant wants to be notified about. |
| `callBackUri` | `string` URL to be used to push the notification to the merchant. |
| The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `allManagedAccounts` | `boolean` If this value is true, the requesting account is notified of the specified event for all managed accounts (can be subaccounts or other linked accounts) including newly added accounts on a daily basis. |
| `targetAccount` | `string` The `name` of the account you want to receive notifications for. Format: `accounts/{account}` |
| End of mutually exclusive fields. ||

## NotificationEventType

Represents the event type that the merchant is interested in receiving notifications for.

| Enums ||
|---|---|
| `NOTIFICATION_EVENT_TYPE_UNSPECIFIED` | Notifications event type is unspecified. |
| `PRODUCT_STATUS_CHANGE` | Notification of product status changes, for example when product becomes disapproved. |
| `ACCOUNT_SERVICE_CHANGE` | Notification of account service changes. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions/create` | Creates a notification subscription for a business. |
| ### `https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions/delete` | Deletes a notification subscription for a merchant. |
| ### `https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions/get` | Gets notification subscriptions for an account. |
| ### `https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions/list` | Gets all the notification subscriptions for a merchant. |
| ### `https://developers.google.com/merchant/api/reference/rest/notifications_v1/accounts.notificationsubscriptions/patch` | Updates an existing notification subscription for a merchant. |