Struggling to retrieve products that have the "x-attribute" and "x-attribute-term" using Node.js with the WooCommerce REST API library from here. I've explored solutions on stackoverflow and other sites but none seem to work.
Attempts made:
const response = await woocommerceApi.get("products", {
attribute: "x-attribute-slug",
attribute_term: "x-attribute-term-slug"
per_page: 100,
});
Unfortunately, this only retrieves all products in the store. I also tried using "pa_x-attribute-slug" as the term based on suggestions that WooCommerce automatically adds 'pa', but this approach was unsuccessful as well.