Managing notifications
The Connectivity Notifications Service (CNS) enables you to receive different types of notifications.
This topic explains the following notification types:
- Common notification metadata
- Updates to payout details
- Updates to payout method details
- Updates to virtual credit card details
- Updates to bank transfer details
- Updates to the VCC balance
- Updates to VCC fees
Required connection types
You need to be connected with the corresponding connection type related to the notifications you are interested in. The following are the list of supported notification types and the corresponding connection types that you need to be connected with:
Notification type | Connection type |
---|---|
VCC_BALANCE | Reservations |
VIRTUAL_CREDIT_CARD_UPDATE | Reservations |
PAYOUT_UPDATE | Reservations |
BANK_TRANSFER_UPDATE | Reservations |
PAYOUT_METHOD_UPDATE | Reservations |
VCC_FEES_PAYOUT | Reservations |
Common notification metadata
Irrespective of the notification types, the following elements are common to all the notifications:
Element | Description | Type | Notes |
---|---|---|---|
metadata | Contains the message metadata. | object | - |
> uuid | Specifies the notification's unique identifier (UUID). | string | Useful when contacting Connectivity Support Executives to inquire about a given message. |
> type | Specifies the message type. | enumerated string | Possible values: PAYOUT_UPDATE , PAYOUT_METHOD_UPDATE , VIRTUAL_CREDIT_CARD_UPDATE , BANK_TRANSFER_UPDATE ,VCC_BALANCE , VCC_FEES_PAYOUT . |
> payloadVersion | Specifies the payload version | string | Current version: 1.0. |
Updates to payout details | PAYOUT_UPDATE
CNS pushes these notifications when there are updates to payout details, such as changes in:
- Total payout
- Commission and charges
The notification message includes property and reservation identifiers. To get all the updates, query the Get payout details endpoint with these identifiers.
Notification message body
The following table describes the elements you can see in the notification payload:
Element | Description | Type | Notes |
---|---|---|---|
metadata | Contains the message metadata. | object | - |
> uuid | Specifies the notification's unique identifier (UUID). | string | Useful when contacting Connectivity Support Executives to inquire about a given message. |
> type | Specifies the message type. | enumerated string | Possible value: PAYOUT_UPDATE |
> payloadVersion | Specifies the payload version | string | Current version: 1.0. |
payload | Contains the payload body. | object | - |
> timestamp | Specifies the timestamp in UTC timezone when the notification was triggered. | datetime | Uses ISO-8601 format. |
> propertyId | Specifies the property ID that the reservation belongs to. | string | |
> reservationId | Specifies the reservation ID where the payout changes apply. | string |
Example payload
The following is a notification payload example:
{
"metadata": {
"uuid": "FC70575E-ED0E-11EE-B5FA-B675273ACEB0",
"type": "PAYOUT_UPDATE",
"payloadVersion": "1.0"
},
"payload": {
"timestamp": "2023-12-10T10:01:322Z",
"propertyId": 10345,
"reservationId": 432647264
}
}
Updates to payout method details | PAYOUT_METHOD_UPDATE
CNS pushes these notifications when there is an update to the payout method. For example, when the property has successfully changed the payout method from virtual credit card to Bank transfer or vice versa.
The notification message includes property and reservation identifiers. To get all the updates, query the Get payout details endpoint with these identifiers.
Notification message body
The following table describes the elements you can see in the notification payload:
Element | Description | Type | Notes |
---|---|---|---|
metadata | Contains the message metadata. | object | - |
> uuid | Specifies the notification's unique identifier (UUID). | string | Useful when contacting Connectivity Support Executives to inquire about a given message. |
> type | Specifies the message type. | enumerated string | Possible value: PAYOUT_METHOD_UPDATE |
> payloadVersion | Specifies the payload version | string | Current version: 1.0. |
payload | Contains the payload body. | object | - |
> timestamp | Specifies the timestamp in UTC timezone when the notification was triggered. | datetime | Uses ISO-8601 format. |
> propertyId | Specifies the property ID that the reservation belongs to. | string | |
> reservationId | Specifies the reservation ID where the payout changes apply. | string |
Example payload
The following is a notification payload example:
{
"metadata": {
"uuid": "FC70575E-ED0E-11EE-B5FA-B675273ACEB0",
"type": "PAYOUT_METHOD_UPDATE",
"payloadVersion": "1.0"
},
"payload": {
"timestamp": "2023-12-10T10:01:322Z",
"propertyId": 10345,
"reservationId": 432647264
}
}
Updates to virtual credit card details | VIRTUAL_CREDIT_CARD_UPDATE
CNS pushes these notifications when there is an update to the virtual credit card details. For example, Notification service can push a notification to your endpoint when there is an update to the current balance or card status.
The notification message includes property, reservation and VCC identifiers. To get all the updates, query the Get VCC payout details endpoint with these identifiers.
Notification message body
The following table describes the elements you can see in the notification payload:
Element | Description | Type | Notes |
---|---|---|---|
metadata | Contains the message metadata. | object | - |
> uuid | Specifies the notification's unique identifier (UUID). | string | Useful when contacting Connectivity Support Executives to inquire about a given message. |
> type | Specifies the message type. | enumerated string | Possible value: VIRTUAL_CREDIT_CARD_UPDATE |
> payloadVersion | Specifies the payload version | string | Current version: 1.0. |
payload | Contains the payload body. | object | - |
> timestamp | Specifies the timestamp in UTC timezone when the notification was triggered. | datetime | Uses ISO-8601 format. |
> propertyId | Specifies the property ID that the reservation belongs to. | string | |
> reservationId | Specifies the reservation ID where the payout changes apply. | string | |
> vccId | Specifies the unique virtual credit card identifier to which the change applies. | string |
Example payload
The following is a notification payload example:
{
"metadata": {
"uuid": "FC70575E-ED0E-11EE-B5FA-B675273ACEB0",
"type": "VIRTUAL_CREDIT_CARD_UPDATE",
"payloadVersion": "1.0"
},
"payload": {
"timestamp": "2023-12-10T10:01:322Z",
"propertyId": 10345,
"reservationId": 432647264,
"vccId": "FC70575E-ED0E-11EE-B5FA-B675273SHDDBC"
}
}
Updates to bank transfer details | BANK_TRANSFER_UPDATE
CNS pushes these notifications when there is an update to the bank transfer payout details. For example, Notification service can push a notification to your endpoint when there is an update to the bank transfer payout status change.
The notification message includes property and reservation identifiers. To get all the updates, query the Get bank transfer payout details endpoint with these identifiers.
Notification message body
The following table describes the elements you can see in the notification payload:
Element | Description | Type | Notes |
---|---|---|---|
metadata | Contains the message metadata. | object | - |
> uuid | Specifies the notification's unique identifier (UUID). | string | Useful when contacting Connectivity Support Executives to inquire about a given message. |
> type | Specifies the message type. | enumerated string | Possible value: BANK_TRANSFER_UPDATE |
> payloadVersion | Specifies the payload version | string | Current version: 1.0. |
payload | Contains the payload body. | object | - |
> timestamp | Specifies the timestamp in UTC timezone when the notification was triggered. | datetime | Uses ISO-8601 format. |
> propertyId | Specifies the property ID that the reservation belongs to. | string | |
> reservationId | Specifies the reservation ID where the payout changes apply. | string |
Example payload
The following is a notification payload example:
{
"metadata": {
"uuid": "FC70575E-ED0E-11EE-B5FA-B675273ACEB0",
"type": "BANK_TRANSFER_UPDATE",
"payloadVersion": "1.0"
},
"payload": {
"timestamp": "2023-12-10T10:01:322Z",
"propertyId": 10345,
"reservationId": 432647264
}
}
Updates to VCC balance | VCC_BALANCE
CNS pushes these notifications when there is an update to the VCC balance.
Notification message body
The following table describes the elements you can see in the notification payload:
Element | Description | Type | Notes |
---|---|---|---|
metadata | Contains the message metadata. | object | - |
> uuid | Specifies the notification's unique identifier (UUID). | string | Useful when contacting Connectivity Support Executives to inquire about a given message. |
> type | Specifies the message type. | enumerated string | Possible value: VCC_BALANCE |
> payloadVersion | Specifies the payload version | string | Current version: 1.0. |
payload | Contains the payload body. | object | - |
> updateTimestamp | Specifies the timestamp in UTC timezone when the balance was updated. | datetime | Uses ISO-8601 format. |
> updateReason | Specifies the reason for the update. The VCC gets loaded once per booked room. | enumerated string | Possible values:
|
> currency | Specifies the currency of the VCC balance. | string | |
> propertyId | Specifies the property ID that the reservation belongs to. | string | |
> reservationId | Specifies the reservation ID where the payout changes apply. | string | |
> vccBalanceAmount | Specifies the VCC balance amount. | string |
Example payload
The following is a notification payload example:
{
"metadata": {
"uuid": "FC70575E-ED0E-11EE-B5FA-B675273ACEB0",
"type": "VCC_BALANCE",
"payloadVersion": "1.0"
},
"payload": {
"updateTimestamp": "2023-12-10T10:01:322Z",
"currency": "USD",
"propertyId": 10345,
"reservationId": 432647264,
"vccBalanceAmount": "123.40"
}
}
Updates to VCC fees | VCC_FEES_PAYOUT
CNS pushes these notifications when there is an update to the VCC fees payout for successfully collected no-show/cancellation fees.
Notification message body
The following table describes the elements you can see in the notification payload:
Element | Description | Type | Notes |
---|---|---|---|
metadata | Contains the message metadata. | object | - |
> uuid | Specifies the notification's unique identifier (UUID). | string | Useful when contacting Connectivity Support Executives to inquire about a given message. |
> type | Specifies the message type. | enumerated string | Possible value: VCC_FEES_PAYOUT |
> payloadVersion | Specifies the payload version | string | Current version: 1.0. |
payload | Contains the payload body. | object | - |
> updateTimestamp | Specifies the timestamp in UTC timezone when the balance was updated. | datetime | Uses ISO-8601 format. |
> currency | Specifies the currency of the VCC balance. | string | |
> propertyId | Specifies the property ID that the reservation belongs to. | string | |
> reservationId | Specifies the reservation ID where the payout changes apply. | string | |
> vccBalanceAmount | Specifies the VCC balance amount. | string |
Example payload
The following is a notification payload example:
{
"metadata": {
"uuid": "FC70575E-ED0E-11EE-B5FA-B675273ACEB0",
"type": "VCC_FEES_PAYOUT",
"payloadVersion": "1.0"
},
"payload": {
"updateTimestamp": "2023-12-10T10:01:322Z",
"currency": "USD",
"propertyId": 10345,
"reservationId": 432647264,
"vccBalanceAmount": "123.40"
}
}