- This topic has 1 reply, 2 voices, and was last updated 1 year, 11 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
› Forums › WooCommerce Services › How can WooCommerce Rest API connect your store to other online services?
How to link WooCommerce store to other web services or websites using WooCommerce Rest API.
Steps to connect WooCommerce store to REST API:
Step 1: Click to WooCommerce Settings: Click on WooCommerce go to Advanced Settings click on API tick on the checkbox Enable the REST API. click on Save Changes.
Step 2: Authentication: You must first identify your identity in order to access the data from other WooCommerce websites using the Rest API. you must execute authentication while also creating the Consumer Key and Secret Key for the API, which state the rights in advance with an appropriate description.
After filling the required details like Descriptions, User, Permissions.
Then click on Generate API Key, WooCommerce generates the API Key for that user.This generated key will work as a secret password.
Step 3: Check Information: Keys have been generated, you can see Consumer Key and Consumer Secret keys, a QRCode, and a Revoke API Key button.
Step 4: Check the REST API is connected or not: You must configure Postman’s fields for the request type, request URL, and authorisation tab settings. Choose basic auth for authentication, and then input your WooCommerce consumer key and consumer secret key into the username and password fields.
wp-json/wc/v2/orders is the request URL that WooCommerce will use to test an instance. The complete URL on localhost can resemble https://local.wordpress.dev/wp-json/wc/v2/orders. Change this to use the URL of your website. If everything went smoothly, you should now see the JSON answer from the API.
Step 5: Enable Legacy Rest API: Go to WooCommerce > Settings > Advanced > Legacy API and check the Enable the legacy REST API checkbox. This will enable the legacy REST API within WooCommerce.
Read More about REST API