Skip to content

Update manage_stock property type #272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/includes/wp-api-v1/_products.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ The products API allows you to create, view, update, and delete individual, or a
| `download_expiry` | integer | Number of days that the customer has up to be able to download the variation, the `-1` means that **downloads never expires**. Default is `-1`. |
| `tax_status` | string | Tax status. Default is `taxable`. Options: `taxable`, `shipping` (Shipping only) and `none`. |
| `tax_class` | string | Tax class. |
| `manage_stock` | boolean | Stock management at variation level. Default is `false`. |
| `manage_stock` | boolean, string | Stock management at variation level. Possible values are either a boolean or `parent`. Default is `false`. |
| `stock_quantity` | integer | Stock quantity. If is a variable variation this value will be used to control stock for all variations, unless you define stock at variation level. |
| `in_stock` | boolean | Controls whether or not the variation is listed as "in stock" or "out of stock" on the frontend. Default is `true`. |
| `backorders` | string | If managing stock, this controls if backorders are allowed. If enabled, stock quantity can go below `0`. Default is `no`. Options are: `no` (Do not allow), `notify` (Allow, but notify customer), and `yes` (Allow). |
Expand Down
6 changes: 3 additions & 3 deletions source/includes/wp-api-v2/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8278,7 +8278,7 @@ woocommerce.get("").parsed_response
"required": false,
"default": false,
"description": "Stock management at variation level.",
"type": "boolean"
"type": ["boolean", "string"]
},
"stock_quantity": {
"required": false,
Expand Down Expand Up @@ -8572,7 +8572,7 @@ woocommerce.get("").parsed_response
"manage_stock": {
"required": false,
"description": "Stock management at variation level.",
"type": "boolean"
"type": ["boolean", "string"]
},
"stock_quantity": {
"required": false,
Expand Down Expand Up @@ -8853,7 +8853,7 @@ woocommerce.get("").parsed_response
"manage_stock": {
"required": false,
"description": "Stock management at variation level.",
"type": "boolean"
"type": ["boolean", "string"]
},
"stock_quantity": {
"required": false,
Expand Down
2 changes: 1 addition & 1 deletion source/includes/wp-api-v2/_product-variations.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The product variations API allows you to create, view, update, and delete indivi
| `download_expiry` | integer | Number of days until access to downloadable files expires. Default is `-1`. |
| `tax_status` | string | Tax status. Options: `taxable`, `shipping` and `none`. Default is `taxable`. |
| `tax_class` | string | Tax class. |
| `manage_stock` | boolean | Stock management at variation level. Default is `false`. |
| `manage_stock` | boolean, string | Stock management at variation level. Possible values are either a boolean or `parent`. Default is `false`. |
| `stock_quantity` | integer | Stock quantity. |
| `in_stock` | boolean | Controls whether or not the variation is listed as "in stock" or "out of stock" on the frontend. Default is `true`. |
| `backorders` | string | If managing stock, this controls if backorders are allowed. Options: `no`, `notify` and `yes`. Default is `no`. |
Expand Down
6 changes: 3 additions & 3 deletions source/includes/wp-api-v3/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8281,7 +8281,7 @@ woocommerce.get("").parsed_response
"required": false,
"default": false,
"description": "Stock management at variation level.",
"type": "boolean"
"type": ["boolean", "string"]
},
"stock_quantity": {
"required": false,
Expand Down Expand Up @@ -8575,7 +8575,7 @@ woocommerce.get("").parsed_response
"manage_stock": {
"required": false,
"description": "Stock management at variation level.",
"type": "boolean"
"type": ["boolean", "string"]
},
"stock_quantity": {
"required": false,
Expand Down Expand Up @@ -8856,7 +8856,7 @@ woocommerce.get("").parsed_response
"manage_stock": {
"required": false,
"description": "Stock management at variation level.",
"type": "boolean"
"type": ["boolean", "string"]
},
"stock_quantity": {
"required": false,
Expand Down
2 changes: 1 addition & 1 deletion source/includes/wp-api-v3/_product-variations.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ The product variations API allows you to create, view, update, and delete indivi
| `download_expiry` | integer | Number of days until access to downloadable files expires. Default is `-1`. |
| `tax_status` | string | Tax status. Options: `taxable`, `shipping` and `none`. Default is `taxable`. |
| `tax_class` | string | Tax class. |
| `manage_stock` | boolean | Stock management at variation level. Default is `false`. |
| `manage_stock` | boolean, string | Stock management at variation level. Possible values are either a boolean or `parent`. Default is `false`. |
| `stock_quantity` | integer | Stock quantity. |
| `stock_status` | string | Controls the stock status of the product. Options: `instock`, `outofstock`, `onbackorder`. Default is `instock`. |
| `backorders` | string | If managing stock, this controls if backorders are allowed. Options: `no`, `notify` and `yes`. Default is `no`. |
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy