WooCommerce API
We have used some WooCommerce default APIs in our API plugin. For using those APIs, you need to follow the below instructions.
Requirements
It is required to turn on the WordPress permalinks on Settings > Permalinks.
Enable REST API
To enable the REST API within WooCommerce, visit the WooCommerce > Settings > Advanced > Legacy API and tick the Enable REST API checkbox.
Generate API keys
WooCommerce REST API works on a key-based system for controlling access. These keys are associated with WordPress users on your website
To create or manage keys for a specific WordPress user, go to WooCommerce > Settings > Advanced > REST API. Then click on REST API tab, after that, select Keys/Apps tab section.
Here in the user field, select the user for whom you would like to generate a key and add a Description. Choose the level of access to this API key, which can be either Read access, Write access or Read/Write access. Then select the Generate API Key button, and WooCommerce will generate an API key for that User.
Now keys have been generated. You will see two new keys, a QRCode and a Revoke API Key button. These two keys are your Consumer Key and Consumer Secret. See the screenshot given below.
Copy your consumer secret and consumer key in the application that uses the WooCommerce API. It is required to add both the keys within the WooCommerce API settings of the PGS Woo API plugin. For this, again go to App Settings > API Settings. Then select WooCommerce API section.Here paste the consumer key and consumer secret that you have already copied. See the screenshot given below
For more details, please check the links given below:
https://docs.woocommerce.com/document/woocommerce-rest-api/
https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API