• Resolved ggonpereira

    (@ggonpereira)


    Hello everyone.

    I’m trying to create a product in my store using the WooCommerce API but I can’t. I’m performing a POST to this URL: https://testingwoocommerceapi.epizy.com/wp-json/wc/v3/products and sending my consumer key and secret on the Basic Auth option. When I send the product payload into the JSON I get an HTTP 200 with an HTML of response (https://prnt.sc/dT09quayUEF6). I also tried to send the same request with an OAuth 1.0 and nothing changed, tried another API endpoint, tried on different days, tried GET and POST, etc… nothing is working! Please, what can I do?

    I’m testing through an HTTPS website, hosted on InfinityFree, with WooCommerce Version 6.7.0 and WordPress version 6.0.1, also with pretty permalinks set (using the ‘Post Name’ one).

Viewing 1 replies (of 1 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @ggonpereira,

    Are you running your website on free hosting? epizy.com redirects to infinityfree.net which is a free web hosting service where external API access is not allowed. Can you confirm with your host you’re able to use REST API?

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Cannot create a product using API’ is closed to new replies.