There are no brand fields in WooCommerce core by default. This answer comes from a post 2 years ago, given by an engineer from Automattic. I double-checked the validity of this answer again today.
Yes correct use vendor_id or another field which is valid. Let me share mine which was worked for me.
i place exactly same code in function.php file.
add_filter(‘rest_product_collection_params’, ‘maximum_api_filter’);
function maximum_api_filter($query_params) {
$query_params[‘per_page’][“maximum”]=300;
return $query_params;
}
but my filter was like-
wp-json/wc/v3/products?status=publish&vendor_id=13&lang=en&per_page=300&
Related Posts:
- wc_get_products() not return the images details
- WooCommerce REST API endpoints don’t exist
- Fetch products with filter by similar categories at same time
- Auto generating API keys using the Application Authentication Endpoint [closed]
- WP/WooCommerce REST API cart/checkout/order [closed]
- WooCommerce: Can’t use wc_get_products for custom REST API endpoints
- Process checkout using WC REST API
- How to build a plugin that supports authenticated POST requests to the REST API from external servers?
- Extend Woocommerce rest api routes fails
- How to filter Post using Meta Data REST API
- Creating woocommerce product using WordPress REST API
- How to stop a Gutenberg Block from firing multiple GET Requests?
- Output JSON object with woocommerce products
- Problem with cURL and rest API
- Woo API REST : product variation price is read-only?
- Category Tree In WooCommerce Product API
- How to upload Woocommerce product images via API? [closed]
- Woocommerce REST API allow normal users make an order
- How to modify WCMP Rest API response?
- How to handle Woocommerce API credentials
- What will make Woocommerce REST API to issue 401 [closed]
- Woocommerce api: create product with images – bad request
- Woocommerce custom endpoints
- Woocommerce REST API – updating an order changes custom tax calculations
- Woocommerce Rest Api Categories problem [closed]
- Expired session error (admin) when I try to make a call to WooCommerce api [closed]
- API returns blank response after installing & uninstalling WP-rest-api plugin
- woocommerce axios react
- Get specific values in Woocommerce Rest API
- How can I get all the woocommerce api orders [closed]
- WooCommerce – Add product with image via REST API
- Tax are not showing on order while placing order with REST API
- JWT on Woocommerce cannot work with “Customer” role user
- Update Customer JWT Woocommerce
- Woocommerce, finding the ordinal number of a purchase for a certain product
- WooCommerce – Create multiple product tags via rest api endpoint
- WordPress SMS API integration without plugin error
- Absolute search against wordpress api
- Using the WordPress and WooCommerce REST APIs in the same Node app
- Retrieve Data from Custom Endpoint
- WordPress Woocommerce REST API JSON Error
- How to solve `Error getting remote image` in woocommerce rest api script?
- Getting in an exception for get product detail by id in woocommerce REST api
- Impossible to create a new WooCommerce customer using Rest API
- Woocommerce API security concerns
- Getting WordPress fatal error when hitting WooCommerce API
- wc_get_products() return empty object
- How can I send information when a order is completed to my own POS?
- woocommerce REST api on the website’s front-end
- Woocommerce Rest API: woocommerce_product_invalid_image_id
- How to save one API response to WooCommerce order meta data
- How can I get a get a list of customers from a list of email addresses?
- How to get WordPress to respond to a GET request at the end of a Woo product page
- Working with a json feed & trying to figure out how best to import
- WC Booking query bookings with date ranges
- Delete product image using WooCommerce API?
- “error_message”: “Sorry, you cannot list resources.” using WooCommerce API
- Woocommerce REST API: creating variations
- email address non required
- Woocommerce REST API not considering discounts and coupons
- WordPress returning “XHR” even when access keys are used
- Bypass wp_safe_remote_get()?
- How to programatically create a WooCommerce downloadable product?
- Users credentials and syncing from third party with WooCommerce
- Manual Woocommerce Complete order Emails
- Woocommerce API REST search by multiple keywords
- Create WordPress account on different domain when WooCommerce order completed
- Send data to external websites when there is an update or create a post
- GET woocommerce order request is not showing meta data [closed]
- How to add a new endpoint in woocommerce
- Use Hooks to Limit One Comment Per User Per Post – Hide Form if Already Commented
- Options to get my custom post type metadata via the WordPress API
- Woocommerce – Move product without price a the end
- Extra row / text field to a product page (WooCommerce)
- woocommerce_email_attachments filter arguments [closed]
- change wp_login url and redirect users at the same time
- How to clear woocommerce checkout form after pageload
- Send billing info from woocommerce checkout page to paypal checkout form
- Check if a category has a parent category in WooCommerce REST API
- Remove a higher quantity from stock according to a variation
- Switch to user link
- Change Firstname & Lastname order in the order-processing e-mail templates
- Trying to run Javascript on AJAX call
- Get the name WordPress default theme in the core
- Getting all woocommerce products from REST API call in plugin
- Set up PayPal with wrong email by mistake
- Does WP-WooC support filters at database?
- How to send welcome email once user buys the subscription
- Removed Sidebar in single product page
- Woocommerce section name? [closed]
- how to change value return by _stock_status
- Retrieve Woocommerce Cart Url with javascript/jquery [closed]
- Load custom post template
- Remove plugin function and add it back in via functions.php
- deactivate product-page image slider on mobile
- Increase product variation limit in woocommerce
- WooCommerce widget “WooCommerce Products” template [closed]
- Woocommerce woocommerce_breadcrumb_defaults filter [closed]
- How to display India country first in country selection drop down list in WordPress
- error 500 in Back Office when using a woocommerce function in functions.php