Обмен данными строится на командах — запросах и ответах.

Пример команды

<?xml version="1.0" encoding="windows-1251"?>
<RK7Query>
  <RK7CMD CMD="GetSystemInfo"/>
</RK7Query>
XML

Ответ

<?xml version="1.0" encoding="utf-8"?>
<RK7QueryResult ServerVersion="7.5.2.34" XmlVersion="66" Status="Ok" CMD="GetSystemInfo" ErrorText="" DateTime="2013-02-15T17:05:33" WorkTime="0" Processed="1">
	<SystemInfo SystemTime="3570109533742" ReqSysVer="2" NetName="TEST_RK7SRV_COUNT"/>
</RK7QueryResult>
XML

Получение всех коллекций

<?xml version="1.0" encoding="windows-1251"?>
<RK7Query>
<RK7CMD CMD="GetRefList"/>
</RK7Query>
XML

Запрос конкретной коллекции

<?xml version="1.0" encoding="windows-1251"?>
<RK7Query>
<RK7CMD CMD="GetRefData" RefName="AWARDSPENALTIESGROUPS"/>
</RK7Query>
XML
<?xml version="1.0" encoding="utf-8"?>
<RK7QueryResult ServerVersion="7.5.2.34" XmlVersion="66" Status="Ok" CMD="GetRefData" ErrorText="" DateTime="2013-02-15T17:56:04" WorkTime="0" Processed="1">
	<RK7Reference ClassName="TAwardPenaltyGroups" Name="AWARDSPENALTIESGROUPS" MinIdent="1" MaxIdent="0" ViewRight="0" UpdateRight="0" ChildRight="0" DeleteRight="0" XMLExport="True" XMLMask="*" LeafCollectionCount="1">
		<Items>
			<Item Ident="0" ItemIdent="0" SourceIdent="0" GUIDString="{22149C1B-CC53-4EC4-A46C-5A23E512CC7A}" AssignChildsOnServer="False" MainParentIdent="0" ActiveHierarchy="False" Name="Все" AltName="All" Code="0" Status="rsDraft" editRight="0">
				<Childs ClassName="tChildCollection">
					<Child ChildIdent="1000015" IsTerminal="0"/>
				</Childs>
			</Item>
			<Item Ident="1000015" ItemIdent="1000015" SourceIdent="0" GUIDString="{1CF4DC82-3B32-4310-8864-E7A940F5E980}" AssignChildsOnServer="False" MainParentIdent="0" ActiveHierarchy="True" Name="общие" AltName="" Code="1" Status="rsActive" editRight="0">
				<Childs ClassName="tChildCollection">
					<Child ChildIdent="1000016" IsTerminal="1"/>
					<Child ChildIdent="1000199" IsTerminal="1"/>
				</Childs>
			</Item>
		</Items>
	</RK7Reference>
</RK7QueryResult>
XML

Вызов справочника меню

<?xml version="1.0" encoding="utf-8"?>
<RK7Query>
	<RK7CMD CMD="GetRefData" RefName="MenuItems"/>
</RK7Query>
XML
<?xml version="1.0" encoding="utf-8"?>
<RK7QueryResult ServerVersion="7.4.21.112" XmlVersion="44" Status="Ok" CMD="GetRefData" ErrorText="" DateTime="2013-05-15T19:57:38" WorkTime="0" Processed="1">
	<RK7Reference BlobNames="INSTRUCT,LARGEIMAGEPATH" ClassName="TRK7MenuItems" Name="MENUITEMS" MinIdent="1" MaxIdent="0" ViewRight="0" UpdateRight="21" ChildRight="21" DeleteRight="21" XMLExport="True" XMLMask="*" LeafCollectionCount="1">
		<Items>
			<Item Ident="0" ItemIdent="0" SourceIdent="0" GUIDString="{E501341F-060C-4FC5-B89A-5403095E73E6}" AssignChildsOnServer="False" MainParentIdent="0" ActiveHierarchy="False" Code="0" Name="" AltName="" Status="rsDraft" VisualType_Image="0" VisualType_BColor="536870911" VisualType_TextColor="536870911" VisualType_Flags="bsPictureTop" SalesTerms_Flag="[]" SalesTerms_StartSale="0" SalesTerms_StopSale="0" RightLvl="0" TaxDishType="0" ExtCode="0" ShortName="" AltShortName="" PortionWeight="0" PortionName="" AltPortion="" Kurs="0" QntDecDigits="0" ModiScheme="0" ComboScheme="0" ModiWeight="0" CookMins="0" Comment="" Instruct="" Flags="[]" TaraWeight="0" ConfirmQnt="0" MInterface="0" MinRestQnt="0" BarCodes="" PriceMode="pmPerPiece" OpenPrice="False" DontPack="False" ChangeQntOnce="False" CategPath="" SaleObjectType="sotMenuItem" ComboJoinMode="cjmNone" AddLineMode="almJoinLines" ChangeToCombo="0" GuestsDishRating="300" RateType="rtOneTime" MinimumTarifTime="0" MaximumTarifTime="0" IgnoredTarifTime="0" MinTarifAmount="0" MaxTarifAmount="0" RoundTime="0" TariffRoundRule="trrMath" MoneyRoundRule="rr1Cent" DefTarifTimeLimit="0" ComboDiscount="0" LargeImagePath="" HighLevelGroup1="0" HighLevelGroup2="0" HighLevelGroup3="0" HighLevelGroup4="0" BarCodesText="">
				<RecommendedMenuItems ClassName="TRecommendedMenuItems">
					<Items/>
				</RecommendedMenuItems>
				<Childs ClassName="tChildCollection">
					<Child ChildIdent="1000011" IsTerminal="0"/>
				</Childs>
			</Item>
			<Item Ident="1000011" ItemIdent="1000011" SourceIdent="0" GUIDString="{5B3537CE-ECF0-4D6A-B0AE-F095FC4F0513}" AssignChildsOnServer="False" MainParentIdent="1000010" ActiveHierarchy="True" Code="2" Name="кофе" AltName="" Status="rsActive" VisualType_Image="0" VisualType_BColor="536870911" VisualType_TextColor="536870911" VisualType_Flags="bsPictureTop" SalesTerms_Flag="[]" SalesTerms_StartSale="3577808296547" SalesTerms_StopSale="3577808296547" RightLvl="0" TaxDishType="1" ExtCode="1" ShortName="" AltShortName="" PortionWeight="0" PortionName="" AltPortion="" Kurs="0" QntDecDigits="0" ModiScheme="0" ComboScheme="0" ModiWeight="0" CookMins="0" Comment="" Instruct="" Flags="[]" TaraWeight="0" ConfirmQnt="0" MInterface="0" MinRestQnt="0" BarCodes="" PriceMode="pmPerPiece" OpenPrice="False" DontPack="False" ChangeQntOnce="False" CategPath="Бар" SaleObjectType="sotMenuItem" ComboJoinMode="cjmNone" AddLineMode="almJoinLines" ChangeToCombo="0" GuestsDishRating="300" RateType="rtOneTime" MinimumTarifTime="0" MaximumTarifTime="0" IgnoredTarifTime="0" MinTarifAmount="0" MaxTarifAmount="0" RoundTime="1" TariffRoundRule="trrMath" MoneyRoundRule="rr1Cent" DefTarifTimeLimit="0" ComboDiscount="0" LargeImagePath="" HighLevelGroup1="1000010" HighLevelGroup2="0" HighLevelGroup3="0" HighLevelGroup4="0" BarCodesText="">
				<RecommendedMenuItems ClassName="TRecommendedMenuItems">
					<Items/>
				</RecommendedMenuItems>
				<Childs ClassName="tChildCollection"/>
			</Item>
		</Items>
	</RK7Reference>
</RK7QueryResult>
XML

Вывод списка групп товаров

<?xml version="1.0" encoding="utf-8"?>
<RK7Query>
	<RK7CMD CMD="GetRefData" RefName="CATEGLIST" WithMacroProp="1"/>
</RK7Query>
XML
<?xml version="1.0" encoding="utf-8"?>
<RK7QueryResult ServerVersion="7.5.3.1" XmlVersion="88" Status="Ok" CMD="GetRefData" ErrorText="" DateTime="2013-05-16T18:49:20" WorkTime="0" Processed="1">
	<RK7Reference ClassName="TCategListItems" Name="CATEGLIST" MinIdent="1" MaxIdent="0" ViewRight="0" UpdateRight="21" ChildRight="116" DeleteRight="21" XMLExport="True" XMLMask="*" LeafCollectionCount="1">
		<Items>
			<Item Ident="1000010" ItemIdent="1000010" SourceIdent="0" GUIDString="{85A6B558-D59B-44F2-A103-031E473D6842}" AssignChildsOnServer="False" MainParentIdent="0" ActiveHierarchy="True" Code="1" Name="Бар" AltName="" Status="rsActive" VisualType_Image="0" VisualType_BColor="536870911" VisualType_TextColor="536870911" VisualType_Flags="bsPictureTop" Comment="" Parent="0" AddToOrder="False" ExtCode="1" EditRight="0" RightLvl="0" GENERATEDPROPTYPES-0="" SELECTORGROUPS-0="0" SELECTORGROUPS-2="0">
				<Childs ClassName="tChildCollection">
					<Child ChildIdent="1000011" IsTerminal="1"/>
				</Childs>
			</Item>
			<Item Ident="1000017" ItemIdent="1000017" SourceIdent="0" GUIDString="{85A6B558-D59B-44F2-A103-031E473D6843}" AssignChildsOnServer="False" MainParentIdent="0" ActiveHierarchy="True" Code="12" Name="Кухня" AltName="" Status="rsActive" VisualType_Image="0" VisualType_BColor="536870911" VisualType_TextColor="536870911" VisualType_Flags="bsPictureTop" Comment="" Parent="0" AddToOrder="False" ExtCode="12" EditRight="0" RightLvl="0" GENERATEDPROPTYPES-0="" SELECTORGROUPS-0="0" SELECTORGROUPS-2="0">
				<Childs ClassName="tChildCollection"/>
			</Item>
		</Items>
	</RK7Reference>
</RK7QueryResult>
XML