Gett Developer Portal
  • Welcome
  • Distribution Partners
  • Brand Partners
  • Commerce Partners
  • Ecosystem Partners
  • Errors
  • API Reference
Documentation
  • Get Started
  • Marketfront SDK
  • API Reference
Resources
  • Payments
Company
  • Gett
  • Terms of Service
  • Privacy Policy

Copyright 2026 Gett. All rights reserved.

Marketfront SDK
    Getting Started
    SDK Guides
    SDK Reference
      ElementEvents
Marketfront API
Marketfront AI
Shared Guides
powered by Zuplo

SDK Reference

Complete API reference for the Marketfront SDK.

Overview

The Marketfront SDK provides a Web Component for embedding the ordering experience into web applications.

PackageImport
@gett-co/marketfront<gett-marketfront> element (auto-registered), GettMarketfrontElement, register()

Reference Sections

  • Element -- Web Component attributes, properties, methods, and events
  • Events -- Event payload type definitions and signatures

Type definitions ship as .d.ts in the npm package — your IDE will autocomplete and document each interface in place.

Quick Start

Code
<gett-marketfront session-token="tok_abc123"></gett-marketfront> <script type="module"> import '@gett-co/marketfront'; const el = document.querySelector('gett-marketfront'); el.onOrderComplete = (order) => { console.log('Order placed:', order.id); }; </script>

API at a Glance

Attributes

AttributeDescription
session-tokenPartner session token (optional for anonymous browsing)
base-urlOverride base URL (development only)

Methods

MethodDescription
setSessionToken(token)Update the session token without remounting

Events

EventDescription
onReady / readyElement is initialized and ready
onError / errorAn error occurred
onStoreSelected / storeselectedUser selected a store
onItemAdded / itemaddedItem added to cart
onCheckoutStarted / checkoutstartedCheckout flow began
onOrderComplete / ordercompleteOrder successfully placed
EventsElement
On this page
  • Overview
  • Reference Sections
  • Quick Start
  • API at a Glance
    • Attributes
    • Methods
    • Events