# How to know the URL of a SKU created via API?

**URL:** <https://community.shiphero.com/t/how-to-know-the-url-of-a-sku-created-via-api/2221>\
**Category:** GraphQL API\
**Created:** [November 2, 2022, 5:58pm UTC](https://community.shiphero.com/t/how-to-know-the-url-of-a-sku-created-via-api/2221 "2022-11-02T17:58:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://community.shiphero.com/u/Raj)\
**Post date:** [November 2, 2022, 5:58pm UTC](https://community.shiphero.com/t/how-to-know-the-url-of-a-sku-created-via-api/2221/1 "2022-11-02T17:58:31Z")

</div>

Hey guys, So if I create a sku using API, how do I know the web link to it? (eg [https://app.shiphero.com/dashboard/products/details/382049379](https://app.shiphero.com/dashboard/products/details/382049379))

My first guess was that the number at the end is ‘legacy id’ or ‘barcode’ but that doesn’t seem to be the case…

Thanks!

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [November 2, 2022, 8:24pm UTC](https://community.shiphero.com/t/how-to-know-the-url-of-a-sku-created-via-api/2221/2 "2022-11-02T20:24:04Z")

</div>

Hey @Raj,

Thanks for reaching out.  
Just wanted to let you know we’re looking into this now.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![sh-agent](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sh-agent](https://community.shiphero.com/u/sh-agent)\
**Post date:** [November 2, 2022, 8:45pm UTC](https://community.shiphero.com/t/how-to-know-the-url-of-a-sku-created-via-api/2221/3 "2022-11-02T20:45:37Z")

</div>

Hey @Raj,

Thanks for hanging in there!  
The number at the end of the URL will be the `legacy_id` under the `warehouse_products` fragment.

A query would look something like this:

```auto
{
  warehouse_products(sku: "1456328") {
    request_id
    complexity
    data {
      edges {
        node {
          id
          legacy_id
        }
      }
    }
  }
}

```

And that legacy\_id: 379769512 would be at the end of that product URL in my account like so: [https://app.shiphero.com/dashboard/products/details/379769512](https://app.shiphero.com/dashboard/products/details/379769512)

Please let me know if you have any questions or concerns.

Best,  
RayanP

---

<div class="post-metadata">

**Author:** ![Raj](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@Raj](https://community.shiphero.com/u/Raj)\
**Post date:** [November 2, 2022, 9:01pm UTC](https://community.shiphero.com/t/how-to-know-the-url-of-a-sku-created-via-api/2221/4 "2022-11-02T21:01:12Z")

</div>

Wow thank you so much @sh-agent! Just finished testing and that worked great!  
I did try legacy\_id but the one under the product node - No way I could’ve guessed this lol  
Cheers!  
Raj
