> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://beta-docs.payabli.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://beta-docs.payabli.com/_mcp/server.

# Get notification

GET https://api-sandbox.payabli.com/api/Notification/{nId}

Retrieves a single notification or autogenerated report's details. 

Reference: https://beta-docs.payabli.com/api-reference/notification/get-notification

## Authentication

- `requestToken` header (required) — API Key authentication via header

## Servers

- `https://api-sandbox.payabli.com/api` (Sandbox, default)
- `https://api.payabli.com/api` (Production)

## Request

### Path parameters

- `nId` (string, required) — Notification ID.

## Response

### 200

Success

- `content` (NotificationContent, optional) — Notification content.
- `createdAt` (datetime, optional) — Timestamp of when notification was created.
- `frequency` (enum, optional) — Frequency for notification. For notifications using the *email* ,*sms*, or *web* `method`, the allowed values are: - untilcancelled - one-time For notifications using the *report-email* or *report-web* `method`, the allowed values are: - one-time - daily - weekly - biweekly - monthly - quarterly - semiannually - annually
  - Allowed values: `one-time`, `daily`, `weekly`, `biweekly`, `monthly`, `quarterly`, `semiannually`, `annually`, `untilcancelled`
- `lastUpdated` (datetime, optional) — Timestamp of when notification was last updated.
- `method` (enum, optional) — Method to use to send the notification to the target.
  - Allowed values: `email`, `sms`, `web`, `report-email`, `report-web`
- `notificationId` (long, optional) — The notification's Payabli identifier. This is the ID used to manage the notifcation.
- `ownerId` (string, optional) — ID for the paypoint or organization that owns the notification.
- `ownerName` (string, optional) — Name of entity owner of notification.
- `ownerType` (integer, optional) — Entity owner type. Accepted values: - `0`: Organization/partner - `2`: Paypoint
- `source` (string, optional) — Custom descriptor of source of notification.
- `status` (integer, optional) — Status of notification: - `0`: Inactive - `1`: Active
- `target` (string, optional) — Specify the notification target. For **method**=*email* the expected value is a list of email addresses separated by semicolon. For **method**=*sms* the expected value is a list of phone numbers separated by semicolon. For **method**=*web*. the expected value is a valid and complete URL. Webhooks support only standard HTTP ports: 80, 443, 8080, or 4443.

## Errors

### 400 Bad Request Error

Bad request/ invalid data

- `any`

### 401 Unauthorized Error

Unauthorized request.

- `any`

### 500 Internal Server Error

Internal API Error

- `any`

### 503 Service Unavailable Error

Database connection error

- `isSuccess` (boolean, optional) — Boolean indicating whether the operation was successful. A `true` value indicates success. A `false` value indicates failure.
- `responseData` (map from string to any, optional) — The object containing the response data.
- `responseText` (string, optional) — Response text for operation: 'Success' or 'Declined'.

## Types

### NotificationContent

- `eventType` (enum, optional) — The notification's event name.
  - Allowed values: `ApprovedPayment`, `AuthorizedPayment`, `DeclinedPayment`, `OriginatedPayment`, `SettledPayment`, `FundedPayment`, `VoidedPayment`, `RefundedPayment`, `HoldTransaction`, `ReleasedTransaction`, `HoldBatch`, `ReleasedBatch`, `TransferDisabledCreditFund`, `TransferDisabledDebitFund`, `TransferNotAvailableBalance`, `TransferReturn`, `TransferSuccess`, `TransferSuspended`, `TransferError`, `SendReceipt`, `RecoveredTransaction`, `CreatedApplication`, `SubmittedApplication`, `ActivatedMerchant`, `ReceivedChargeBack`, `ReceivedAchReturn`, `HoldingApplication`, `DeclinedApplication`, `BoardingApplication`, `FraudAlert`, `InvoiceSent`, `InvoicePaid`, `InvoiceCreated`, `BillPaid`, `BillApproved`, `BillDisApproved`, `BillCanceled`, `BillProcessing`, `PayOutFunded`, `PayOutProcessed`, `PayOutCanceled`, `PayOutPaid`, `importFileReceived`, `importFileProcessed`, `importFileError`, `exportFileSent`, `exportFileError`, `Report`, `FailedEmailNotification`, `FailedWebNotification`, `FailedSMSNotification`, `UserPasswordCloseExpire`, `UserPasswordExpired`
- `fileFormat` (enum, optional) — Indicate the format of report file to be generated by the engine. Used for `method` = *report-email* and *report-web*.
  - Allowed values: `json`, `csv`, `xlsx`
- `internalData` (list of KeyValueDuo, optional) — Array of pairs key:value to insert in request body to target in **method** = *web* or *report-web*.
- `reportName` (enum, optional) — The kind report to generate. For [automated reports](/developer-guides/notifications-and-webhooks-overview#automated-reports) only.
  - Allowed values: `Transaction`, `Settlement`, `Boarding`, `Returned`
- `timeZone` (integer, optional) — Timezone, in UTC offset. For example, -5 is Eastern time.
- `transactionId` (string, optional, default: 0) — Used internally to reference the entity or object generating the event.
- `webHeaderParameters` (list of KeyValueDuo, optional) — Array of pairs key:value to insert in header of request to target in **method** = *web* or *report-web*.

### KeyValueDuo

- `key` (string, optional) — Key name.
- `value` (string, optional) — Key value.

## Examples

**Response**

```json
{
  "content": {
    "fileFormat": "csv",
    "reportName": "Returned"
  },
  "createdAt": "2024-02-21T09:16:31Z",
  "frequency": "weekly",
  "lastUpdated": "2024-02-21T09:16:31Z",
  "method": "report-email",
  "notificationId": 1717,
  "ownerId": "123",
  "ownerName": "The Pilgrim Planner",
  "ownerType": 0,
  "status": 1,
  "target": "admin@business.com"
}
```

**SDK Code**

```python Get
import requests

url = "https://api-sandbox.payabli.com/api/Notification/1717"

headers = {"requestToken": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Get
const url = 'https://api-sandbox.payabli.com/api/Notification/1717';
const options = {method: 'GET', headers: {requestToken: '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Get
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api-sandbox.payabli.com/api/Notification/1717"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("requestToken", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Get
require 'uri'
require 'net/http'

url = URI("https://api-sandbox.payabli.com/api/Notification/1717")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["requestToken"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Get
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api-sandbox.payabli.com/api/Notification/1717")
  .header("requestToken", "<apiKey>")
  .asString();
```

```php Get
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api-sandbox.payabli.com/api/Notification/1717', [
  'headers' => [
    'requestToken' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Get
using RestSharp;

var client = new RestClient("https://api-sandbox.payabli.com/api/Notification/1717");
var request = new RestRequest(Method.GET);
request.AddHeader("requestToken", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Get
import Foundation

let headers = ["requestToken": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/Notification/1717")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```