<style children={`:root{--whiteColor:#FFF;--alwaysWhite:#FFF;--col-semantic-neutral:#335B70;--col-semantic-positive:#008A21;--col-semantic-caution:#EF6700;--col-semantic-negative:#CD384B;--col-action-minor-200:#CCD6DB;--background-page:rgb(242,245,246);--toolTipBackGroundColorNormal:#335b70;--toolTipBackGroundColorError:#c7384f;--radius2:2px;--radius4:4px;--radius8:8px;--codeHighlighterRed:#B22222}:is(html.dark,html[data-theme="dark"]){--whiteColor:#030303;--background-page:#262626;--toolTipBackGroundColorError:#df605c;--col-action-minor-200:#2f3133;--codeHighlighterRed:#ec7768}label.exampleverbcenter{border-width:1px;border-style:solid;border-color:transparent;padding:0 5px;margin-right:5px;color:white;border-radius:var(--radius2);width:70px;text-align:center;float:none;margin-bottom:0;font-size:small;display:inline-block;line-height:1.3rem}.exampleget{background-color:#060}.examplepostgl{background-color:#34495e}.examplepatch{background-color:#c44b00}.exampleput{background-color:#530838}.exampledel{background-color:#c63939}.exampleothers{background-color:#666}.examplepost{background-color:#095974}label.new{border:1px solid var(--col-semantic-positive);padding:0 2px;color:white;background-color:var(--col-semantic-positive);text-align:center;margin-bottom:0;font-size:smaller;display:inline-block;line-height:1.3rem}label.comingsoon,span.comingsoon{border:1px solid var(--col-semantic-neutral);padding:0 2px;color:white;background-color:var(--col-semantic-neutral);text-align:center;margin-bottom:0;font-size:smaller;display:inline-block;font-style:normal;line-height:1.3rem}label.updated{border:1px solid #c44b00;padding:0 2px;color:white;background-color:#c44b00;text-align:center;margin-bottom:0;font-size:smaller;display:inline-block;line-height:1.3rem}label.infoHidden{border:1px solid var(--col-semantic-negative);padding:0 2px;color:white;background-color:var(--col-semantic-negative);text-align:center;margin-bottom:0;font-size:smaller;display:inline-block;font-style:normal;line-height:1.3rem}label.deprecated{border:1px solid var(--col-semantic-negative);padding:0 2px;color:white!important;background-color:var(--col-semantic-negative);text-align:center;font-size:smaller;margin-bottom:0;display:inline-block;font-style:normal!important;line-height:1.3rem}label.notavailable{border:1px solid var(--col-semantic-negative);padding:0 2px;color:white!important;background-color:var(--col-semantic-negative);text-align:center;font-size:smaller;margin-bottom:3px;display:inline-block;font-style:normal!important;line-height:1.3rem;margin-right:3px;margin-left:3px}label.availableonly{border:1px solid var(--col-semantic-positive);padding:0 2px;color:white!important;background-color:var(--col-semantic-positive);text-align:center;font-size:smaller;margin-bottom:3px;display:inline-block;font-style:normal!important;line-height:1.3rem;margin-right:3px;margin-left:3px}label.removed{border:1px solid var(--toolTipBackGroundColorError);padding:0 2px;color:white!important;background-color:var(--toolTipBackGroundColorError);text-align:center;font-size:smaller;margin-bottom:0;display:inline-block;font-style:normal!important;line-height:1.3rem}.mandatory{color:var(--codeHighlighterRed);float:right;font-size:larger;margin-bottom:0;cursor:help;margin-left:2px}.systeme{color:var(--codeHighlighterRed);float:right;font-size:smaller;margin-top:2px;cursor:help;margin-left:3px}.systemeSort{border:1px solid;padding-left:3px;padding-right:3px;font-size:10px;background-color:#ec7768;color:var(--whiteColor);font-weight:700}.resources-hero-grid{display:flex;flex-direction:column;gap:2.5rem;width:100%;margin-bottom:2rem}.resources-hero-grid__left-cards{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;min-width:0;min-height:0}.resources-hero-grid__left-cards>*{flex:1 1 0}.main-resources-links li{line-height:1.3rem}.main-resources-links a,.main-resources-links a:hover,.main-resources-links a:visited{color:inherit!important}a.linkdto{font-weight:normal;float:right}a.filteredbyid{font-weight:normal;font-size:small;white-space:nowrap}.ressource-info{font-size:smaller;float:right;cursor:pointer!important}.field-info-target:target{border:2px solid rgb(196,75,0);padding:3px;border-radius:2px}.toolTipText{display:none}[data-hastooltip]{position:relative;cursor:help}[data-hastooltip] .toolTipText{display:none;position:absolute;left:50%;bottom:125%;transform:translateX(-80%);z-index:20;min-width:200px;max-width:320px;padding:8px 10px;border-radius:var(--radius4);background:var(--toolTipBackGroundColorNormal);color:var(--alwaysWhite);font-size:12px;font-weight:normal;line-height:1.35;text-align:left;white-space:normal;box-shadow:0 4px 12px rgba(0,0,0,0.2)}[data-hastooltip]:hover .toolTipText,[data-hastooltip]:focus-within .toolTipText{display:block}ul.withVerticalScroll{max-height:500px;overflow-y:auto}ul.withVerticalScroll>li::before{position:relative}div.tdWithVerticalScroll{max-height:225px;overflow-y:auto}div.tdWithVerticalScroll ul>li{display:table-row}div.tdWithVerticalScroll ul>li::before{position:relative;display:table-cell}.content-with-thumbnail{display:flex;align-items:flex-start}@media (max-width:767px){.content-with-thumbnail{align-items:center;flex-direction:column}}.text-content-with-thumbnail{flex:1;margin-right:20px}.thumbnailvideo{max-width:240px;max-height:240px;display:flex;align-items:center}div.tabbedSectionMarginTop{margin-top:-24px}span.resource-badge{display:inline-block;margin-right:1rem;margin-bottom:10px}.usecase-domains{display:flex;flex-wrap:wrap;gap:0.35rem;flex:1 0 100%;width:100%;margin-bottom:0.55rem}.usecase-domain{display:inline-block;padding:1px 8px;border-radius:999px;font-size:0.75rem;font-weight:500;line-height:1.45;letter-spacing:0.01em}.usecase-domain-text{display:block;width:100%}.usecase-domain-sales{color:#0c3d5c;background-color:#e5f0f6}.usecase-domain-purchase{color:#6b3a00;background-color:#fff0e0}.usecase-domain-accounting{color:#0d4a28;background-color:#e5f6ec}:is(html.dark,html[data-theme="dark"]) .usecase-domain-sales{color:#d5e8f3;background-color:rgba(51,91,112,0.55)}:is(html.dark,html[data-theme="dark"]) .usecase-domain-purchase{color:#ffe3c4;background-color:rgba(239,103,0,0.28)}:is(html.dark,html[data-theme="dark"]) .usecase-domain-accounting{color:#d7f5e3;background-color:rgba(0,138,33,0.28)}div.marketsTab{position:relative;left:0;margin-bottom:20px;border:1px solid var(--col-action-minor-200);padding:3px 10px 10px 10px;border-radius:var(--radius4)}.marketsTabHeader{display:flex;justify-content:space-between;align-items:center}.marketsTabDescription{margin-top:8px}del>code{text-decoration:line-through}h1,h2,h3,h4,h5,h6,.H5,.H6{font-weight:700;line-height:1.25}h5,.H5{font-size:18px}h6,.H6{font-size:13.6px}h4,h5,h6,.H5,.H6{margin-top:12px;margin-bottom:12px!important}.H5,.H6{display:block;margin-inline-start:0;margin-inline-end:0;unicode-bidi:isolate;font-family:inherit}.nextVersion,.currentVersion,.previousVersion{float:right;top:10px;right:10px;position:absolute;color:var(--alwaysWhite);padding:2px;font-size:0.75rem;width:100px;text-align:center}.nextVersion{background-color:var(--col-semantic-caution)}.nextVersion::before{content:"Next version"}.currentVersion{background-color:var(--col-semantic-positive)}.currentVersion::before{content:"Current version"}.previousVersion{background-color:var(--col-semantic-negative)}.previousVersion::before{content:"Previous version"}.pillInfo>p{color:var(--toolTipBackGroundColorError);font-size:0.80rem;vertical-align:bottom;width:fit-content;line-height:1.3rem}.breakingDate>p{float:right;margin-top:-37px;background-color:var(--col-semantic-neutral);color:var(--alwaysWhite);padding:2px;font-size:0.80rem;line-height:1.3rem}.videosTitle{display:flex;justify-content:space-between}.videosTitle h3{margin-top:0px}.videosTitle label{margin-left:3px;margin-top:3px;font-weight:700;font-size:0.75rem;height:20px;word-break:normal;text-align:right;white-space:nowrap;float:right}.videoMeta{position:relative;display:block;width:100%;margin-top:10px;min-height:1.4rem;padding-right:4.5rem;box-sizing:border-box}.videoOrigin{margin:0}.videoTime{position:absolute;right:0;top:0;float:none;width:fit-content;background-color:var(--col-semantic-neutral);color:var(--alwaysWhite);padding:2px 6px;font-size:0.75rem;line-height:1.4;white-space:nowrap}body .-rotate-45.text-9xl{display:none!important}.switch{position:relative;display:inline-block;width:50px;height:24px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.4s;border-radius:24px}.slider:before{position:absolute;content:"";height:18px;width:18px;left:4px;bottom:3px;background-color:white;transition:.4s;border-radius:50%}input:checked + .slider{background-color:#4CAF50}input:checked + .slider:before{transform:translateX(26px)}.sliderText{font-weight:normal;font-size:larger;margin-left:5px}.internalsage{padding:10px!important;background-color:#ef67000d;border:1px solid #ef6700;border-radius:var(--radius8);margin-bottom:10px}.internalsage>h5{margin-top:-3px;color:#945405;font-weight:500;font-size:22px}@media (max-width:1200px){div.svg img{display:none}}div.svg img{width:100%;height:800px;background-color:rgb(255,255,255);border:1px solid gray}div.forceBlack img{filter:invert(100%) hue-rotate(180deg)!important}code.inline-block{color:var(--codeHighlighterRed)!important;background-color:transparent!important;font-size:90%!important;display:unset!important}body:has(#filterHistoryToggle:checked) li.diff-filter-out{display:none}.mdx-popover-anchor{display:inline-block;position:relative;vertical-align:baseline;anchor-scope:--mdx-popover-trigger}.mdx-popover-anchor>[popovertarget]{anchor-name:--mdx-popover-trigger}.mdx-popover-anchor--right{float:right}.mdx-popovers{padding:8px 0;box-shadow:rgba(0,20,29,0.2) 0px 5px 5px 0px,rgba(0,20,29,0.1) 0px 10px 10px 0px;width:max-content;max-width:min(90vw,480px);max-height:400px;overflow-y:auto;border-radius:var(--radius8);border:none;margin:0;inset:auto;position:fixed;position-anchor:--mdx-popover-trigger;top:anchor(bottom);left:anchor(left);margin-top:4px}.mdx-popover-anchor--right .mdx-popovers{left:anchor(right);translate:-100% 0}.mdx-popovers:popover-open{animation:mdxPopoverFadein 0.2s ease-out}@keyframes mdxPopoverFadein{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.mdx-popovers .popoversItem{cursor:pointer;box-sizing:border-box;padding:0 24px;position:relative;line-height:40px;white-space:nowrap;user-select:none;display:flex;align-items:center;width:100%;font-size:14px;text-align:left;text-decoration:none}.mdx-popovers .popoversItem:hover,.mdx-popovers .popoversItem:focus{background-color:var(--background-page);text-decoration:none}.mdx-popovers .popoversItem:active{outline:var(--inputFocusShadow,rgba(76,94,86,0.3)) solid 3px}#ai-gateway-topics{scroll-margin-top:5.5rem}div:has(>.cursor-col-resize){width:340px!important}div:has(>.cursor-col-resize)>.cursor-col-resize{display:none}nav.gap-8>.items-start.gap-2:has([role="combobox"]){display:none}nav.gap-8>.items-start.gap-2:has([role="combobox"]) + .border-t{display:none}nav.gap-8>.items-start.gap-2:has(div.flex.items-center.font-medium.rounded-md.border.px-2.py-1.text-sm){display:none}nav.gap-8>.items-start.gap-2:has(div.flex.items-center.font-medium.rounded-md.border.px-2.py-1.text-sm) + .border-t{display:none}.underline{text-decoration:none!important}a[href="/about/content-filter"]{pointer-events:none;cursor:default}`} />

{/* popover script removed by mdx-compose */}

<MessageCard type="proactive" isTitleDisplayed={false}>
  * You must have a username/password that allows you to access <span class="mdx-popover-anchor"><button type="button" id="mdx-popover-popoverEnvs-trigger" class="text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" popovertarget="mdx-popover-popoverEnvs">Your Sage Active</button><div id="mdx-popover-popoverEnvs" popover="auto" class="mdx-popovers" anchor="mdx-popover-popoverEnvs-trigger"><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://www.fr.active.sage.com/" target="_blank" rel="noopener noreferrer">Sage Active FR (production)</a><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://www.es.active.sage.com/" target="_blank" rel="noopener noreferrer">Sage Active ES (production)</a><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://www.de.active.sage.com/" target="_blank" rel="noopener noreferrer">Sage Active DE (production)</a><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://www.es.active.sage.com/" target="_blank" rel="noopener noreferrer">Sage Active PT (production)</a></div></span>.
  * If you do not yet have access to Sage Active, you can subscribe to or try Sage Active here: <span class="mdx-popover-anchor"><button type="button" id="mdx-popover-popoverSageActiveSubscribe-trigger" class="text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" popovertarget="mdx-popover-popoverSageActiveSubscribe">Subscribe to Sage Active</button><div id="mdx-popover-popoverSageActiveSubscribe" popover="auto" class="mdx-popovers" anchor="mdx-popover-popoverSageActiveSubscribe-trigger"><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://www.sage.com/fr-fr/produits/sage-active/" target="_blank" rel="noopener noreferrer">Sage Active FR (Subscribe)</a><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://www.sage.com/es-es/productos/sage-active/" target="_blank" rel="noopener noreferrer">Sage Active ES (Subscribe)</a><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://www.sage.com/de-de/produkte/sage-active/" target="_blank" rel="noopener noreferrer">Sage Active DE (Subscribe)</a></div></span>.<br />
  * Boost your app's visibility by showcasing it on the <span class="mdx-popover-anchor"><button type="button" id="mdx-popover-popoverMarketplaces-trigger" class="text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" popovertarget="mdx-popover-popoverMarketplaces">MarketPlace</button><div id="mdx-popover-popoverMarketplaces" popover="auto" class="mdx-popovers" anchor="mdx-popover-popoverMarketplaces-trigger"><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://fr-marketplace.sage.com/fr-fr/listing?attr=5111" target="_blank" rel="noopener noreferrer">MarketPlace FR</a><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://marketplacepartners.sage.com/resultados/sage-active/areas-negocios-todas/sectores-todos/" target="_blank" rel="noopener noreferrer">MarketPlace ES</a><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://www.sage.com/de-de/produkte/sage-active/marketplace/" target="_blank" rel="noopener noreferrer">MarketPlace DE</a><a class="popoversItem text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" href="https://www.pt-marketplace.sage.com/" target="_blank" rel="noopener noreferrer">MarketPlace PT</a></div></span>.
</MessageCard>

<br />

### Introduction

This image outlines two key areas:

<div class="content-with-thumbnail">
  <div class="text-content-with-thumbnail">
    1. **Defining your app in Sage Active**: This part details the initial registration and configuration of your application within your Sage Active business subscription (`FR`, `ES`, `DE` or `PT`).<br />
       Here, you will register your app and choose which specific markets (`FR`, `ES/PT`, or `DE`, or any combination of these) your app will target and operate in, allowing for flexible application deployment across different regional markets.

    2. **Use of your app by customers in various Sage Active environments**: This section focuses on how your app, tailored to specific markets, is utilized by customers within those chosen environments.<br />
       It shows how customers access your application through the respective Public APIs for `FR`, `ES/PT`, or `DE`, ensuring that your app's functionalities are available to businesses in these specific regions as per your configuration in the first section.
  </div>

  <div>
    <RoundedImage src="https://assets.devx.sage.com/assets/active/images/concepts/environments.png" alt="illustration" width={250} zoomable />
  </div>
</div>

<Card title=" " lineClamp="none">
  ### Sage Active environments

  * Sage Active is available in three distinct regional environments: `FR`, `ES/PT`, and `DE`.
  * As a developer, you will have a Sage Active **business subscription** in **one** of these legislations: `FR`, `ES`, `DE` or `PT`.<br />
    From this subscription, you can register your application and configure it for the markets you want to target.
  * Although your application is registered from a single business subscription, you can configure it to operate in one or more markets (`FR`, `ES/PT`, and/or `DE`), each with its own Public API and API keys.
  * ES and PT share the same Public API (`ES/PT`); `FR` and `DE` each have their own.
  * For example, you can target `FR` only, `FR` and `ES/PT`, `ES/PT` only, or all markets (`FR`, `ES/PT`, and `DE`).
  * To do this, use the **Solutions** tab of your **application** to define the settings for each target market (Solution `FR`, Solution `ES/PT`, or Solution `DE`).
  * For each Sage Active environment where your app operates (`FR`, `ES/PT`, or `DE`), you will need a Sage ID account authorized in that environment.<br />
    This account must belong to a user with access to the corresponding Sage Active instance.

  \[check]

  <MessageCard type="positive" isTitleDisplayed={false}>
    * Here are the different URLs for using the **`FR`**, **`ES / PT`**, **`DE`** API and authenticating your application.
    * The URLs for the SBCAuth authentication service are the same for all three production environments.
    * In Postman environnement **baseAddress** = **API Address** without `/graphql`.

    <div class="H5"><a href="https://www.fr.active.sage.com/" class="text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" target="_blank" rel="noopener noreferrer">Sage Active FR</a></div>

    <br />

    **API Address**

    ```:Copy-and-paste
    https://api.fr.active.sage.com/graphql
    ```

    <div class="H5"><a href="https://www.es.active.sage.com/" class="text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" target="_blank" rel="noopener noreferrer">Sage Active ES / PT</a></div>

    <br />

    **API Address**

    ```:Copy-and-paste
    https://api.es.active.sage.com/graphql
    ```

    <br />

    <div class="H5"><a href="https://www.de.active.sage.com/" class="text-link hover:text-link-hover dark:text-link-dark dark:hover:text-link-dark-hover" target="_blank" rel="noopener noreferrer">Sage Active DE</a></div>

    <br />

    **API Address**

    ```:Copy-and-paste
    https://api.de.active.sage.com/graphql
    ```

    <div class="H5">Authentication</div>

    <br />

    **AuthUrl**

    ```:Copy-and-paste
    https://sbcauth.sage.fr/connect/authorize
    ```

    <br />

    **AccessTokenUrl**

    ```:Copy-and-paste
    https://sbcauth.sage.fr/connect/token
    ```

    <br />

    **Revoke Token URL prod**

    ```:Copy-and-paste
    https://sbcauth.sage.fr/connect/revocation
    ```
  </MessageCard>
</Card>

<br />