WHMCS Ticket Automation Module

Заказчик: AI | Опубликовано: 30.10.2025

I need an addon for WHMCS that exposes a single, configurable endpoint inside the module’s Admin settings. When—and only when—a Successful POST request hits that endpoint containing BOTH a domain name and an email address, the module should: • Validate and sanitise the payload. • Locate an existing client order that matches the supplied email + domain pair. • Open a new support ticket for that client with one hard-coded message. If no matching order is found, the endpoint must return a basic error message and suitable HTTP status code—nothing more. Code expectations The PHP must follow the official WHMCS addon structure, be clearly commented, and avoid obfuscation so future staff can read it easily. Please enforce standard security practices (token checks, input filtering, etc.) to keep the endpoint safe. Deliverables • Fully working module, ready to drop into /modules/addons/ • Step-by-step install and uninstall guide Acceptance criteria • A POST with valid email+domain opens a ticket automatically • A POST with unmatched data returns only the basic error message • No errors in WHMCS logs during testing on v8+ Stick to core WHMCS APIs—no extra frameworks required—and keep everything human-readable.