Skip to content

Commit 3046596

Browse files
authoredFeb 28, 2025··
Merge pull request #257 from woocommerce/add/new-product-variations-list-params
Add docs for product variations list endpoint new parameters
2 parents 96247c7 + 39a6e0a commit 3046596

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎source/includes/wp-api-v3/_product-variations.md

+4
Original file line numberDiff line numberDiff line change
@@ -624,12 +624,16 @@ woocommerce.get("products/22/variations").parsed_response
624624
| `parent_exclude` | array | Limit result set to all items except those of a particular parent ID. |
625625
| `slug` | string | Limit result set to products with a specific slug. |
626626
| `status` | string | Limit result set to products assigned a specific status. Options: `any`, `draft`, `pending`, `private` and `publish`. Default is `any`. |
627+
| `include_status` | string | Limit result set to product variations with any of the specified statuses. Multiple statuses can be provided as a comma-separated list. Takes precedence over the `status` parameter. Options: `any`, `future`, `trash`, `draft`, `pending`, `private`, and `publish`.|
628+
| `exclude_status` | string | Exclude product variations from result set with any of the specified statuses. Multiple statuses can be provided as a comma-separated list. Takes precedence over the `include_status` parameter. Options: `future`, `trash`, `draft`, `pending`, `private`, and `publish`.|
627629
| `sku` | string | Limit result set to products with a specific SKU. |
628630
| `tax_class` | string | Limit result set to products with a specific tax class. Default options: `standard`, `reduced-rate` and `zero-rate`. |
629631
| `on_sale` | boolean | Limit result set to products on sale. |
630632
| `min_price` | string | Limit result set to products based on a minimum price. |
631633
| `max_price` | string | Limit result set to products based on a maximum price. |
632634
| `stock_status` | string | Limit result set to products with specified stock status. Options: `instock`, `outofstock` and `onbackorder`. |
635+
| `virtual` | boolean | Limit result set to virtual product variations |
636+
| `downloadable` | boolean | Limit result set to downloadable product variations. |
633637

634638
## Update a product variation ##
635639

0 commit comments

Comments
 (0)
Please sign in to comment.