<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>RestAPI Get product by SKU (not ID!)

[ad_1]

Replies: 2

Hello,

I am trying to download a product by giving it the sku in the RestAPI.
I have tried it in the following two ways:

/wp-json/wc/v3/products?sku=’001023′?consumer_key=… …
Always return []

wp-json/wc/v3/products?filter[sku]=’001023′?consumer_key=… …
Gives me back all my products 🙁

Does anyone have any idea how I can do this?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer