docs
/
Studio Manager

Actions reference

Every method callable from data-action, data-source or the JavaScript API.

Runtime methods are grouped into namespaces and addressed as namespace.method. The same catalog backs three things: data-action, data-source, and window.appmint in a page script.

18 namespaces. The tables below list the methods most pages use; the full catalog — 211 methods — is what appmint.manifest() returns at runtime.

How to read this

Use as tells you where a method belongs:

Column valueWhere it goes
Actiondata-action — runs on an event
Listdata-source — fetches and sets a context
Binddata-bind — a live value, read-only
—No panel hint; usable from a script

A ● marks the methods surfaced first in the property panel — the common ones.

cart — Storefront cart.

MethodUse asRequired paramsDescription
cart.current ●List—Get the live cart.
cart.add ●ActionidAdd a product to the cart.
cart.remove ●Action—Remove an item.
cart.update ●Actionid, quantitySet / increment / decrement quantity.
cart.clearAction—Empty the cart.
cart.count ●Bind—Total item count (read-only — bind via data-bind="cart.count").
cart.total ●Bind—Subtotal (read-only — bind via data-bind="cart.total").
cart.toggle ●Action—Toggle the cart drawer.
cart.openAction—Open the cart drawer.
cart.closeAction—Close the cart drawer.
MethodUse asRequired paramsDescription
product.list ●List—List products.
product.get ●Action—Get one product.
product.categoriesList—Category tree.
product.brandsList—Brand list.
product.collectionsList—Curated collections.
product.related——Related products.
product.attributes——Facet attributes.

order — Customer orders.

MethodUse asRequired paramsDescription
order.list ●List—List the customer
order.get ●Action—Get an order by id.
order.cancelActionorderNumberCancel an order.
order.guestLookupAction—Guest order tracking.
order.refund——Request a refund.
order.getByNumber——Get by order number.
order.myOrders——All my orders.

storefront — Checkout, shipping, payments.

MethodUse asRequired paramsDescription
storefront.paymentGateways ●List—Available payment gateways.
storefront.checkout ●Action—Checkout the active cart.
storefront.buyNow ●Action—Express single-product checkout.
storefront.config ●List—Public storefront config.
storefront.pricing ●——Calculate price for a product/variant.
storefront.cartPricing ●——Recalculate full cart pricing.
storefront.applyCoupon ●Action—Apply a coupon code.
storefront.validateCoupon ●Action—Validate a coupon.
storefront.activePromotions ●List—Currently-running promotions.
storefront.shippingRates ●ListdestinationShipping rates for a basket + destination.
storefront.verifyAddress ●Actionstreet, city, state, zip, countryValidate a shipping address.
storefront.saveCart ●Action—Persist cart server-side.
storefront.productSearch ●List—Full-text product search.

rental — Equipment / item rental.

MethodUse asRequired paramsDescription
rental.catalog ●List—Browse rental items.
rental.get ●Action—Get a rental item.
rental.availability ●Action—Item availability.
rental.quote ●Actionsku, startDate, endDatePrice for a date range.
rental.book ●Action—Create a booking.
rental.listList—My rentals.
rental.cancelAction—Cancel a rental.

customer — Authentication & customer dashboard.

MethodUse asRequired paramsDescription
customer.current ●Bind—Currently signed-in customer.
customer.isSignedIn ●Bind—Sync sign-in check.
customer.signIn ●Action—Sign in with email + password.
customer.signUp ●ActionfirstName, lastNameCreate an account.
customer.signOut ●Action—Sign out.
customer.resetPasswordAction—Send reset email.
customer.addressesList—Address book.
customer.wishlistList—Get wishlist.
customer.wishlistAddAction—Add to wishlist.
customer.wishlistRemoveAction—Remove from wishlist.

ticket — Support tickets.

MethodUse asRequired paramsDescription
ticket.list ●List—Customer tickets.
ticket.get ●——Get one ticket.
ticket.create ●Actioncollection, subject, messageOpen a ticket.
ticket.guestCreate ●Actioncollection, subject, messageOpen a ticket as a guest.
ticket.guestLookupAction—Look up by email + number.
ticket.collections ●List—Ticket categories.

reservation — Bookings / reservations.

MethodUse asRequired paramsDescription
reservation.list ●List—My reservations.
reservation.get ●——Get one.
reservation.create ●ActionreservationDefinitionId, serviceDate, startTime, customerNameMake a reservation.
reservation.availableSlots ●ListreservationDefinitionId, serviceDateOpen slots.
reservation.cancelAction—Cancel.
reservation.definitions ●List—Reservation services.

events — Public events.

MethodUse asRequired paramsDescription
events.list ●List—Browse events.
events.get ●——Get an event.
events.ticketTypesList—Ticket types/prices.
events.register ●ActioneventId, ticketTypeIdFree registration.
events.purchaseTickets ●Action—Buy tickets.

repository — READ-ONLY generic data access.

MethodUse asRequired paramsDescription
repository.find ●List—Filter query against any datatype.
repository.findOne ●——Get by id.
repository.search ●List—Search.

media — Audio / video / animation.

MethodUse asRequired paramsDescription
media.play ●Action—Play.
media.pause ●Action—Pause.
media.stopAction—Stop.
media.volumeActionlevelSet volume 0..1.
media.seekActionsecondsSeek to seconds.
media.toggleMuteAction—Mute / unmute.
media.loadTrackActionurlLoad + play in BottomAudioPlayer.
media.animateActiontarget, actionToggle CSS animation.

ui — UI controls.

MethodUse asRequired paramsDescription
ui.drawer ●ActionidOpen / close / toggle a wm-drawer.
ui.dialog ●ActionidOpen / close / toggle a wm-dialog.
ui.modalActionidOpen / close / toggle a modal.
ui.scrollToActiontargetScroll to an element.
ui.notify ●ActionmessageShow a toast.

state — In-memory reactive store.

MethodUse asRequired paramsDescription
state.get——Read at path.
state.set ●Action—Write at path.
state.inc ●Action—Increment number.
state.dec ●Action—Decrement number.
state.toggle ●Action—Toggle boolean.

files — File management.

MethodUse asRequired paramsDescription
files.list ●List—List my files.
files.upload ●——Upload a file.
files.deleteAction—Delete a file.

site — Site / org info.

MethodUse asRequired paramsDescription
site.current ●——Current site.
site.org——Org info.

page — Page lookup.

MethodUse asRequired paramsDescription
page.getBySlug——Get a page by slug.

form — Form helpers.

MethodUse asRequired paramsDescription
form.serialize——Serialize form to object.
form.validate——Validate.
form.reset——Reset to defaults.

contentPlayer — Posts played page by page (courses, applications, trainings).

The post, page and access code default to the address — /<Content Player page>/<post>/<page>?code=… — so a page needs only the action. See Content Player.

MethodUse asRequired paramsDescription
contentPlayer.mine ●List—My programs: status, % and next page. Signed in.
contentPlayer.outline ●List—The post, its outline with each page's status, and my progress.
contentPlayer.enroll ●Action—Start. Signed in.
contentPlayer.item ●List—One page: content, prev / next, my saved answer.
contentPlayer.complete ●Action—Finish this page (waits for review when it has reviewers).
contentPlayer.progress—percent or scoreReport watched % or a score.
contentPlayer.answer ●ActionformSend the page's answer (data-payload="form"); files upload first.
contentPlayer.saveDraftActionformKeep the answer as a draft.

Calling from a script

Every method is also on window.appmint:

(async () => {
  if (appmint.customer.isSignedIn()) {
    const me = await appmint.customer.current();
    appmint.ui.notify('Welcome back, ' + (me?.firstName || 'friend'), { kind: 'success' });
  }
  const count = await appmint.cart.count();
  appmint.state.set('cart.count', count);
})();

No build step and no framework — the API is on the page.

`repository` is read-only

repository.find, findOne and search reach any datatype the visitor is allowed to read. There is no write counterpart in the runtime — writes go through a specific action such as cart.add or ticket.create.