Skip to main content

PortalOrderController

Base path/api/portal/orders
ModuleInventory & Portal
Endpoints7
OpenAPI tagPortal Orders
Sourcebackend/src/main/java/com/motorph/payroll/controller/PortalOrderController.java

Endpoints​

MethodPathRequiresHandler
POST/api/portal/ordersPORTAL_CUSTOMERcreateOrder()
GET/api/portal/ordersPORTAL_CUSTOMERlistOrders()
GET/api/portal/orders/summaryPORTAL_CUSTOMERsummary()
GET/api/portal/orders/recent-itemsPORTAL_CUSTOMERrecentItems()
GET/api/portal/orders/checkout-defaultsPORTAL_CUSTOMERcheckoutDefaults()
GET/api/portal/orders/{orderId}PORTAL_CUSTOMERgetOrder()
DELETE/api/portal/orders/{orderId}PORTAL_CUSTOMERcancelOrder()

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​

EntityTableTenant-scoped
CustomerOrdercustomer_orderYes
InventoryIteminventory_itemYes
PortalUserportal_user—
WarehousewarehouseYes

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/.