I run an e-commerce application built entirely on Laravel and I need a small, well-documented API endpoint that keeps track of three critical events: order placement, payment capture and refund issuance. The goal is simple—each time one of those actions occurs, the endpoint should log the payload, return a clean JSON response and (optionally) trigger a webhook so that downstream services such as analytics or accounting can consume the data in real-time. Here is what I am looking for: • A REST-ful route (or set of routes) inside my existing Laravel project that accepts secure POST requests for OrderPlacement, Payment and Refund events. • Validation rules that reject malformed payloads with clear error messages. • A concise Model + Migration for persisting the raw transaction data (MySQL). • Basic token or Laravel Sanctum authentication so only trusted services can hit the endpoint. • Unit tests covering happy paths and common failure scenarios (PHPUnit). • A short markdown file explaining the route URL, required headers, example JSON bodies and how to add new event types later. Acceptance criteria 1. Hitting the endpoint with the provided sample payloads returns HTTP 200, persists the record and echoes back an id. 2. Bad or missing fields return HTTP 422 with validation details. 3. All code follows PSR-12, runs on PHP 8.1+, and passes the included test suite. If you have recent experience with Laravel API development, Sanctum/Passport and log monitoring, you should find this a straightforward task. Feel free to suggest any lightweight monitoring package or queue implementation if it keeps the core logic clean.