Title: Cannot create a product using API
Last modified: July 28, 2022

---

# Cannot create a product using API

 *  Resolved [ggonpereira](https://wordpress.org/support/users/ggonpereira/)
 * (@ggonpereira)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-a-product-using-api/)
 * 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](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.](https://wordpress.org/support/users/rainfallnixfig/)
 * (@rainfallnixfig)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-a-product-using-api/#post-15868654)
 * Hi [@ggonpereira](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [html](https://wordpress.org/support/topic-tag/html/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mirko P.](https://wordpress.org/support/users/rainfallnixfig/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/cannot-create-a-product-using-api/#post-15868654)
 * Status: resolved