Hi @agustinnovolabs,
Sorry for such a late reply. I didn’t get a notification about this for some reason :/
I was going to offer you to enable our “REST API > Search by EAN” option and use our ean
param:
https://example.com/wp-json/wc/v3/products?ean=7980441417892
However, after testing, I realized it’s not working with variations. I will have to look into it – I will get back to you as soon as possible.
One more thing – if you enable our “Search > This will enable searching by EAN on frontend” option, then you can search in REST API by EAN with the search
param:
https://example.com/wp-json/wc/v3/products?search=7980441417892
This works a little better for variations – it won’t return the variation itself, however, it will return the parent (i.e., main variable) product instead.