Terminal device cannot login with generated code

I am trying to connect my physical terminal device so that I can test out my app. I generate a code using the api via post and get a valid response with a code.

But if I try to use that code to login on the terminal with “Sign in with device code” it will always fail to login and respond with the “incorrect code error”.

Can anyone help me correct this error?

:wave: Is this with a device code that was created in sandbox? If so logging into the Terminal using a device code generated in sandbox isn’t supported. You’ll need to use our test values for sandbox testing. The Terminal API supports a collection of special device_id values you can use to simulate terminal checkouts without connecting to a physical Square Terminal. Successful Sandbox requests result in a payment generated in the Sandbox and shown in the Seller Dashboard for your test account. :slightly_smiling_face:

1 Like