WooCommerce / REST API
Discover how to easily use Wordpress API to connect to ours
Before you begin...
This guide will explain how to connect a Wordpress WooCommerce 3.4 webshop with Stanley/Stella API to periodically synchronize the product referential.
The guide assumes that you are familiar with WooCommerce and that you already have your WooCommerce running.
It also requires a little bit of development knowledge in order to connect both systems.
In this guide, we will illustrate the integration in the PHP development environment but this could also be realized in any other modern development environment.
Please note that the PHP code provided in this document is for illustration purpose only.
Further technical explanation on the API can be found on this page.
Integration scenario Stanley/Stella API <> WooCommerce
Like a lot of ecommerce solutions, WooCommerce provides 2 ways to import product information:
Manual import via CSV file (can be scheduled) - please refer to this page for a sample implementation
Programmatic import via REST API
At Stanley/Stella, our API provides these 2 capabilities as well. In this scenario, we chose to use the REST API on Stanley/Stella side and the REST API on WooCommerce side.
The integration logic in the middle has been developed in PHP.