WooCommerce
Functions and settings available for the WooCommerce endpoint
Last updated
Was this helpful?
Functions and settings available for the WooCommerce endpoint
Last updated
Was this helpful?
:
The following list of functions are available in the WooCommerce system:
Function for retrieving coupon information from WooCommerce via the REST API. For more details on the schema that is returned from WooCommerce and filters that are available please see the documentation at:
This function is has the following filters that are commonly used:
Filter
Example
Description
after
filter_after = "CURRENT -15 minutes"
Used to filter coupons that have been created/updated in the previous 15 minutes.
Function for retrieving customer data from WooCommerce via the REST API. For more details on the schema that is returned from WooCommerce and filters that are available please see the documentation at:
This function has the following filters that are commonly used:
Filter
Example
Description
after
filter_after = "CURRENT -15 minutes"
Used to filter customers that have been created/updated in the previous 15 minutes.
Filter
Example
Description
after
filter_after = "CURRENT -15 minutes"
Used to filter orders that have been created in the previous 15 minutes.
This function is has the following settings available:
Filter
Example
Description
after
filter_after = "CURRENT -15 minutes"
Used to filter products that have been created in the previous 15 minutes.
The following settings are available for this function:
Setting
Values
Description
allow_product_search
true
/ false
If set to true
the function will allow the lookup of existing product when the id
has not been set in the payload. As default the system will attempt to match the slug
search_key
Valid search key from the WooCommerce product API.
Defaults to slug
, can optionally be set to sku
or attribute_term
Setting
Values
Description
allow_order_update
true
/ false
If set to true
the function will allow the update of existing orders when the id
has been set in the payload out.
There are no additional settings for this function.
Functions lists are expanding weekly, this list was accurate at the date of publishing.
The following settings below are optional for WooCommerce integrations.
WooCommerce web hooks work natively with the HighCohesion system and can be easily setup via the WooCommerce settings area in Wordpress. Follow the steps below to setup the most common Sales Orders web hook, from WooCommerce to HighCohesion:
Login to your Wordpress system and click on the WooCommerce > Settings link from the left hand navigation.
Once on the settings page, click on the "Advanced" tab at the top of the page.
Next click on the "Webhooks" link at the top, just below the tabs.
Now the web hooks page is shown, click the purple button that says "Create new web hook".
On the new web hook form, enter the following information:
Name - Give the web hook notification a name, e.g. Sales orders to HighCohesion
.
Status - Set to Active
Topic - Select the top that you want to be notified about, in this examples "Order Create"
Secret - Leave blank
API Version - Select the version required, most select V3.
Once complete, now press save and the WooCommerce system will be setup to send HighCohesion notifications when new records are created.
Function for retrieving sales orders from WooCommerce via the REST API. This function is has the following filters that are commonly used. Please also review the filters in the official WooCommerce () documentation which can also be used in the same filter_
prefixed way in the HighCohesion control panel.
Function for retrieving products from WooCommerce via the REST API. For more details on the schema that is returned from WooCommerce and filters that are available please see the documentation at:
Allows the creation and update of customer records in the WooCommerce system. For details on the WooCommerce customer schema, please visit:
Allows the creation and update of products inside of the WooCommerce system. Public transformation files are available in the HighCohesion control panel. For details on the WooCommerce product schema, please visit:
Allows the creation and update of orders inside of the WooCommerce system. For details on the WooCommerce customer schema, please visit:
Allows the creation of shipment tracking records against sales orders inside of the WooCommerce system. For details on the WooCommerce customer schema, please visit:
Delivery URL - Set this to your web hook URL for your stream, (see )
For a guide on how to generate your HighCohesion web hook URL, please .