Exporting Variant ID numbers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tom Grande
    Junior Member
    • Jun 2026
    • 1

    #1

    Exporting Variant ID numbers

    Hello,

    I am trying to export our Product variant IDs for an API integration. I have hit a dead end everywhere from using the API to extract the data and developer tools but that only gives me the product I am clicking on, I need the whole catalog. I was able to grab the product IDs but that does not work since we have variants under each product. I have tried to create a report, add filters and tried to export from the products screen. Does anyone have any ideas on where to export them?

  • lazovic
    Super Moderator
    • Jan 2022
    • 1230

    #2
    Hi Tom Grande,

    To generate variants for the product, you can use the following API request:

    POST {siteUrl}/api/v1/Product/{id}/generateVariants

    To get all the variants for the product, you can use the following API request:

    GET {siteUrl}/api/v1/Product/{id}/variants?primaryFilter=allVariants

    Comment

    Working...