'Amazon SP-API How To Get All Variations Including Out Of Stock amazon-sp-api

I'm trying to take an ASIN and get all the variations but, currently, it only returns the in-stock items.

Anything else is excluded.

Is there a way to get all variations regardless?

Here is my code (I'm using amazon-sp-api to do this):


        let sellingPartner = new SellingPartnerAPI({
            region: 'na',
            refresh_token: a.amazon_refresh_token,
            credentials: {
              SELLING_PARTNER_APP_CLIENT_ID: process.env.SELLING_PARTNER_APP_CLIENT_ID,
              SELLING_PARTNER_APP_CLIENT_SECRET: process.env.SELLING_PARTNER_APP_CLIENT_SECRET,
              AWS_ACCESS_KEY_ID: process.env.AWS_ACCESS_KEY_ID,
              AWS_SECRET_ACCESS_KEY: process.env.AWS_SECRET_ACCESS_KEY,
              AWS_SELLING_PARTNER_ROLE: process.env.AWS_SELLING_PARTNER_ROLE
            }
        })
        let response = await a.sellingPartner.callAPI({
            operation:'catalogItems.getCatalogItem',
            path:{
              asin: asin
            },
            query:{
              MarketplaceId:process.env.MarketplaceId 
            },
            options:{
              version:'v0'
            }
          });


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source