1. Checkout Module
Salla Platform Docs
  • Embedded SDK
    • Overview
    • Getting Started
    • Create an Embedded App
    • Authentication
    • App Design Guidelines
    • Installation
    • Playground
  • Auth Module
    • Get Token
    • Client Introspect
    • Refresh Token
  • Page Module
    • External Redirects
    • Navigation
    • Set Page Title
  • Nav Module
    • Create Navbar Action
    • Listen for Navbar Actions
    • Clearing Navbar Actions
    • Add Navbar Item
    • Update Navbar Item
    • Listen for Navbar Item Click
    • Remove Navbar Item
  • UI Module
    • Confirm Dialogs
    • Toast Notifications
    • Loading States
    • Breadcrumbs
  • Checkout Module
    • Create Checkout
    • Get App Add-ons
    • Subscribe for Payment Result
  • Endpoints
    • Token Introspect
      POST
  • Resources
    • Support
    • Common Examples
  • Report Builder
    • Overview
    • Getting Started
    • JMESPath Tutorial
    • Understanding the Report Lifecycle
    • Salla Reports Examples
    • Set up Store data using merchant APIs
    • Report Types
      • Unit
      • Bar
      • Breakdown
      • Calendar
      • Distribution
      • Pipe
      • Plot
      • Ranking
      • Summary
      • Agrid
    • APIs
      • Token Introspect
  • App Onboarding
    • Overview
    • Get Started
    • Interfaces and Responses
    • Example
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • Salla CLI
Merchant
Merchant
  • Merchant API
  • Embedded SDK
  • Salla OAuth 2.0
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Component Bundle
  • Checkout APIs
  • Change Log
App Functions
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • Billing System Salla partners
  • Communication Apps
Dev Tools
Dev Tools
  • Partners Agent Kit
  • Salla Apps Playbook
  • Salla CLI
Salla - Opensource
Salla - Developers Community
  1. Checkout Module

Get App Add-ons

The getAddons method fetches the list of available addons for your app. Use this to display addon options, verify slugs, and show accurate pricing before initiating a checkout.
Addons can be added to your App from the Pricing Step inside the App Publish form in the Partners Portal.
Note
VAT will be calculated and applied at checkout where applicable.
If your product or service should be exempt from VAT but VAT is being applied, please contact our support team to request an exemption.

Usage#

API Reference#

embedded.checkout.getAddons()#

Takes no parameters. Returns a Promise that resolves with the addon list or error details.

Return Value#

Resolves to a GetAddonsResult object:
PropertyTypeDescription
successbooleantrue if addons were fetched successfully.
addonsAddonInfo[] | undefinedList of available addons. Present when success is true.
errorobject | undefinedError details with code and message. Present when success is false.

AddonInfo#

Each addon in the addons array contains:
PropertyTypeDescription
slugstringUnique identifier used in create().
namestringDisplay name of the addon.
pricenumberPrice amount.
product_idnumberInternal product ID.
product_price_idnumberInternal price ID.

Complete Example#

Fetch addons and present them to the merchant, then initiate checkout on selection:
💡
Best Practices
Cache Aware: Results are cached on the host side for 30 minutes. Calling getAddons() multiple times is inexpensive within that window.
Loading State: Show a loading indicator while fetching to avoid a blank UI. Use embedded.ui.loading.show() and .hide().
Graceful Errors: Always handle the success: false case. Network issues or timeouts will resolve with an error rather than throwing.
Modified at 2026-06-30 17:12:16
Previous
Create Checkout
Next
Subscribe for Payment Result