
Ninox – Integration for WooCommerce adds a new REST API endpoint to WooCommerce that returns all products with their complete variation data in a single, optimized request.
This plugin is designed for developers, theme creators, and anyone building custom interfaces or integrations with WooCommerce who needs comprehensive product data including variations.
The plugin adds the following endpoint:
/wp-json/wc/v3/products-with-variations
This endpoint handles all the complex database queries needed to retrieve products with their attributes and variations in an efficient way, reducing the number of API calls your application needs to make.
The plugin adds the following endpoint:
Endpoint: /wp-json/wc/v3/products-with-variations
Method: GET
Required Permissions: manage_woocommerce capability or valid API key
Parameter
Type
Description
page
integer
Current page of the collection. Default is 1.
per_page
integer
Maximum number of items to be returned in result set. Default is 10. Max 20.
force_refresh
string
Set to ‘true’ to bypass cache and get fresh data. Optional.
`json
[
{
“id”: 123,
“name”: “Sample Product”,
“description”: “Product description”,
“short_description”: “Short description”,
“sku”: “SAMPLE-1”,
“price”: “29.99”,
“regular_price”: “39.99”,
“sale_price”: “29.99”,
“stock”: 10,
“stock_status”: “instock”,
“weight”: “”,
“length”: “”,
“width”: “”,
“height”: “”,
“attributes”: [
{
“id”: 1,
“name”: “Size”,
“options”: [“S”, “M”, “L”]
}
],
“variations”: [
{
“id”: 124,
“sku”: “SAMPLE-1-S”,
“price”: “29.99”,
“regular_price”: “29.99”,
“sale_price”: “”,
“stock”: 5,
“stock_status”: “instock”,
“attributes”: [
{
“id”: 1,
“name”: “size”,
“option”: “S”
}
]
}
]
}
]
`
When using pagination, the response includes the following headers:
X-WP-Total: The total number of products foundX-WP-TotalPages: The total number of pagesThis plugin does not collect, store, or share any user data. It only retrieves product information from your WordPress database through WooCommerce’s API.
No personal information is collected or transmitted to external services. The plugin only accesses the following database information:
– Product details
– Product variations
– Product attributes
– Stock information
All data processing occurs locally within your WordPress installation.
This plugin supports two authentication methods for accessing the REST API endpoint:
– Create an API key pair in WooCommerce > Settings > Advanced > REST API
– Use these credentials in the Authorization header as Basic auth
– Format: Authorization: Basic base64(consumer_key:consumer_secret)
– Users must have ‘manage_woocommerce’ capability
– Supports standard WordPress authentication methods including:
* Session-based authentication
* Cookie-based authentication
* WordPress nonces
All credentials and API keys are stored securely in the WordPress database using WordPress core security standards. No credentials are stored in plain text, and all database queries are properly prepared and sanitized.
If you need help with this plugin, please visit our support forum at:
https://ninoxnet.com/contacto/
For custom development or integration assistance, please contact us at:
[email protected]