# Notification

## <mark style="color:yellow;">Authentication</mark>

The Partner Supply API uses the HTTP basic authentication scheme. This means you must include an Authorization header in each request, like so:

> `/Authorization: Basic {Authorization String}`

{% hint style="info" %}
Replace {Authorization String} with the API key given by STAAH
{% endhint %}

## <mark style="color:yellow;">Notification API (Airbnb)</mark>

### <mark style="color:yellow;">Endpoint</mark>

<mark style="color:green;background-color:green;">**`POST`**</mark>&#x20;

<div align="left"><figure><img src="https://958347541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9bn2UcBkeqtqixkl5eF%2Fuploads%2FHpyoT0sTR5VA3RkkSOl8%2FSandbox%20image.png?alt=media&#x26;token=45811e1e-b22d-413a-a355-32135a85258e" alt="" width="56"><figcaption></figcaption></figure></div>

{% code overflow="wrap" %}
```url
https://connect-sandbox.su-api.com/SUAPI/jservice/notificationAB
```
{% endcode %}

***

#### <mark style="color:yellow;">Attributes</mark>

`hotelid` <mark style="color:orange;">**string (Required)**</mark>

Unique identifier for the hotel.

***

### <mark style="color:yellow;">**Sample Request**</mark>

```json
{
    "hotelid": "AWSTEST"
}
```

***

### <mark style="color:yellow;">Response</mark>

<mark style="color:green;">**Sample Success Response**</mark>

```json
[
    {
        "status": "Success",
        "data": {
            "541047223": [
                {
                    "notification_id": "QUREX0hPU1RfUEFZT1VUX0lORk86MzgzYTJmZTktYWRhNC0zY2VhLTk3MmYtMDZkMDA3OWVhMTU4",
                    "notification_type": "ADD_HOST_PAYOUT_INFO",
                    "title": "Add a payout method",
                    "subtitle": "Required to get paid",
                    "cta_url": "https://www.airbnb.com/account-settings/payments/payout-methods"
                }
            ]
        }
    },
    {
        "status": "Fail",
        "message": "Please login to continue.",
        "data": {
            "541047224": []
        }
    }
]
```

***

<mark style="color:red;">**Error**</mark>

```json
{
    "Status": "Fail",
    "Errors": [
        {
            "Code": "400",
            "ShortText": "Invalid HotelCode (AWSTEST)"
        }
    ]
}
```

***

<mark style="color:red;">**Fail**</mark>

```json
{
    "Status": "Fail",
    "Errors": [
        {
            "Code": "400",
            "ShortText": "Invalid HotelCode (AWSTEST)"
        }
    ]
}

```
