Title: Rest API Post Request
Last modified: May 9, 2024

---

# Rest API Post Request

 *  Resolved [assad1999](https://wordpress.org/support/users/assad1999/)
 * (@assad1999)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/rest-api-post-request-2/)
 * I have checked in my two store. The get request is working well but when I do
   a post request then I am getting this response:
 * {
 *     “code”: “woocommerce_rest_product_exists”,
 *     “message”: “Cannot create existing product.”,
 *     “data”: {
 *         “status”: 400
 *     }
   }Even, I don’t have this product in my both stores. Could you elaborate
   how to fix this.Note;I am using Post Man desktop application to test the Woocommerce
   API and the get request working wellWaiting for your response,Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/rest-api-post-request-2/#post-17748782)
 * Hi [@assad1999](https://wordpress.org/support/users/assad1999/)
 * The error message you’re encountering usually occurs when a product with the 
   same SKU or ID already exists in your store. The WooCommerce API prevents the
   creation of duplicate products with the same SKU or ID.
 * Even if you can’t see the product in your store, it might still exist in the 
   database. I would recommend checking your trash and also any drafts you might
   have, as the product could be hidden there.
 * If you’ve already checked these locations and you’re still experiencing this 
   issue, please try running a database cleanup. This can be done through WooCommerce
   > Status > Tools > Expired Transients.
 * If the problem continues, we recommend asking development questions on the #developers
   channel of the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   Many of our developers hang out there and will be able to offer insights into
   your question.
 * Thanks!

Viewing 1 replies (of 1 total)

The topic ‘Rest API Post Request’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/rest-api-post-request-2/#post-17748782)
 * Status: resolved