# URL ids for https://app.shiphero.com/dashboard/products/details/XXXXXXXXXX

**URL:** <https://community.shiphero.com/t/url-ids-for-https-app-shiphero-com-dashboard-products-details-xxxxxxxxxx/347>\
**Category:** GraphQL API\
**Created:** [February 17, 2020, 5:14pm UTC](https://community.shiphero.com/t/url-ids-for-https-app-shiphero-com-dashboard-products-details-xxxxxxxxxx/347 "2020-02-17T17:14:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JFurr](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@JFurr](https://community.shiphero.com/u/JFurr)\
**Post date:** [February 17, 2020, 5:14pm UTC](https://community.shiphero.com/t/url-ids-for-https-app-shiphero-com-dashboard-products-details-xxxxxxxxxx/347/1 "2020-02-17T17:14:28Z")

</div>

Hello,  
How are the Ids in the above URL generated? In an order, I can find this using the legacy id. This doesn’t appear to be the case for the product page. I need to pull the URL of a product given its SKU.

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/david/32/22_2.png) [@david](https://community.shiphero.com/u/david)\
**Post date:** [September 26, 2020, 1:54pm UTC](https://community.shiphero.com/t/url-ids-for-https-app-shiphero-com-dashboard-products-details-xxxxxxxxxx/347/2 "2020-09-26T13:54:09Z")

</div>

@tomasw We are looking to provide links into ShipHero’s dashboard for products, as well. In our case, we need to provide access to the “Change SKU” feature since (I believe) this cannot be done through GraphQL.

As an example, our SKU BA9500-FBA has and id of `UHJvZHVjdEluZm86MTIzMTAzNg==`, a legacy\_id of `1231036` and a dashboard URL of `https://app.shiphero.com/dashboard/products/details/242049217`.

It’s not clear to us where to get the 242049217 to generate the URL. Is it possible?

---

<div class="post-metadata">

**Author:** ![tomasw](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/tomasw/32/248_2.png) [@tomasw](https://community.shiphero.com/u/tomasw)\
**Post date:** [September 28, 2020, 1:20pm UTC](https://community.shiphero.com/t/url-ids-for-https-app-shiphero-com-dashboard-products-details-xxxxxxxxxx/347/3 "2020-09-28T13:20:16Z")

</div>

Hi @JFurr @david!  
That is because the ID is taken from `warehouse_products` because it will be specific to each warehouse (as a product might exist in more than one warehouse).  
So for example, if you want to know the ID (URL) of SKU BA9500-FBA you will need to do.

Get the `warehouse_product` ID with:

```
query {
  product(sku: "BA9500-FBA") {
    request_id
    complexity
    data {
      sku
      warehouse_products {
        id
        legacy_id
      }
    }
  }
}

```

For which you will have in return:

```
{
  "data": {
    "product": {
      "request_id": "5f71e221c2b70e8fe6673146",
      "complexity": 1,
      "data": {
        "sku": "BA9500-FBA",
        "warehouse_products": [
          {
            "id": "UHJvZHVjdDoyNDIwNDkyMTc=",
            "legacy_id": 242049217
          }
        ]
      }
    }
  }
}

```

And then you could use that `legacy_id` to go to [https://app.shiphero.com/dashboard/products/details/242049217](https://app.shiphero.com/dashboard/products/details/242049217) or you could also use the ID “`UHJvZHVjdDoyNDIwNDkyMTc=`” which is actually Base64, so with any [online decoder](https://www.base64decode.org/) or any Base64 package it translates to `Product:242049217`

Let me know if that doesn’t help or I could explain better.  
Thanks in advance!  
Tom

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex020/user_avatar/community.shiphero.com/david/32/22_2.png) [@david](https://community.shiphero.com/u/david)\
**Post date:** [September 30, 2020, 3:53pm UTC](https://community.shiphero.com/t/url-ids-for-https-app-shiphero-com-dashboard-products-details-xxxxxxxxxx/347/4 "2020-09-30T15:53:28Z")

</div>

Thanks @tomasw. Worked like a charm!
