Order Events
Fire server-side outbound events on order lifecycle changes (order.created / order.paid / order.status_changed). Deliver to a configurable HTTPS webhook (HMAC-signed, retried) or run an internal IAPI chain (e.g. generate a packing slip PDF and email it) — no open browser required. Configure once.
Endpoints (5)
Create an outbound subscription for order lifecycle events. target_type "webhook" returns a signing_secret ONCE (store it; used to verify X-WP-Signature). target_type "iapi_chain" runs an ordered list of IAPI calls server-side; step outputs thread forward via {{steps.N....}} tokens (see steps). Ready-made signature verifiers (JS + PHP) and docs: https://cdn.websitepublisher.ai/integrations/order-events-webhook-verifiers.zip
No input parameters required.
List outbound order-event subscriptions for this project. Signing secrets are never returned — only has_secret (boolean).
No input parameters required.
List delivery attempts (the audit log) for order-event subscriptions. Filter by order_id, subscription_id, status (pending/delivered/failed/skipped) or event. Shows attempt count, http_status and error for debugging. Set include_payload=true to include the frozen event payload snapshot.
No input parameters required.
Manually fire an order lifecycle event for ONE existing order — the same payload, queue and retry path as a real order transition. Two uses: (1) verify an iapi_chain end-to-end without taking a real payment, (2) reprint/redeliver orders that changed state while no subscription existed, or whose delivery failed. WARNING: deliveries are REAL (chains send real mail and print real documents) — run with dry_run=true first to see which subscriptions would fire. By default an order+event that was already delivered to a subscription is skipped (uk_dedup); force=true writes a distinct replay dedup_key so the original delivery row and audit trail are preserved. Check the outcome per subscription in the results array, and afterwards in list-deliveries.
No input parameters required.
Delete an order-event subscription by id.
No input parameters required.
MCP Tool Names
When using this integration through an AI assistant (Claude, ChatGPT, Cursor, etc.), the endpoints are available as MCP tools:
| Endpoint | MCP Tool Name |
|---|---|
| create-subscription | order_events_create_subscription |
| list-subscriptions | order_events_list_subscriptions |
| list-deliveries | order_events_list_deliveries |
| fire-event | order_events_fire_event |
| delete-subscription | order_events_delete_subscription |
Website