WooCommerce API keys
How to create the REST API keys in WordPress and how to give them to the app.
Before you start
- The shop must run on HTTPS with a valid certificate.
- You need an administrator account in WordPress.
Creating keys in WordPress
- In the WordPress admin open WooCommerce, Settings, the Advanced tab, and then REST API.
- Press Add key.
- For the description write something you will recognise, for example “ERP Connector”.
- For the user choose an administrator.
- For the permissions choose Read/Write.
- Press Generate API key.
WooCommerce shows two values, once only:
- Consumer Key, starting with
ck_ - Consumer Secret, starting with
cs_
Copy them before you close the page.
In the app
Under Connections press “Add connection” and choose WooCommerce.
Connection name
For you, for example “Main e-shop”.
Shop address
The shop’s home page, with https://. If the shop redirects (for example to www), enter the final address.
Consumer Key and Consumer Secret
The two values from WordPress. The Secret is stored encrypted and never shown again.
Press “Save and check”.
If the check fails
| Message | What to check |
|---|---|
| The API keys were refused | That you copied the whole keys and that they have Read/Write permission. |
| The address does not look like a WooCommerce shop | That you entered the shop’s home page. |
| The shop redirects to another address | Enter the final address, with https:// or www. |
| The WordPress REST API is not available | That WordPress permalinks are not set to “Plain”, and that no security plugin closes /wp-json/. |
| The SSL certificate is not valid | Renew the shop’s certificate. |
Revoking
To cut access, revoke the key in WordPress and delete the connection in the app. On deletion, the stored keys are erased for good.