Title: API REST Woocommerce
Last modified: March 2, 2020

---

# API REST Woocommerce

 *  [ruanolucas](https://wordpress.org/support/users/ruanolucas/)
 * (@ruanolucas)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/api-rest-woocommerce/)
 * I generated a WordPress plugin that uses Api rest Woocommerce to send products
   and orders data to external marketing platform. Currently, it is in my development
   environment.
 * This plugin connects to an external marketing platform. But, I try to change 
   the person who installs my custom plugin does not need to have to go to the WooCommerce
   plugin settings to enable the API REST and get a consumer key and secret for 
   put on my custom plugin (this must be resolved in the background process for 
   the common person. Otherwise, there are many steps).
    I want to solve it automatically
   by code when the person installs/activate my custom plugin. Can someone tell 
   me how from the code of my plugin I can activate the REST API Woocommerce and
   get a new consumer key and secret for use in my custom plugin? Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [ruanolucas](https://wordpress.org/support/users/ruanolucas/)
 * (@ruanolucas)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/api-rest-woocommerce/#post-12500623)
 * I generated a WordPress plugin that uses Api rest Woocommerce to send products
   and orders to an external marketing platform. Currently, it is in my development
   environment.
 * I try to prevent the person from having to manually enable the WC REST API and
   generate an application key. Because, there are people who do not understand 
   much of this.
 * It can be done in my custom plugin automatically…:
    – Check if Api Rest Woocommerce
   is enabled. – Create a new credentials (key and secret) application.

Viewing 1 replies (of 1 total)

 The topic ‘API REST Woocommerce’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [ruanolucas](https://wordpress.org/support/users/ruanolucas/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/api-rest-woocommerce/#post-12500623)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
