Full Scenario: Customer stays at a hotel

 

Roger stays at a hotel and purchases accommodation. 

Receipt includes links to additional product information and automatic categorization of accomodation. 

Data:

Basic Receipt data

Item Info

    MerchandiseHierarchy 

Customer

    CustomerExtension

<?xml version="1.0" encoding="UTF-8"?>
<p2:DigitalReceipt FixVersion="0" MajorVersion="6" MinorVersion="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p2="http://www.nrf-arts.org/IXRetail/namespace/">
       <p2:Transaction FixVersion="0" MajorVersion="6" MinorVersion="0" TypeCode="SaleTransaction">
              <p2:BusinessUnit>
                      <p2:UnitID Name="DemoHotell AB">223344-7722</p2:UnitID>
                      <p2:Address>
                             <p2:AddressLine>Adressradsvägen 1</p2:AddressLine>
                             <p2:City>Stockholm</p2:City>
                             <p2:PostalCode>12233</p2:PostalCode>
                      </p2:Address>
                      <p2:Telephone>
                             <p2:AreaCode>08</p2:AreaCode>
                             <p2:LocalNumber>123123</p2:LocalNumber>
                      </p2:Telephone>
                      <p2:Website>www.hemsidan.se</p2:Website>
              </p2:BusinessUnit>
              <p2:Logo>
                      <p2:FileName>c4bb6c00-d7c4-487b-b4ab-edf8d50cb965</p2:FileName>
              </p2:Logo>
              <p2:WorkstationID WorkstationLocation="410">Lena Andersson</p2:WorkstationID>
              <p2:CurrencyCode>SEK</p2:CurrencyCode>
              <p2:ReceiptDateTime>2018-06-12T11:11:11</p2:ReceiptDateTime>
              <p2:ReceiptNumber>1234</p2:ReceiptNumber>
              <p2:RetailTransaction>
                      <p2:LineItem>
                             <p2:Sale ItemType="Stock">
                                    <p2:ItemID Name="Accomondation"/>
                                    <p2:MerchandiseHierarchy ID="Department">accomondation</p2:MerchandiseHierarchy>
                                    <p2:Description>Accomondation</p2:Description>
                                    <p2:UnitCostPrice>1000</p2:UnitCostPrice>
                                    <p2:RegularSalesUnitPrice>1000</p2:RegularSalesUnitPrice>
                                    <p2:ActualSalesUnitPrice>1000</p2:ActualSalesUnitPrice>
                                    <p2:ExtendedAmount>1000</p2:ExtendedAmount>
                                    <p2:Quantity>1</p2:Quantity>
                                    <p2:Tax TaxType="VAT">
                                           <p2:SequenceNumber>2</p2:SequenceNumber>
                                           <p2:TaxableAmount>800</p2:TaxableAmount>
                                           <p2:Amount>200</p2:Amount>
                                           <p2:Percent>25</p2:Percent>
                                    </p2:Tax>
                             </p2:Sale>
                             <p2:SequenceNumber>1</p2:SequenceNumber>
                             <p2:BeginDateTime>2018-06-12T12:12:12</p2:BeginDateTime>
                      </p2:LineItem>
                      <p2:LineItem>
                             <p2:Tender SubTenderType="MasterCard" TenderType="CreditDebit" TypeCode="Sale">
                                    <p2:Amount>1000</p2:Amount>
                                    <p2:Authorization>
                                           <p2:AuthorizationCode>123456</p2:AuthorizationCode>
                                           <p2:ReferenceNumber>000518307578</p2:ReferenceNumber>
                                           <p2:MerchantNumber>00000000000000000000000000917514948</p2:MerchantNumber>
                                           <p2:AuthorizationDateTime>2010-12-12T11:11:11</p2:AuthorizationDateTime>
                                           <p2:AuthorizingTermID>0000000286258139</p2:AuthorizingTermID>
                                           <AuthorizationExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/" AID="122345678" TSI="122345678" TVR="122345678" MaskedCardNumber="***************1234"/>
                                    </p2:Authorization>
                             </p2:Tender>
                             <p2:SequenceNumber>4</p2:SequenceNumber>
                      </p2:LineItem>
                      <p2:LineItem>
                             <p2:Tax TaxType="VAT">
                                    <p2:TaxableAmount>800</p2:TaxableAmount>
                                    <p2:Amount>200</p2:Amount>
                                    <p2:Percent>25</p2:Percent>
                                    <TaxExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/" GrossAmount="1000"/>
                             </p2:Tax>
                             <p2:SequenceNumber>5</p2:SequenceNumber>
                      </p2:LineItem>
                      <p2:Total TotalType="TransactionNetAmount">800</p2:Total>
                      <p2:Total TotalType="TransactionTaxAmount">200</p2:Total>
                      <p2:Total TotalType="TransactionGrandAmount">1000</p2:Total>
                      <p2:Customer>
                             <p2:Name>
                                    <p2:Name>Kalle Testsson</p2:Name>
                             </p2:Name>
                             <p2:Address>
                                    <p2:AddressLine>Adressradsvägen 2</p2:AddressLine>
                                    <p2:City>Stockholm</p2:City>
                                    <p2:PostalCode>12233</p2:PostalCode>
                                    <p2:Country>Sweden</p2:Country>
                             </p2:Address>
                             <CustomerExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/" GuestName="Kalle Testsson" RoomNo="2222" Arrival="2018-06-12" Departure="2012-12-13" ConfirmationNo="123435" PNR="pnr_example" FolioNo="123121"/>
                      </p2:Customer>
              </p2:RetailTransaction>
       </p2:Transaction>
</p2:DigitalReceipt>