1. Home
  2. Knowledge Base
  3. WooCommerce
  4. Setting up WooCommerce User Account and API

Please check WooCommerce API requirements first.

Log in to the back-end of WordPress website, set permalink to “Post Name”.

Enable the Rest API:

Select “Keys/Apps”, and click “Add Key”.

Select an administrator as user, select Read/Write for Permissions, then click “Generate API Key”.

 

Please leave this screen on and Login to the system Setup.

Input your website URL and copy paste Consumer Key and Secret to the setting screen, then click “Test Connection”.

If you need to upload images from WooPOS to WordPress Media Library, please install WooCommerce Media API plugin.

After you installed and activated the Media API plugin, test image uploading here:

***Optional: (Username and password are not required if you use WooCommerce Media API). You can also input the administrator username and password. Try XML-RPC method first. If it’s not working, try JWT method. Download and install JWT Authentication for WP REST API. Please follow the requirements and configuration on JWT plugin page.

***Optional: (The following steps are not required if you don’t use JWT)
Put these lines at end of <IfModule mod_rewrite.c> section, before </IfModule> in .htaccess file:
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) – [E=HTTP_AUTHORIZATION:%1]
SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
Put this line after define(‘NONCE_SALT’) in wp-config.php file: (please change the secret key to any random charactors)
define(‘JWT_AUTH_SECRET_KEY’, ‘-?-K8cD>75:yhE&72xy@/n9fw|SE~N=:?(P$MarwH A9@-ku:4jbL1Nb6,j%.#kR’);

 

Finally, check rest of settings and click Save.

Was this article helpful?