Hi,
When trying to pair the Terminal Payment Device via Terminal API, at the stage of requesting the Pairing Code, one of our merchants seems to be getting an error from Square APIs.
Log:
2024-10-21 00:19:53 - SQUARE-TERMINAL API >>>>>>>>>>
URI : https://connect.squareup.com/v2/devices/codes
Method : POST
Headers : {Accept=[application/json], Content-Type=[application/json], Authorization=[Bearer TOKEN-REDACTED], Square-Version=[2024-01-18], Content-Length=[203]}
Request body: {"idempotency_key":"670f1c710ef632032bbea83b","device_code":{"name":"Sunset Island - Kiosk - A3288SOM0122080211050527 Square Terminal Device","location_id":"LP576VN6Y92PK","product_type":"TERMINAL_API"}}
2024-10-21 00:19:53 - SQUARE-TERMINAL API API <<<<<<<<<< Status = [500] path = [https://connect.squareup.com/v2/devices/codes]
Status code : 500
Status text : Internal Server Error
Headers : {Date=[Mon, 21 Oct 2024 00:19:53 GMT], Content-Type=[application/json], Content-Length=[118], Connection=[keep-alive], CF-Ray=[8d5d14258bc63961-IAD], CF-Cache-Status=[DYNAMIC], Strict-Transport-Security=[max-age=631152000; includeSubDomains; preload], frame-options=[DENY], square-version=[2024-01-18], squareup--connect--v2--common--versionmetadata-bin=[CgoyMDI0LTAxLTE4], x-content-type-options=[nosniff], x-envoy-decorator-operation=[/v2/devices/codes/**], x-frame-options=[DENY], x-sq-dc=[aws], x-sq-region=[us-east-1], x-xss-protection=[1; mode=block], Set-Cookie=[__cf_bm=vC.4NkxDHsVjsfQaMjza1bzL2lBYgvLZRIE.Ry9Rr4k-1729469993-1.0.1.1-xLcHrJ3giiCDbliCn7rEsd3HWyVFI9Y39D5r9r06kNmIIoaISmgZvb_VkbzF_19kCna2i5LldVWr1VvJAuvQcw; path=/; expires=Mon, 21-Oct-24 00:49:53 GMT; domain=.connect.squareup.com; HttpOnly; Secure; SameSite=None], Vary=[Accept-Encoding], Server=[cloudflare]}
Response body: {"errors": [{"code": "INTERNAL_SERVER_ERROR","detail": "An unexpected error has occurred.","category": "API_ERROR"}]}
..
2024-10-21 00:21:30 - SQUARE-TERMINAL API >>>>>>>>>>
URI : https://connect.squareup.com/v2/devices/codes
Method : POST
Headers : {Accept=[application/json], Content-Type=[application/json], Authorization=[Bearer TOKEN-REDACTED], Square-Version=[2024-01-18], Content-Length=[203]}
Request body: {"idempotency_key":"670f1c710ef632032bbea83b","device_code":{"name":"Sunset Island - Kiosk - A3288SOM0122080211050527 Square Terminal Device","location_id":"LP576VN6Y92PK","product_type":"TERMINAL_API"}}
2024-10-21 00:21:30 - SQUARE-TERMINAL API API <<<<<<<<<< Status = [500] path = [https://connect.squareup.com/v2/devices/codes]
Status code : 500
Status text : Internal Server Error
Headers : {Date=[Mon, 21 Oct 2024 00:21:30 GMT], Content-Type=[application/json], Content-Length=[118], Connection=[keep-alive], CF-Ray=[8d5d168288903961-IAD], CF-Cache-Status=[DYNAMIC], Strict-Transport-Security=[max-age=631152000; includeSubDomains; preload], frame-options=[DENY], square-version=[2024-01-18], squareup--connect--v2--common--versionmetadata-bin=[CgoyMDI0LTAxLTE4], x-content-type-options=[nosniff], x-envoy-decorator-operation=[/v2/devices/codes/**], x-frame-options=[DENY], x-sq-dc=[aws], x-sq-region=[us-east-1], x-xss-protection=[1; mode=block], Vary=[Accept-Encoding], Server=[cloudflare]}
Response body: {"errors": [{"code": "INTERNAL_SERVER_ERROR","detail": "An unexpected error has occurred.","category": "API_ERROR"}]}
..
2024-10-21 00:22:27 - SQUARE-TERMINAL API >>>>>>>>>>
URI : https://connect.squareup.com/v2/devices/codes
Method : POST
Headers : {Accept=[application/json], Content-Type=[application/json], Authorization=[Bearer TOKEN-REDACTED], Square-Version=[2024-01-18], Content-Length=[203]}
Request body: {"idempotency_key":"670f1c710ef632032bbea83b","device_code":{"name":"Sunset Island - Kiosk - A3288SOM0122080211050527 Square Terminal Device","location_id":"LP576VN6Y92PK","product_type":"TERMINAL_API"}}
2024-10-21 00:22:27 - SQUARE-TERMINAL API API <<<<<<<<<< Status = [500] path = [https://connect.squareup.com/v2/devices/codes]
Status code : 500
Status text : Internal Server Error
Headers : {Date=[Mon, 21 Oct 2024 00:22:27 GMT], Content-Type=[application/json], Content-Length=[118], Connection=[keep-alive], CF-Ray=[8d5d17e69c8c3961-IAD], CF-Cache-Status=[DYNAMIC], Strict-Transport-Security=[max-age=631152000; includeSubDomains; preload], frame-options=[DENY], square-version=[2024-01-18], squareup--connect--v2--common--versionmetadata-bin=[CgoyMDI0LTAxLTE4], x-content-type-options=[nosniff], x-envoy-decorator-operation=[/v2/devices/codes/**], x-frame-options=[DENY], x-sq-dc=[aws], x-sq-region=[us-east-1], x-xss-protection=[1; mode=block], Vary=[Accept-Encoding], Server=[cloudflare]}
Response body: {"errors": [{"code": "INTERNAL_SERVER_ERROR","detail": "An unexpected error has occurred.","category": "API_ERROR"}]}
Merchant ID: LP576VN6Y92PK
Any leads on as to why this seems to be happening?