# Showing multiple device code for same device

**URL:** <https://developer.squareup.com/forums/t/showing-multiple-device-code-for-same-device/11688>\
**Category:** Questions\
**Tags:** terminal-api, devices-api\
**Created:** [December 29, 2023, 12:40pm UTC](https://developer.squareup.com/forums/t/showing-multiple-device-code-for-same-device/11688 "2023-12-29T12:40:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ketan\_Chavda](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@Ketan\_Chavda](https://developer.squareup.com/forums/u/Ketan_Chavda)\
**Post date:** [December 29, 2023, 12:40pm UTC](https://developer.squareup.com/forums/t/showing-multiple-device-code-for-same-device/11688/1 "2023-12-29T12:40:26Z")

</div>

Square List device codes API list the all device codes associated with merchant. Why it is showing multiple entries with same device-id and location-id with different device codes? And Status for devices are “PAIRED”.  
Below is the sample JSON response which we got after invoking the list device code API.

 ![image](https://global.discourse-cdn.com/square/original/2X/7/7967fc5c3de0a4f4f7d216a696917f7e9070a4dc.png)

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [December 29, 2023, 12:40pm UTC](https://developer.squareup.com/forums/t/showing-multiple-device-code-for-same-device/11688/2 "2023-12-29T12:40:42Z")

</div>

👋 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:

> **[Merchants API Overview](https://developer.squareup.com/docs/merchants-api)**
>
> You can use the Square Merchants API to retrieve information about a Square seller account that is integrated with your application.

> **[Locations API Overview](https://developer.squareup.com/docs/locations-api/how-it-works)**
>
> Learn how to use a Square API to update and retrieve location information for a Square seller.

> **Additional Documentation**
>
> [Locations API Overview](https://developer.squareup.com/docs/locations-api)  
> [Merchant APIs](https://developer.squareup.com/docs/merchant-details)  
> [Locations API Overview](https://developer.squareup.com/docs/locations-api/cookbook/get-locations)

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.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [December 29, 2023, 6:37pm UTC](https://developer.squareup.com/forums/t/showing-multiple-device-code-for-same-device/11688/3 "2023-12-29T18:37:02Z")

</div>

This happens when you create and pair more then one device code with the Terminal. The `device_id` is the serial number of the Terminal device. If the Terminal device is paired with multiple locations or multiple device codes created by the Devices API they will all have the same `device_id`. 🙂

---

<div class="post-metadata">

**Author:** ![Ketan\_Chavda](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@Ketan\_Chavda](https://developer.squareup.com/forums/u/Ketan_Chavda)\
**Post date:** [January 1, 2024, 9:30am UTC](https://developer.squareup.com/forums/t/showing-multiple-device-code-for-same-device/11688/4 "2024-01-01T09:30:46Z")

</div>

Hi,

Thanks for reply.

If device is already paired with previously entered device code and user added new paring with new device code then How to remove pairing with previously entered device code?

---

<div class="post-metadata">

**Author:** ![sde1000](https://avatars.discourse-cdn.com/v4/letter/s/e274bd/32.png) [@sde1000](https://developer.squareup.com/forums/u/sde1000)\
**Post date:** [January 1, 2024, 9:42am UTC](https://developer.squareup.com/forums/t/showing-multiple-device-code-for-same-device/11688/5 "2024-01-01T09:42:54Z")

</div>

> [@Ketan\_Chavda](#):
>
> If device is already paired with previously entered device code and user added new paring with new device code then How to remove pairing with previously entered device code?

Currently only possible using the dashboard (under Account & Settings / Business information / Devices).

It would be great to have an API method for this, though!

---

<div class="post-metadata">

**Author:** ![Ketan\_Chavda](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@Ketan\_Chavda](https://developer.squareup.com/forums/u/Ketan_Chavda)\
**Post date:** [January 2, 2024, 6:24am UTC](https://developer.squareup.com/forums/t/showing-multiple-device-code-for-same-device/11688/6 "2024-01-02T06:24:58Z")

</div>

Hi,

Thanks for reply.

As of now, In Square dashboard, we did not see any option to unpair device with specific device code and location.  
In Square dashboard, we can see only one option and which is “forget device”.

Is there any way to unpair device from specific location or device code if it is connected with multiple locations/device codes?

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [January 2, 2024, 5:55pm UTC](https://developer.squareup.com/forums/t/showing-multiple-device-code-for-same-device/11688/7 "2024-01-02T17:55:53Z")

</div>

At this time there is only the option to forget a device. The ability to unpair isn’t currently available. 🙂
