Comfort Oak

Commerce

Cart and checkout are available to guests; account, wishlist, and order history need a customer token. Payments support Razorpay, COD, and bank transfer.

Cart & checkout

GET /api/v1/cart Current cart
POST /api/v1/cart Create / replace cart
PATCH /api/v1/cart/items Update line items
DELETE /api/v1/cart/items/{id} Remove line item
POST /api/v1/checkout Place order
POST /api/v1/checkout/coupon Validate coupon
POST /api/v1/checkout/{order}/confirm Confirm payment
GET /api/v1/shipping/quote Shipping quote
GET /api/v1/orders/track/{number} Guest tracking

Customer account

All routes below require auth:customer.

PUT /api/v1/account/profile
PUT /api/v1/account/preferences

GET|POST /api/v1/addresses
GET|PUT|PATCH|DELETE /api/v1/addresses/{id}
POST /api/v1/addresses/{id}/default

GET /api/v1/orders
GET /api/v1/orders/{id}

GET|POST /api/v1/wishlist
DELETE /api/v1/wishlist/{product}

Staff commerce

Orders, customers, and coupons under /api/v1/admin with orders.* permissions.

Demo coupon from seeders: WELCOME10. Razorpay keys are configured in Admin → Settings → Payments.