WooCommerce REST API
Generate WooCommerce REST API credentials for Live Feed connections
Overview
If your source store doesn't have PrimeLink installed, you can use WooCommerce's built-in REST API to connect it to your destination store. This allows you to synchronize products from any standard WooCommerce store to your PrimeLink-enabled store.
WooCommerce REST API uses Consumer Key and Consumer Secret for authentication, which are generated in the WooCommerce admin panel.
Generating REST API Credentials
Step 1: Access REST API Settings
On your source WooCommerce store (the store you want to import from):
- Navigate to WooCommerce → Settings
- Click on the Advanced tab
- Click on REST API in the left menu
Step 2: Create a New API Key
- Click the Add Key button
- Fill in the key details:
Key Details
- Description: Enter a descriptive name (e.g., "PrimeLink Live Feed Connection")
- User: Select a WordPress user (preferably an admin user)
- Permissions: Select Read (you only need read access for Live Feed)
Step 3: Generate Credentials
- Click Generate API Key
- WooCommerce will generate the Consumer Key and Consumer Secret
- These will be displayed immediately
Step 4: Save Credentials
Copy both values to a secure location:
- Consumer Key: A long alphanumeric string (starts with
ck_) - Consumer Secret: A long alphanumeric string (starts with
cs_)
You'll need both values when setting up the Live Feed connection in PrimeLink.
Using Credentials in PrimeLink
When setting up a Live Feed connection in PrimeLink:
- Go to PrimeLink → Live Feed → Feeds
- Click Add Feed
- Select Source Type: "WooCommerce REST API"
- Enter the source store URL
- Paste the Consumer Key in the Consumer Key field
- Paste the Consumer Secret in the Consumer Secret field
- Click Test Connection to verify
- Save the feed
Managing API Keys
Viewing Existing Keys
In WooCommerce → Settings → Advanced → REST API, you'll see a list of all API keys with:
- Description
- User
- Permissions
- Last access date
- Actions (Revoke/Regenerate)
Revoking Keys
If you need to disable an API key:
- Find the key in the list
- Click Revoke
- Confirm the action
- The key will be immediately disabled
Security Best Practices
- Use Read-only permissions: Live Feed only needs to read product data, not modify it
- Create dedicated keys: Use separate keys for different connections
- Regular rotation: Regenerate keys periodically for better security
- Monitor usage: Check the "Last access" column to identify unused keys
- Revoke unused keys: Delete keys that are no longer needed
- Use HTTPS: Always use secure connections when transmitting credentials
Troubleshooting
Connection Failed
- Verify Consumer Key and Secret are correct (no extra spaces)
- Check that the user associated with the key has proper permissions
- Ensure REST API is enabled in WooCommerce settings
- Verify the source store URL is correct and accessible
403 Forbidden Error
- Check that the key has "Read" permissions
- Verify the user associated with the key is active
- Check if any security plugins are blocking REST API access
No Products Returned
- Verify products exist on the source store
- Check that products are published (not draft)
- Ensure the REST API endpoint is accessible
Next Steps
Set up Live Feed connections using WooCommerce REST API credentials
Learn More →Learn about PrimeLink API keys for PrimeLink-to-PrimeLink connections
Learn More →