Woocommerce Chatfuel Integration Plugin API

Woocommerce Chatfuel Integration Plugin API

The following API endpoints require Wcoocommerce Chatfuel Integration Plugin to be installed and activated on your WordPress Website. The plugin can be downloaded here.

Supercharge your Woocommerce store with Facebook Messenger bot ! 

Chatfuel, is a chatbot builder platform which provides an easy way to build your interactive chatbot on Facebook messenger via simple interface. Woocommerce Chatfuel Integration plugin unlocks the possibilities to integrate your online store with Chatfuel through multiples endpoints below. The following endpoints can be used with JSON API plugin in Chatfuel to dynamically pulling various data from your Woocommerce store. 

This is the base URL for all the endpoints. Replace yourdoamin.com to your actual website domain and append subsequent path to get various data from your website. 

Base URL 

GET https://yourdomain.com/wp-json/wp-chatfuel/v1

1) Get posts 

/posts?[ count=number_of_post& ][ orderby=posts_order_by& ][ order=posts_order& ][ status=posts_status& ][ exc_cat=exclude_category_ids& ][ inc_cat=include_category_ids& ][ search=search_query& ][ id=ID ]

– number_of_post

number of posts to pull , default 10.

– posts_order_by

order posts by, default ‘date’.

available : none | name | title | author | date | rand

– posts_order

designates the ascending or descending order of the ‘orderby’ parameter, default ‘DESC’.

available : ASC | DESC

– posts_status

status of a post, default ‘publish’.

available : publish | pending | draft

– exclude_category_ids

comma-separated category ids to exclude, eg : 1,2,3

– include_category_ids 

comma-separated category ids to include, eg : 1,2,3

– search_query

text query to search in posts, eg : chatfuel

– ID

to get single post by id, eg : 32.

2) Get taxonomy ( Post categories & tags ) 

/terms?[ tax=taxonomy& ][ count=number_of_tax& ][ orderby=tax_order_by& ][ order=tax_order& ][ hide_empty=show_empty_taxonomy& ][ inc=include_ids& ][ exc=exclude_ids ]

– taxonomy

to get categories or tags, default ‘category’

available : category | tag

– number_of_tax

number of categories of tags to pull from, default 0 (to fetch all).

– tax_order_by

order posts by, default ‘name’.

available : none | name | id | slug

– tax_order

the ascending or descending order of the ‘orderby’ parameter

available : ASC | DESC

– show_empty_taxonomy

to show empty taxonomy or not, default 0.

available : 1 (true) | 0 (false)

– include_ids

comma-separated ids for taxonomies to be included. Eg. 1,2,3

–  exclude_ids

comma-separated ids for taxonomies to be excluded. Eg. 1,2,3

3) Get products 

/posts?type=product&[ count=number_of_product& ][ orderby=product_order_by& ][ order=product_order& ][ status=product_status& ][ exc_cat=exclude_category_ids& ][ inc_cat=include_category_ids& ][ search=search_query& ][ id=ID ]

– number_of_product

number of products to pull , default 10.

– product_order_by

order posts by, default ‘date’.

available : none | name | title | author | date | rand

– product_order

designates the ascending or descending order of the ‘orderby’ parameter, default ‘DESC’.

available : ASC | DESC

– product_status

status of a post, default ‘publish’.

available : publish | pending | draft

– exclude_category_ids

comma-separated product category ids to exclude, eg : 1,2,3

– include_category_ids 

comma-separated product category ids to include, eg : 1,2,3

– search_query

text query to search in posts, eg : chatfuel

– ID

to get single product by id, eg : 32.

4) Get product category or tag 

/terms?[ tax=taxonomy& ][ count=number_of_tax& ][ orderby=tax_order_by& ][ order=tax_order& ][ hide_empty=show_empty_taxonomy& ][ inc=include_ids& ][ exc=exclude_ids ]

– taxonomy

to get product categories or tags, default ‘category’

available : product_cat | product_tag

– number_of_tax

number of categories or tags to pull from, default 0 (to fetch all).

– tax_order_by

order posts by, default ‘name’.

available : none | name | id | slug

– tax_order

the ascending or descending order of the ‘orderby’ parameter

available : ASC | DESC

– show_empty_taxonomy

to show empty taxonomy or not, default 0.

available : 1 (true) | 0 (false)

– include_ids

comma-separated ids for taxonomies to be included. Eg. 1,2,3

–  exclude_ids

comma-separated ids for taxonomies to be excluded. Eg. 1,2,3

Should you encounter any issue, please leave a comment below or contact us for further assistance. 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu