PING is always timing out (problem in production)

Hi,

it’s been a while since my project is failing due to a issue related to the ping action. It always times out.

My log for the PING

 {
  "type": "terminal.action.created",
  "event_id": "019aceec-c2ec-307f-8836-25db25104080",
  "created_at": "2025-05-12T10:04:55.124Z",
  "data": {
    "type": "action",
    "id": "termapia:zemX3eJ3Q89CjlCE",
    "object": {
      "action": {
        "created_at": "2025-05-12T10:04:55.124Z",
        "deadline_duration": "PT5M",
        "device_id": "device:409CS145B7001939",
        "id": "termapia:zemX3eJ3Q89CjlCE",
        "location_id": "L921AWG6483ZF",
        "status": "PENDING",
        "type": "PING",
        "updated_at": "2025-05-12T10:04:55.124Z"
      }
    }
  }
}

gets always time out

{
  "type": "terminal.action.updated",
  "event_id": "cbf2bd77-8b4a-3dc7-915d-e57715f3041e",
  "created_at": "2025-05-12T10:10:13.462Z",
  "data": {
    "type": "action",
    "id": "termapia:zemX3eJ3Q89CjlCE",
    "object": {
      "action": {
        "cancel_reason": "TIMED_OUT",
        "created_at": "2025-05-12T10:04:55.124Z",
        "deadline_duration": "PT5M",
        "device_id": "device:409CS145B7001939",
        "id": "termapia:zemX3eJ3Q89CjlCE",
        "location_id": "L921AWG6483ZF",
        "status": "CANCELED",
        "type": "PING",
        "updated_at": "2025-05-12T10:10:13.462Z"
      }
    }
  }
}

I’ve tried using “device_id”: “device:409CS145B7001939” and “device_id”: “409CS145B7001939”, and both dont work anymore.

The device is available as you can check in device listing

   {
      "id": "device:409CS145B7001939",
      "attributes": {
        "type": "TERMINAL",
        "manufacturer": "Square",
        "model": "Square Terminal (1st Gen, v2)",
        "name": "Square Terminal 1939",
        "manufacturers_id": "409CS145B7001939",
        "updated_at": "2025-05-12T10:37:24.725Z",
        "version": "5.51.0069",
        "merchant_token": "MLF26EH1ZQNDC"
      },
      "components": [
        {
          "type": "APPLICATION",
          "application_details": {
            "application_type": "TERMINAL_API",
            "version": "6.54",
            "session_location": "L921AWG6483ZF",
            "device_code_id": "FGD2D66YKBDFG"
          }
        },
        {
          "type": "CARD_READER",
          "card_reader_details": {
            "version": "3.63.116"
          }
        },
        {
          "type": "BATTERY",
          "battery_details": {
            "visible_percent": 77,
            "external_power": "UNAVAILABLE"
          }
        },
        {
          "type": "WIFI",
          "wifi_details": {
            "active": true,
            "ssid": "CARMEN DEL CHAPIZ",
            "ip_address_v4": "192.168.1.212",
            "signal_strength": {
              "value": 4
            }
          }
        },
        {
          "type": "ETHERNET",
          "ethernet_details": {
            "active": false
          }
        }
      ],
      "status": {
        "category": "AVAILABLE"
      }

this is a problem I have in poduction, please, answer fast

:waving_hand: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Webhook Event Logs
Postman
Troubleshoot In-App Payments SDK Problems

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

If you remove device: from the request it will work as expected. For example:

{
    "idempotency_key": "{{$guid}}",
    "action": {
      "device_id": "409CS145B7001939",
      "type": "PING"
    }
  }

:slight_smile: