Webhooks for WooCommerce and Printful
Usually, all you have to do is click a button to connect WooCommerce and Printful together. Sometimes this doesn’t happen. It could be for several reasons. In our case, the issue turned out to be a plugin preventing webhooks from being added.
Before we found the plugin that was causing the problem, we tried to connect manually. We enabled REST API in WooCommerce and set the API key in the Printful plugin. It worked and products started syncing. There was one problem though.
Everything passed the Printful Checklist except for the webhooks.
##### Printful Checklist #####
* Connection to Printful API => OK
* Printful API key is set => OK
* WordPress Permalinks => OK
* WordPress version => OK
* WooCommerce Webhooks => FAIL
* WooCommerce API keys are set => OK
* WooCommerce authentication URL access=> OK
* WordPress remote requests => OK
* WordPress Site URL => OK
* Recent store sync errors => OK
* Write permissions => OK
* PHP memory limit => OK
* PHP script time limit => OK
There needs to be three webhooks for WooComerce. They are located at WooCommerce > Settings > Advanced > Webhooks
. Add the following webhooks if they are missing.
Name | Printful Integration | Printful Integration | Printful Integration |
Status | Active | Active | Active |
Topic | Product deleted | Product updated | Action |
Action | – | – | woocommerce_order_status_processing |
Delivery URL | https://api.printful.com/hook/woocommerce?store=STOREID | https://api.printful.com/hook/woocommerce?store=STOREID | https://api.printful.com/hook/woocommerce?store=STOREID |
Secret | CONSUMER_SECRET | CONSUMER_SECRET | CONSUMER_SECRET |
API Version | WP RESET API Integration v2 | WP RESET API Integration v2 | WP RESET API Integration v2 |
To find STOREID
, go to printful.com/dashboard/store
and click on your store. Your URL will change to printful.com/dashboard/sync?store=STOREID
, except there be numbers instead of STOREID
.
For CUSTOMER_SECRET
, go to Settings > Stores
or visit printful.com/dashboard/settings/STOREID/store-defaults
. There you should see Consumer Secret
.