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 fee_lines using woocommerce rest API v3?
- Update a server-side render Block when woocommerce cart block changed
- Are there any hook or filter when refund is done through admin -woocommerce
- WooCommerce: add different order item meta for each item in order
- Woocommerce: Remove variant options from admin new order email
- get deepest Woocommerce Product Category on Archivepage
- Get the cart details from the order id in woocommerce?
- Woocommerce Customs Endpoint
- Woocommerce add payment method outside of checkout and my account
- short description in shop page after title
- Allow WooCommerce existing customers to checkout without being logged in [closed]
- change woocommerce product statut (draft ->publish // publish->draft) depends on the month [closed]
- How to add taxonomy term under the thumbnail on woocommerce product page
- How to overwrite price html in woocommerce single product page
- WC_Customer delete function returns error
- I can’t post comment via REST API
- How do I create a filter to hide the One Click Accessibility plugin button in WordPress?
- customers are not showing up in woocommerce
- How to edit wc_get_template_part for archive products
- Switch to user link shortcode
- How to get product category ID based on post?
- Jump to Footer On Scroll – Woocommerce Pages Phones Only
- Checkout fr Woocommerce – load default WooCommerce checkout template on the fly
- Loop Through Current Woocommerce Product Categories Sub Categories
- HTTP Error when uploading pictures and problem with the size of images
- add_rewrite_rule() returns 404 page
- Woocommerce Setup not completing
- How to display parent category with first level child in REST API
- Unable to enocde the result of wc_get_products
- Notice: Trying to get property of non-object in bodycenter [closed]
- Modify existing code to show user nickname in woocoomerce order email instead of user_login