Generating/Enabling a Woocommerce API in WordPress is convenient. Just follow this tutorial and get to know what to do next.
Step 1: Head to your WordPress dashboard.
Step 2: Then Navigate to WooCommerce > Settings > Advanced >> REST API.
Note: Keys/Apps was found at WooCommerce > Settings > API > Key/Apps prior to WooCommerce 3.4.
Step 3: Now click on the Add Key button. After that, you will be taken to the Key Details screen.
Step 4: Add a Description.
Step 5: Select the User you would like to generate a key for in the dropdown.
Step 6: Where it says this – Select a level of access for this API key — Read access, Write access or Read/Write access.
YOU MUST CHOOSE READ/WRITE ACCESS, ELSE it WILL NOT WORK FOR YOU…
Step 7: Click Generate API Key and WooCommerce will create API keys for that user.