Skip to content

ffl_woo_sync.woocommerce.webhook

Source: apps/ffl_woo_sync/ffl_woo_sync/woocommerce/webhook.py · 1 endpoint(s)

Generated by make api-docs — do not edit by hand.

woo_event

POST /api/method/ffl_woo_sync.woocommerce.webhook.woo_event

Auth (derived from code): Guest — no session; the endpoint verifies the caller itself (HMAC signature, HTTP Basic credentials or a one-time token).

Single WooCommerce webhook entry point (guest, HMAC-verified).

Payload: WooCommerce's webhook JSON body; the X-WC-Webhook-Topic header selects the handler (order.created/updated, product.*, ...). The X-WC-Webhook-Signature header must carry a valid HMAC over the raw body (secret configured in Woo Sync Settings).

Returns: 200 with a minimal JSON body ({ok, topic/handled/error}) on success. 400 when ?site= names a store this POS does not run (only the retail store is connected) and 401 when HMAC verification fails — the two cases that mean "stop delivering here", which is what a 4xx gets WooCommerce to do; the order is not read or processed for either. Every other outcome logs (where there is anything worth logging) and returns 200, so WooCommerce does not retry or auto-disable the webhook over something the caller cannot fix.

apps/ffl_woo_sync/ffl_woo_sync/woocommerce/webhook.py:3089