Pinging Terminal Device

Hello There,
Can someone help me understand why I always get the status of the device as “Available”. I turned off the device to check if the status changes to Unavailable but it’s not changing. I am developing a custom POS. I need to ping the device before I send the Total amount to it.

Here is what I have used:

    # Set the request headers
    headers = {
        'Authorization': f'Bearer {SQUARE_ACCESS_TOKEN}',
        'Content-Type': 'application/json',

    # Set the device status URL
    device_status_url = f'{SQUARE_DEVICE_ID}'

    # Send a GET request to check the device status
    response = requests.get(device_status_url, headers=headers)

How long was the device unavailable. Was it just turned off? :slightly_smiling_face:

Yes, for about 5 min. Should it not report if the device has not internet or if it’s turned off?

It definitely should. I haven’t been able to replicate this with my device. Are you able to repeat this consistently? :slightly_smiling_face:

It shows be correct status only after a couple of hours. There ought to be a way to get the device status on a real time basis. Can you suggest me any other way?


Is this only happening with one device? If so what’s the device_id? :slightly_smiling_face:


Are there more devices or is this the only one? :slightly_smiling_face:

There are other 4 as well.

All with the same behavior? If so what are there device_ids? :slightly_smiling_face:

Have not checked with other devices as they are located at different places.