<?xml version="1.0" encoding="UTF-8"?>
<!--
  The descriptor of the platform's solution in МойСклад's catalog of solutions (stage 9.2, ADR-0027).
  https://loyal.example stands for the production APP_URL: put it in both addresses before saving the draft.
  - vendorApi: МойСклад activates and deactivates the solution on an account at <endpointBase>/api/moysklad/vendor/1.0/…
  - access: only the account's points of sale are read (each becomes a terminal of the merchant).
  - loyaltyApi: the solution is a loyalty system; the address and the key of the tills go by the Vendor API.
  - iframes/main: the window where an administrator of the account types the code of the merchant's cabinet.
-->
<ServerApplication xmlns="https://apps-api.moysklad.ru/xml/ns/appstore/app/v2"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="https://apps-api.moysklad.ru/xml/ns/appstore/app/v2 https://apps-api.moysklad.ru/xml/ns/appstore/app/v2/application-v2.xsd">
    <vendorApi>
        <endpointBase>https://loyal.example/moysklad</endpointBase>
    </vendorApi>
    <access>
        <resource>https://api.moysklad.ru/api/remap/1.2</resource>
        <scope>custom</scope>
        <permissions>
            <retailStore>
                <view/>
            </retailStore>
        </permissions>
    </access>
    <loyaltyApi/>
    <iframes>
        <iframe type="main" sourceUrl="https://loyal.example/moysklad/window"/>
    </iframes>
</ServerApplication>
