Connecting WooCommerce
Turn your WordPress site into a headless commerce engine.
Prerequisites#
- WordPress 5.8+
- WooCommerce 6.0+
- SSL Certificate enabled (https://)
- Pretty Permalinks must be enabled in WP Settings
Step 1: Create API Keys#
Unlike Shopify, WooCommerce uses a Key/Secret pair.
- Go to WooCommerce > Settings > Advanced.
- Click REST API > Add Key.
- Description:
RetailCoder Sync. - User: Select an Administrator account.
- Permissions: Select Read/Write.
Step 2: Server Configuration#
If you host on Nginx or Apache, ensure the `Authorization` header is not stripped. If connection fails, add this to your `.htaccess`:
apache
# Handle Authorization Header
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]Legacy API
Do not enable the "Legacy REST API" option. RC:OMS uses the modern v3 endpoints for better performance.