Skip to main content

WooCommerce Integration Template

Tool 1: Check Stock

Configuration in the Famulor Interface

| Name* | WooCommerce Lagerbestand | | Function Name* | check_woo_stock | | HTTP Method | GET | | Endpoint* | https://{{WOO_SITE_URL}}/wp-json/wc/v3/products/{product_id} |
Success Template: "{{productName}}: {{#if stockQuantity}}{{stockQuantity}} pieces available{{else}}{{stockStatus}}{{/if}}, price: {{price}}€"

Configuration in the Famulor Interface

| Name* | WooCommerce Kundensuche | | Function Name* | search_woo_customer | | HTTP Method | GET | | Endpoint* | https://{{WOO_SITE_URL}}/wp-json/wc/v3/customers |
Success Template: "Customer found: {{firstCustomer.first_name}} {{firstCustomer.last_name}}, {{firstCustomer.orders_count}} orders, customer since {{firstCustomer.date_created}}"

Tool 3: Create Order

Configuration in the Famulor Interface

| Name* | WooCommerce Bestellung | | Function Name* | create_woo_order | | HTTP Method | POST | | Endpoint* | https://{{WOO_SITE_URL}}/wp-json/wc/v3/orders |
Success Template: "Order #{{orderNumber}} created. Total amount: {{total}}€. The customer will receive a confirmation email."