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

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)

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!

Hey @Raj,

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

Best,
RayanP

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:

{
  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

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

Best,
RayanP

2 Likes

Wow thank you so much @Rayanp! 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

2 Likes