Add steps to retrieve products variations in Store API docs (https://github.com/woocommerce/woocommerce-blocks/pull/7076)
This commit is contained in:
parent
26327264c0
commit
6294b0c227
|
@ -191,6 +191,14 @@ curl "https://example-store.com/wp-json/wc/store/v1/products/34"
|
|||
}
|
||||
```
|
||||
|
||||
## Product Variations
|
||||
|
||||
By default, Store API excludes product variations. You can retrieve the variations for a product by using the `type=variation`.
|
||||
|
||||
```sh
|
||||
curl "https://example-store.com/wp-json/wc/store/v1/products?type=variation"
|
||||
```
|
||||
|
||||
<!-- FEEDBACK -->
|
||||
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue