# Valid production device code is refused by Terminal: "Incorrect device code"

**URL:** <https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125>\
**Category:** Questions\
**Tags:** terminal-api\
**Created:** [October 6, 2026, 4:48pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125 "2026-10-06T16:48:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![DHNOW](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@DHNOW](https://developer.squareup.com/forums/u/DHNOW)\
**Post date:** [October 6, 2026, 4:48pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/1 "2026-10-06T16:48:27Z")

</div>

Update with more details, in case it helps.

The device code is created correctly, but the Terminal refuses to accept it.

What I did:

- Created the code with CreateDeviceCode in PRODUCTION (not Sandbox), using my production access token and my production location ID.
- The request used product\_type TERMINAL\_API and the name “Tapviva Counter”.
- Listing codes right afterward in production showed the code as valid: status UNPAIRED, no device\_id yet. Example code: WZVQMF.
- The Terminal was signed out. On the sign-in screen I tapped “Use a device code”, and on the “Sign in with a device code” screen I typed the 6 letters in capital letters, with no spaces, within about 2 minutes of creating the code.
- Result: “Incorrect device code.” This has happened with every new code, including after I turned caps lock on to be sure.

Terminal details:

- Software version: 567.0105 (up to date).
- On Wi-Fi and online.
- Set up with its own account for this test, then signed out.

What I am asking:

1. Is this Terminal somehow locked to the account it was first set up with, or to a mode that blocks Terminal API pairing?
2. Is there a step I am missing so that the “Sign in with a device code” screen accepts a code made by the Devices API?
3. If a factory reset of the Terminal is needed, what are the official steps?
4. SN:623CS149C4004228

Thank you.

---

<div class="post-metadata">

**Author:** ![zacstlouis](https://avatars.discourse-cdn.com/v4/letter/z/b5a626/32.png) [@zacstlouis](https://developer.squareup.com/forums/u/zacstlouis)\
**Post date:** [October 6, 2026, 11:09pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/2 "2026-10-06T23:09:14Z")

</div>

I cant find any reasonable answer about why this isn’t working. Could you send me your app id and a timestamp for when you tried and I’ll see if any of our logs provide any more information.

---

<div class="post-metadata">

**Author:** ![DHNOW](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@DHNOW](https://developer.squareup.com/forums/u/DHNOW)\
**Post date:** [October 7, 2026, 12:17am UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/3 "2026-10-07T00:17:23Z")

</div>

sq0idp-ZcgGmRg5Xlaz8soY5KwfbQ

---

<div class="post-metadata">

**Author:** ![DHNOW](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@DHNOW](https://developer.squareup.com/forums/u/DHNOW)\
**Post date:** [October 7, 2026, 12:19am UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/4 "2026-10-07T00:19:02Z")

</div>

Hi Zac, the ID in my last message is the production Application ID. Here are the details of a fresh attempt:

Environment: PRODUCTION

- CreateDeviceCode request time: 2026-10-07T00:11:40Z (Oct 6, 7:11 PM Central)
- Device code ID: 5S0ZH3Q18FQXM
- Code: GKKCPW, product\_type TERMINAL\_API, status returned UNPAIRED
- I typed the code into the Terminal’s “Sign in with a device code” screen within about 2 minutes of creating it (between 7:12 and 7:14 PM Central, 00:12 to 00:14 UTC). The Terminal showed “Incorrect device code”.

Terminal details:

- Serial: 623CS149C4004228
- Software version: 567.0105 (updated to the current version using the check-for-updates button)
- I already did a factory reset on the Terminal and tried several fresh codes, entered in uppercase as returned by the API. Every code has been refused.
- The Dashboard-generated 12-character device code signs the Terminal in as a normal Terminal, but ListDevices returns 0 devices for the Terminal API.

My Square support case for this is #122309608.

Please let me know if you need anything else from my side. Thank you.

---

<div class="post-metadata">

**Author:** ![zacstlouis](https://avatars.discourse-cdn.com/v4/letter/z/b5a626/32.png) [@zacstlouis](https://developer.squareup.com/forums/u/zacstlouis)\
**Post date:** [October 7, 2026, 7:54pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/8 "2026-10-07T19:54:59Z")

</div>

I only see a terminal ending in 4288. Is this the right one?

---

<div class="post-metadata">

**Author:** ![DHNOW](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@DHNOW](https://developer.squareup.com/forums/u/DHNOW)\
**Post date:** [October 7, 2026, 9:22pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/9 "2026-10-07T21:22:58Z")

</div>

Yes, the Terminal ending in 4288 is the right one. It is signed in to my Tapviva account. The 6-character device codes I create through the Terminal API are rejected by the Terminal’s “Use a device code” screen, and no pairing prompt appears on the Terminal. How do I pair it as a Terminal API device so I can send checkouts to it?

---

<div class="post-metadata">

**Author:** ![zacstlouis](https://avatars.discourse-cdn.com/v4/letter/z/b5a626/32.png) [@zacstlouis](https://developer.squareup.com/forums/u/zacstlouis)\
**Post date:** [October 8, 2026, 3:56pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/10 "2026-10-08T15:56:33Z")

</div>

Could you report back after trying this:

1. Sign out of the 4288 device and keep it in hand
2. Generate a fresh device code for that location
3. Attempt pairing
4. If it fails → report the device id and timestamp back here
5. Report what the screen says specifically
6. tap the “Send diagnostic report” button in Settings \> Troubleshooting

---

<div class="post-metadata">

**Author:** ![DHNOW](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@DHNOW](https://developer.squareup.com/forums/u/DHNOW)\
**Post date:** [October 8, 2026, 4:33pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/11 "2026-10-08T16:33:32Z")

</div>

Hi, I followed your steps and wanted to report back.

1. I signed out of the Terminal ending 4288 (Settings \> Account, then Sign out).
2. I created a fresh device code at the Tapviva location (Point of Sale, Standard mode).
3. I entered the new code on the terminal keypad.

Result: the pairing worked this time. The Dashboard shows the new device code as Paired to Square Terminal 4288, login time Oct 8, 2026, 11:18 AM CDT, and the terminal went to the normal amount keypad with no error message on screen. Device ID: 623CS149C4004288

I did not send a diagnostic report, because there was no failure this time. Do you want me to run a test payment from my app against this pairing, or is there anything else you’d like me to check?

---

<div class="post-metadata">

**Author:** ![DHNOW](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@DHNOW](https://developer.squareup.com/forums/u/DHNOW)\
**Post date:** [October 8, 2026, 5:32pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/12 "2026-10-08T17:32:34Z")

</div>

Hi, a quick follow-up. Everything is working now. The pairing issue turned out to be on my side: my app was still pointed at Square’s sandbox instead of production. After switching it to production and pairing the terminal with a Terminal API device code, a real test sale went through on Square Terminal 4288, and a refund went through as well. Thanks for the help and the troubleshooting steps.

---

<div class="post-metadata">

**Author:** ![DHNOW](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@DHNOW](https://developer.squareup.com/forums/u/DHNOW)\
**Post date:** [October 8, 2026, 5:33pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/13 "2026-10-08T17:33:27Z")

</div>

Correction to my last message: the payment problem in my app was my sandbox setup, which is fixed. I can’t say what caused the original pairing problem on terminal 4288, since it paired fine after I signed out and used a fresh device code. Sorry for the mix-up.

---

<div class="post-metadata">

**Author:** ![zacstlouis](https://avatars.discourse-cdn.com/v4/letter/z/b5a626/32.png) [@zacstlouis](https://developer.squareup.com/forums/u/zacstlouis)\
**Post date:** [October 8, 2026, 5:55pm UTC](https://developer.squareup.com/forums/t/valid-production-device-code-is-refused-by-terminal-incorrect-device-code/28125/15 "2026-10-08T17:55:23Z")

</div>

No problem, I’m glad you resolved it! Something sandbox was my theory, but coudn’t confirm it haha
