Waste Pilot · Developer Documentation
Multi-tenant operations API for dumpster rental companies
Understand the platform. Build with it. Integrate with it.
Technical guide to the ArcaneWaste Laravel backend—JWT-authenticated V1 API, order lifecycle, dispatch, Finix payments, fleet management, and event-driven side effects for company, customer, driver, and admin clients.
Platform architecture
How the system connects
Derived from the actual Laravel route tree, services, and integrations. Hover or focus a node to learn what it does—click to open documentation.
Domain model
What runs on the platform
Waste Pilot connects four actor types through shared domain models. Companies operate as tenants; every query must scope by company_id explicitly.
Request flow
How a request moves through the platform
From user action to JSON response—select a step to see inputs, outputs, and related docs.
User action
Customer or company user initiates an operation—place order, approve, dispatch, or pay.
Related documentation →API request
Laravel routes the request through actor middleware—jwt.verify, checkType, ensure.company.user, and optional subscription gates.
Related documentation →Validation
FormRequest classes validate input. Billing routes require asset_specification_id; order mutations check company subscription where configured.
Related documentation →Billing quote
BillingService::calculateBilling resolves pricing profile, taxes, promotion, and payment term upfront amount.
Related documentation →Business logic
OrderService persists order, pricing snapshot, payment term snapshot, line items, and status history—then dispatches domain events.
Related documentation →Database
MySQL stores cents for money fields. Detail charges live in order_line_items; aggregates on the order row use MoneyCast.
Related documentation →Response
Controllers return sendSuccessResponse JSON. Events trigger async side effects—FCM, wallet, notifications.
Related documentation →Explore
Explore the platform
Popular
Documentation developers read first
- Authentication Login, JWT Bearer headers, refresh tokens, and actor-type middleware.
- Order lifecycle Follow an order from pending through approval, payment, dispatch, and completion.
- Asset assignment How companies assign assets at approval and operational status rules for dispatch.
- Dispatch context Daily jobs plus eligible drivers, trucks, assets, lots, and stations in one API response.
- Deployment Staging auto-deploy, migrations, optimize, and supervised queue workers.
Developer path
Your integration journey
Resources