Reputation: 11
I have encounter 404 always in woocommerce api access I set my permalink into post-name I have 2.5.2 version woocommerce I have no firewall problem
but when i type https://www.example.com/wc-api/v3/products no matter with my consumer key and secret or not it has 404 problem. I cannot access the door file of woocommerce api at all
Do anybody have any ideas to help me enter the woocommerce API? I am really of gratitude of your help
Best regards
Upvotes: 1
Views: 2196
Reputation: 11
Please check your API endpoints. You have used wc-api/<version code>
. In the latest version of woocommerce it's /wp-json/wc
.
Check this document here for reference: https://woocommerce.github.io/woocommerce-rest-api-docs/?php#request-response-format.
Hope that helps... Best of Luck Cheerz, Big J
Upvotes: 0
Reputation: 505
Try going to Settings -> Permalinks
on the Admin Panel.
In the Default Settings
radio group, select the "Post name" one.
Save the changes.
Upvotes: 1