plugin-icon

Ninox – Integration for WooCommerce

作者:ninoxnet·
Adds a powerful REST API endpoint to retrieve WooCommerce products with complete variation and attribute information in a single API call.
版本
1.0.3
活跃安装
20
最后更新
Jul 1, 2025
Ninox – Integration for WooCommerce

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.

Key Features

  • Comprehensive Data Access: Get complete product details and all variations in a single API call
  • Performance Optimized: Batch processing and efficient queries to handle large product catalogs
  • Secure Authentication: Supports WooCommerce API key authentication and proper permission validation
  • Well-documented API: Clear documentation with example requests and responses
  • Cache Support: Intelligent caching to improve response times and reduce server load

Use Cases

  • Building custom front-end interfaces for WooCommerce stores
  • Developing mobile applications that need to display product data
  • Creating external integrations with other systems
  • Developing custom reporting tools
  • Any application that needs detailed product variation data

Technical Details

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.

API Documentation

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

Parameters:

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.

Example Response:

`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” } ] } ] } ] `

Headers:

When using pagination, the response includes the following headers:

  • X-WP-Total: The total number of products found
  • X-WP-TotalPages: The total number of pages

Privacy Policy

This 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.

Security

This plugin supports two authentication methods for accessing the REST API endpoint:

  1. WooCommerce API Keys (Basic Authentication)

– 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)

  1. WordPress User Authentication

– 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.

Support

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: info@ninoxnet.com

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.7.4
这个插件是可用的下载,适用于您的站点。