Skip to main content
Version: 2.0.0

Customer & Auth Endpoints

Customer endpoints are only registered when customerAccountsEnabled is on in Settings. All account endpoints require an active session (the customer must be logged in).


Authentication

POST /shop/login
POST /shop/authorize ← form-based login with redirect
POST /shop/ajax-authorize ← AJAX login, returns JSON

Body parameters:

ParameterTypeDescription
loginNamestringEmail or username
passwordstringAccount password
rememberMeboolPersist session

Account

GET  /shop/account                     ← Account dashboard page
POST /shop/account/delete ← Delete account (requires confirmation)
GET /shop/account/login-details ← Login details page
POST /shop/account/login-details/save ← Save email / password changes

Subscriptions

GET  /shop/account/subscriptions       ← Subscriptions page
POST /shop/account/subscriptions/save ← Save subscription preferences

Orders

GET /shop/account/my-orders  ← Order list page
GET /shop/account/my-order ← Order detail page (requires order number query param)

Invoices

GET  /shop/account/my-invoices       ← Invoice list page
POST /shop/account/download-invoice ← Download invoice PDF

Address book

GET  /shop/account/address-book         ← Address list page
GET /shop/account/address-book/new ← New address form
GET /shop/account/address-book/{id} ← Edit address form
POST /shop/account/address-book/save ← Save address
POST /shop/account/address-book/delete/{id} ← Delete address

Wishlists

POST /shop/wishlist/add                       ← Add product to wishlist
POST /shop/wishlist/remove-item ← Remove item from wishlist
GET /shop/account/wishlists ← My wishlists page
POST /shop/account/wishlist-update ← Rename / update wishlist
GET /shop/account/wishlist-share/{id} ← Share wishlist page
POST /shop/account/wishlist-share-post ← Send wishlist share email
POST /shop/account/wishlist-remove-item ← Remove item (account context)
POST /shop/account/wishlist-clear ← Clear all wishlist items
POST /shop/account/wishlist-cart-item ← Move wishlist item to cart

Add to wishlist body parameters:

ParameterTypeDescription
productintProduct yuiId
qtyintQuantity
wishlistintWishlist ID (optional — uses default)

Watchdog (back-in-stock alerts)

POST /shop/watchdog/toggle  ← Subscribe / unsubscribe for a product
POST /shop/watchdog/remove ← Remove a watchdog alert
GET /shop/account/watchdog ← My watchdog page

CSRF & section loading

GET /shop/customer/csrf-token         ← Fetch a fresh CSRF token
GET /shop/customer/section-load/{sid} ← Lazy-load a private data section

section-load is used to defer loading of authenticated sections (e.g. mini-cart item count) on cached pages. The {sid} is a section identifier defined in the theme.


Subscribe (newsletter only)

POST /shop/subscribe

Subscribes an email address to the store newsletter without creating a full account.

Body parameters:

ParameterTypeDescription
emailstringEmail address
firstNamestringOptional first name