> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://shopdoctors.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How do I execute arbitrary JavaScript when the app applies/removes discounts?



The app exposes an event that you can listen to. Use the data inside the event payload as needed.

| document.body.addEventListener('docapp-volume-update', (e) => { console.log(JSON.stringify(e)); });
