PortalOrderController
| Base path | /api/portal/orders |
| Module | Inventory & Portal |
| Endpoints | 7 |
| OpenAPI tag | Portal Orders |
| Source | backend/src/main/java/com/motorph/payroll/controller/PortalOrderController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
POST | /api/portal/orders | PORTAL_CUSTOMER | createOrder() |
GET | /api/portal/orders | PORTAL_CUSTOMER | listOrders() |
GET | /api/portal/orders/summary | PORTAL_CUSTOMER | summary() |
GET | /api/portal/orders/recent-items | PORTAL_CUSTOMER | recentItems() |
GET | /api/portal/orders/checkout-defaults | PORTAL_CUSTOMER | checkoutDefaults() |
GET | /api/portal/orders/{orderId} | PORTAL_CUSTOMER | getOrder() |
DELETE | /api/portal/orders/{orderId} | PORTAL_CUSTOMER | cancelOrder() |
Notes
GET /api/portal/orders— The customer's orders, newest first.GET /api/portal/orders/summary— How many of the customer's orders are in each status.GET /api/portal/orders/recent-items— Items the customer ordered recently, for "Buy again".GET /api/portal/orders/checkout-defaults— Delivery details to start checkout with.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: PortalOrderServiceImpl.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| CustomerOrder | customer_order | Yes |
| InventoryItem | inventory_item | Yes |
| PortalUser | portal_user | — |
| Warehouse | warehouse | Yes |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.