In a Terminal API integration with cloud communications, terminals establish a WebSocket connection to access Terminal API. If the terminal is connected to your network, for example to the Wi-Fi network, this does not mean the terminal can establish a WebSocket connection. Adyen needs to enable this feature for your terminals. When WebSockets are enabled, you can verify in real time whether terminals have a live cloud connection.
You can verify this:
Check if WebSockets are enabled
To verify if Adyen has enabled establishing a WebSocket connection between the terminal and Adyen:
-
In your Customer Area go to Devices > Device list.
-
Check the WebSocket column: a minus sign () indicates WebSockets are disabled for the terminal.
If the WebSocket column is not shown, select the settings icon and select the column.
-
Contact our Support Team if you want to enable WebSockets for terminals that currently have that setting disabled.
Check the cloud connection using an API request
You can check the cloud connection status of your payment devices using the Cloud device API Cloud device API. This allows you to:
- Check if a specific device has a cloud connection.
- Get a list of devices that have a cloud connection.
It is still possible to use the old way of receiving a list of terminals that have a live cloud connection. However, we strongly recommend that you use Cloud device API to check the cloud connection.
Check the cloud connection status of an individual device
You can check if a specific payment device or app installation ID (in an IPP Mobile solution) has an active cloud connection using the /merchants/{merchantAccount}/devices/{deviceId}/status endpoint.
You need to authenticate your Cloud device API requests with an API key that has the Cloud device API role
-
Make a GET status request, specifying the following path parameters.
Parameter Required Description merchantAccount
The unique identifier of your merchant account. deviceId
The unique identifier of the payment device (Format: [device model]-[serial number], for example,P400-123456789) or app installation ID in a Mobile solution (for example,a1bac6bb-2276-44ff-9152-aa75a604b1ca). -
In the response, check the
statusparameter to see if the device is OFFLINE or ONLINE.
Get a list of devices that have a cloud connection
You can retrieve a list of payment devices (or app installation IDs in a Mobile solution) that have an active cloud connection for a specified merchant account. You can optionally filter this list by store.
You need to authenticate your Cloud device API requests with an API key that has the Cloud device API role
-
Make a GET connectedDevices request, specifying:
- As a path parameter:
Parameter Required Description merchantAccount
The unique identifier of your merchant account. - As a query parameter:
Parameter Required Description storeThe store ID belonging to the specified merchant account. -
You receive a response with an array of device IDs for all devices that are associated with the specified merchant account or store and have an active cloud connection. Offline devices are not included.
Old API request to check cloud connection
This is the old way of checking for the cloud connection using an API request. We strongly recommend that you use the new way of checking the cloud connection.
The /connectedTerminals endpoint returns a list of terminals that have a live cloud connection. You can get this
information for a merchant account, a store, or a specific terminal.
The endpoint to use differs for test and live terminals:
- For test terminals:
https://terminal-api-test.adyen.com/connectedTerminals - For live terminals:
https://terminal-api-live.adyen.com/connectedTerminals
Authenticate your requests using the same API key that you use for your Terminal API requests.
To verify whether terminals have a live cloud connection to Terminal API:
-
Make a POST request to the test or live
/connectedTerminalsendpoint, specifying:Parameter Required Description merchantAccount
The merchant account that you want to check. storeThe store that you want to check. Must belong to the specified merchantAccount.uniqueTerminalIdThe POIID of the terminal that you want to check, in the format [device model]-[serial number]. Must belong to the specified merchantAccountHere are some example requests:
-
You receive a response with:
uniqueTerminalIds: an array with the POIIDs of the terminals that have a live cloud connection. If you checked a specific terminal, the sameuniqueTerminalIdfrom the request is returned.
If the
uniqueTerminalIdsarray from the response is empty, this can indicate:- No terminal found with a live cloud connection.
- WebSockets are not enabled.
Check the cloud connection on the terminal
To verify on the physical terminal whether it has a live cloud connection to Terminal API, run a Terminal API connection test:
- Check the icons in the top row of the terminal display: there should be a cloud icon.
- Select Settings > Diagnostics.
- Select Terminal API: the items API enabled, WebSocket enabled, and WebSocket connection should all
have a green check mark
.
Restore the cloud connection
If the result from your check indicates the terminal does not have a live cloud connection to Terminal API:
-
Check that WebSockets are enabled.
If disabled, contact our Support Team and ask them to enable WebSockets. -
If you checked remotely, verify that the terminal was not turned off at the time.
-
If the terminal is turned on, restart the terminal.