Api

Modules

The engine's API modules, grouped by what they cover, with one page per module.

Check here before writing your own request: the engine probably has a module for it. A module is a small object of plain async functions plus a queries object of TanStack Query options, built on the shared client. Import each from its own subpath, for example @salla.sa/twilight-theme-engine/api/cart.

Every module page follows the same order: what it is for with a minimal example, a table of methods, the query keys, and gotchas. For how to call a module in a loader or a component, see the Overview.

Catalog

ModuleCovers
productOne product, or a list from any source (latest, offers, brands, search and more)
categoryOne category, or the whole category tree
brandsA page of the brands directory, or one brand
homeThe home page components the merchant arranged
pageOne custom store page (such as "About us") by slug
menuThe header and footer navigation menus
blogArticles, categories, tags and authors

Shopping

ModuleCovers
cartOne cart by id, with loyalty and gift information
wishlistThe products the customer saved, paged by number
orderOrder lists, one order with shipments and ratings, and the thank-you data

Customer

ModuleCovers
userThe signed-in customer's profile, or null for a guest
profileDeleting the account and saving a preference
walletWallet balance and a page of transactions
loyaltyThe loyalty program and the customer's points balance
notificationThe customer's notifications, and marking them read

Store

ModuleCovers
storeStore info, theme settings, languages, currencies and payments in one request
translationsThe platform's translation messages for one language, and the merchant's own wording
advertisementThe merchant's announcement bars, and which ones a page shows
appsSnippets and settings of the installed apps

Next

Missing an endpoint? Write your own.

On this page