WooCommerce orders on self-hosted Gotify

WooCommerce orders on self-hosted Gotify

A self-hosted shop already runs WordPress. A self-hosted Gotify server is the matching pocket: Android push you control, no WhatsApp Pro, no “notify Slack on order” plugin to abandon. The AlertHub WordPress plugin listens to any WooCommerce hook. Gotify is just a Connection.

Hook tables and title recipes live in WooCommerce order alerts. This post is the last mile and the contrast with Shopify → ntfy (SaaS store, hosted topic vs self-hosted stack).

Gotify must be HTTPS and reachable from the internet. WordPress does not call Gotify; AlertHub does.

What should buzz

HookSuggested levelGotify priority
woocommerce_payment_completeWarning if you fulfill from the phone; Info if volume is high5 or —
woocommerce_order_status_failedWarning5
woocommerce_low_stockWarning5
woocommerce_order_status_cancelledWarning5
High-ticket custom snippetCritical8

Only warning and critical leave AlertHub. Hundreds of small paid orders as warning will train you to ignore Gotify — keep those at info and page on failed pay / low stock / large carts.

Setup (once)

  1. Plugin + project key under Tools → AlertHub (WordPress docs).
  2. Add the WooCommerce hooks from the order guide ({{0}} is the order id on payment complete).
  3. Gotify Apps → paste https://your-gotify/message?token=… in Connections → Gotify.

Do not install a second WooCommerce-to-Gotify plugin.

Alert 1: Paid order (phone fulfillment)

woocommerce_payment_complete at warning if you pack from Android. Title WooCommerce paid order #{{0}}. If the shop is busy, drop this to info and keep failures louder.

Alert 2: Payment failed

woocommerce_order_status_failed at warning (priority 5). Same leak as Stripe → Gotify: if you also sell SaaS on Stripe, one AlertHub project can hold both shops — use ah_source (WooCommerce vs Stripe).

Alert 3: Low stock

woocommerce_low_stock at warning. Ads against an empty SKU are more expensive than a Gotify ping. Keep it off critical unless that product is the store.

Ideas to squeeze more value

  • Security vs commerce. Failed logins on ntfy or a second Gotify app; orders on this app. Two lock-screen personalities.
  • Founder Gotify, warehouse Slack. Same hooks — hybrid on-call.
  • High-ticket only. info for everything, plus a small PHP snippet / second hook for totals above a threshold at critical.
  • Rotate Gotify, not WordPress. One token in Connections.

FAQ

Does WooCommerce POST to Gotify?
No. Plugin → AlertHub → Gotify.

LAN-only Gotify?
Will not receive cloud calls. Public HTTPS reverse proxy.

Can every new order stay off the phone?
Yes. Level info on woocommerce_new_order / payment_complete.

Next steps

Keep the WooCommerce hooks, paste Gotify, and place a sandbox paid order.

Related: Gotify setup · WooCommerce to Slack/Telegram · Shopify → ntfy