GET

This API lets you retrieve and view the SVI galleries of a product by ID.

HTTP request:

/wp-json/wc/svi/<product_id>

JSON response example:

[
   {
      "slugs":[
         "svidefault" //svidefault for default gallery or sviproglobal for global gallery
      ],
      "imgs":[
         "357", //attachment ID
         "353",
         "348",
         "344"
      ],
      "loop_hidden":false //Display in product loop 
   },
   {
      "slugs":[
         "black" // attribute slug (If using WPML use the original language slug)
      ],
      "imgs":[
         "346",
         "345",
         "344",
         "351"
      ],
      "loop_hidden":false
   },
   {
      "slugs":[ //BLUE + XL Gallery
         "blue", // Add attribute slugs to create more customized gallery
         "xl"
      ],
      "imgs":[
         "348",
         "349",
         "350",
         "360",
         "347"
      ],
      "loop_hidden":false
   }
]