Add steps to retrieve products variations in Store API docs (https://github.com/woocommerce/woocommerce-blocks/pull/7076)

This commit is contained in:
Tarun Vijwani 2022-09-07 15:49:10 +05:30 committed by GitHub
parent 26327264c0
commit 6294b0c227
1 changed files with 8 additions and 0 deletions

View File

@ -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 -->
---