How to get your Consumer Key, Consumer Secret, and Store URL
?p=123 URLs (plain permalinks), the REST API will not work.
Go to Settings → Permalinks and choose Post name.
The REST API is enabled by default in WooCommerce 3.5+. To confirm it is on:
You will see two values after generation:
| Field | Example value | Used as |
|---|---|---|
| Consumer Key | ck_a1b2c3d4e5f6... |
EcomCentral → consumer_key |
| Consumer Secret | cs_a1b2c3d4e5f6... |
EcomCentral → consumer_secret |
Your Store URL is simply the base URL of your WordPress / WooCommerce site.
https://myshop.com, use https://myshop.comhttps://myshop.com/store/wp-json or /wc/v3 — EcomCentral appends the correct path automaticallyhttps://yourstore.com/wp-json/wc/v3/system_status in your browser — it should return JSON (you may be prompted for HTTP Basic credentials).
| Field | Value to enter |
|---|---|
| Connection Name | A descriptive label, e.g. My Main Store |
| Environment | Production (or Staging if testing) |
store_url | Your store base URL, e.g. https://myshop.com |
consumer_key | The ck_... value from Step 2 |
consumer_secret | The cs_... value from Step 2 |
After saving, go to WooCommerce in the sidebar and click ⚡ Test next to your store. A successful response shows:
| Feature | Required Permission |
|---|---|
| View Orders | Read |
| View Products / Stock levels | Read |
| Update Order Status | Write |
| Add Tracking to Order | Write |
| Update Stock Quantity | Write |
| Test Connection | Read |
| Status | Meaning | Typical next step |
|---|---|---|
| Pending | Order placed, payment not yet received | Wait for payment or cancel |
| Processing | Payment received, order being fulfilled | Pack and ship; add tracking |
| On Hold | Awaiting action (e.g. bank transfer confirmation) | Confirm payment, then process |
| Completed | Order fully fulfilled and shipped | No action needed |
| Cancelled | Order cancelled by customer or store | Issue refund if already charged |
| Refunded | Order refunded (fully or partially) | — |
| Failed | Payment failed or was declined | Contact customer; cancel or retry |
The Consumer Key or Consumer Secret is incorrect. Double-check you copied them exactly (they're case-sensitive). Regenerate if needed.
Permalinks are set to Plain. Go to Settings → Permalinks, choose any other option, and click Save.
Your store must be served over HTTPS. Ensure your SSL certificate is valid. On localhost, disable CURLOPT_SSL_VERIFYPEER only for development.
The API key user does not have Administrator role, or a security plugin (Wordfence, Sucuri) is blocking the REST API. Check your security plugin's settings to whitelist /wp-json/.
WooCommerce only shows the Consumer Secret once. Delete the key in WooCommerce → Settings → Advanced → REST API and generate a new one.
The key may have Read-only permission. Regenerate with Read/Write. Also confirm there are orders in your store under WooCommerce → Orders.