If the keys are correct, make sure that the keys have correct permissions (If you are reading and writing data, then make sure the permission is set to “Read/Write”) Libraries ↑ Back to topįrequently Asked Questions ↑ Back to top Why am I getting “woocommerce_rest_cannot_view” or 401 error while making a request? ↑ Back to topĪs the first step, make sure that you are using the correct API keys. Developer documentation ↑ Back to topįind the REST API documentation at: WooCommerce REST API Docs. Legacy REST API is deprecated and should be removed from WooCommerce soon, as an alternative there’s a new REST API that integrates the WordPress REST API, this is the WooCommerce current REST API and it’s also enabled by default. Note: legacy REST API was found at WooCommerce > Settings > API prior to WooCommerce 3.4. To enable the legacy REST API within WooCommerce, go to WooCommerce > Settings > Advanced > Legacy API and tick the Enable the legacy REST API checkbox. Use this step-by-step guide here on how to do that. Learn more about REST API at: WooCommerce REST API Client Library. The Consumer Key and Consumer Secret may be entered in the application using the WooCommerce API, and the app should also request your URL. Now that keys have been generated, you should see Consumer Key and Consumer Secret keys, a QRCode, and a Revoke API Key button. Select Generate API Key, and WooCommerce creates API keys for that user.Select a level of access for this API key - Read access, Write access or Read/Write access.Select the User you would like to generate a key for in the dropdown.Note: Keys/Apps was found at WooCommerce > Settings > API > Key/Apps prior to WooCommerce 3.4. Go to: WooCommerce > Settings > Advanced > REST API.To create or manage keys for a specific WordPress user: These keys are linked to WordPress users on your website. The WooCommerce REST API works on a key system to control access. WordPress s must be set to something that is easily human readable at: Settings > s.ĭay and name is a great default, but anything aside from Plain should work Generate API keys ↑ Back to top
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |