Skip to content

Configuration Options

The Sounds Market TradeIns widget can be customized using various options when initializing. Here’s a complete list of available options:

Required Options

apiKey

  • Type: string
  • Required: Yes
  • Description: Your unique API key provided by Sounds Market
  • Example: apiKey: 'your-api-key-here'

Need an API key? Contact us to get one.

Optional Options

selector

  • Type: string
  • Default: '#soundsmarket-trade-ins'
  • Description: CSS selector for the container where the widget will be mounted
  • Example: selector: '#custom-widget-container'

locale

  • Type: string
  • Default: 'en'
  • Description: The language to use for the widget interface
  • Available Values:
    • 'de' - German
    • 'en' - English
    • 'es' - Spanish
    • 'fr' - French
    • 'it' - Italian
  • Example: locale: 'es'

Example

<script>
window.addEventListener('DOMContentLoaded', () => {
window.SoundsMarketTradeIns.init({
apiKey: 'YOUR_API_KEY', // Required
selector: '#custom-container', // Optional
locale: 'es', // Optional
})
})
</script>

For a complete integration example, check our Getting Started guide.