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>

LineItem with negative amount

ARTS does not support negative amounts, this needs to be posted as RetailPriceModifier:
 

<LineItem>
  <Sale ItemType="Stock">
    <ItemID/>
    <RetailPriceModifier>
      <SequenceNumber>1</SequenceNumber>
      <Amount Action="Subtract">10.00</Amount>
      <Description>Felslagning</Description>
    </RetailPriceModifier>
    <Tax TaxType="VAT">
      <TaxableAmount>8.0</TaxableAmount>
      <Amount>2.0</Amount>
      <Percent>25</Percent>
    </Tax>
  </Sale>
  <SequenceNumber>1</SequenceNumber>
</LineItem>

Full Scenario: Customer purchases a TV and extended warranty. Customer receives loyalty points.

 

Anna purchases a TV and an extended warranty. 
Receipt includes links to warranty details for purchase.
Anna receives loyalty bonus for purchase. 

Data:
Basic Receipt data
Item Info
  MerchandiseHierarchy
    Serial Number
    Type code ‘Warranty’
        Item Link
          Link/URL to description of Warranty
        Contact Information
        Phone
        Address
        Email
        Website

LoyaltyAccount
    LoyaltyCard
    LoyaltyProgram

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="./retail.1.xsl" xsi:schemaLocation="./xsd/DigitalReceiptV2.0.0.xsd"?>
<DigitalReceipt xmlns="http://www.nrf-arts.org/IXRetail/namespace/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" FixVersion="0" MajorVersion="6" MinorVersion="0" xsi:schemaLocation="http://www.nrf-arts.org/IXRetail/namespace/ file:///C:/Users/etnetwork/Dropbox/_ETNetwork%20Tests/XSD/DigitalreceiptV2.0.0.xsd">
       <Transaction FixVersion="0" MajorVersion="6" MinorVersion="0" TypeCode="SaleTransaction">
              <BusinessUnit>
                      <UnitID Name="Ziba AB">223344-7722</UnitID>
                      <Address>
                             <AddressLine>Radiorörsgatan 1</AddressLine>
                             <City>Göteborg</City>
                             <PostalCode>43651</PostalCode>
                      </Address>
                      <Telephone>
                             <AreaCode>031</AreaCode>
                             <LocalNumber>123123</LocalNumber>
                      </Telephone>
                      <Website>www.ziba-butiken.se</Website>
              </BusinessUnit>
              <WorkstationID WorkstationLocation="001">1</WorkstationID>
              <OperatorID WorkerID="1234">Johan</OperatorID>
              <CurrencyCode>SEK</CurrencyCode>
              <TrailerText>
                      <Textppet köp i 14 dagar!</Text>
                      <Text>Tack för besöket</Text>
                      <Text>Välkommen åter</Text>
              </TrailerText>
              <ReceiptDateTime>2012-12-10T11:11:11</ReceiptDateTime>
              <ReceiptNumber>1234</ReceiptNumber>
              <RetailTransaction>
                      <LineItem>
                             <Sale>
                                    <ItemID Name="TV">1234</ItemID>
                                    <!-- The merchandise group for the sold item. -->
                                    <MerchandiseHierarchy Level="Department">TV</MerchandiseHierarchy>
                                    <ExtendedAmount>4995.00</ExtendedAmount>
                                    <Tax>
                                           <TaxableAmount>3996</TaxableAmount>
                                           <Amount>999</Amount>
                                           <Percent>25</Percent>
                                    </Tax>
                                    <SerialNumber>ABC1234TV321-9</SerialNumber>
                             </Sale>
                             <SequenceNumber>1</SequenceNumber>
                      </LineItem>
                      <LineItem>
                             <Sale ItemType="Warranty">
                                    <ItemID>TV321-9</ItemID>
                                    <!-- The merchandise group for the sold item. -->
                                    <MerchandiseHierarchy Level="Department">Garanti</MerchandiseHierarchy>
                                    <ExtendedAmount>299.00</ExtendedAmount>
                                    <Tax>
                                           <TaxableAmount>239.2</TaxableAmount>
                                           <Amount>59.2</Amount>
                                           <Percent>25</Percent>
                                    </Tax>
                             </Sale>
                             <SequenceNumber>2</SequenceNumber>
                             <!-- The link to the line item to which this warranty applies -->
                             <ItemLink>1</ItemLink>
                             <!-- The Product Content Management ID for this asset (warranty) -->
                             <PCMUUID AssetFileFormat="URL" AssetFileName="www.ziba-warranty.se">TV321-9</PCMUUID>
                             <ContactInformation>
                                    <Name>
                                           <Name>The Ziba TV Store</Name>
                                    </Name>
                             </ContactInformation>
                      </LineItem>
                      <LineItem>
                             <Tender SubTenderType="MasterCard" TenderType="CreditDebit" TypeCode="Sale">
                                    <Amount>4995</Amount>
                                    <Authorization>
                                           <AuthorizationCode>623456</AuthorizationCode>
                                           <ReferenceNumber>000123526083</ReferenceNumber>
                                           <MerchantNumber>00000000000000000000000000012356660</MerchantNumber>
                                           <AuthorizationDateTime>2017-12-10T11:11:11</AuthorizationDateTime>
                                           <AuthorizingTermID>0000000001004952</AuthorizingTermID>
                                           <AuthorizationExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/" AID="21" TSI="21" TVR="21" MaskedCardNumber="***************3234"/>
                                    </Authorization>
                             </Tender>
                             <SequenceNumber>3</SequenceNumber>
                      </LineItem>
                      <LineItem>
                             <Tax TaxType="VAT">
                                    <TaxableAmount>4235.20</TaxableAmount>
                                    <Amount>1058.80</Amount>
                                    <Percent>25</Percent>
                                    <TaxExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/" GrossAmount="5294.00"/>
                             </Tax>
                             <SequenceNumber>8</SequenceNumber>
                      </LineItem>
                      <Total TotalType="TransactionNetAmount">4235.20</Total>
                      <Total TotalType="TransactionTaxAmount">1058.80</Total>
                      <Total TotalType="TransactionTotalSavings">0</Total>
                      <Total TotalType="TransactionGrandAmount">5294.00</Total>
                      <Total TotalType="LoyaltyTotal">1000</Total>
                      <Total TotalType="TransactionBonusRewardAmount">1000</Total>
                      <Total TotalType="TransactionTaxableAmount">4235.20</Total>
                      <Customer ContactPreference="Phone">
                             <CustomerID>1241234</CustomerID>
                             <TelephoneNumber>
                                    <AreaCode>031</AreaCode>
                                    <LocalNumber>123123</LocalNumber>
                             </TelephoneNumber>
                             <Website>www.mycustomersite.com</Website>
                      </Customer>
                      <LoyaltyAccount>
                             <CustomerID>1241234</CustomerID>
                             <LoyaltyCard>
                                    <PrimaryAccountNumber>1241234</PrimaryAccountNumber>
                             </LoyaltyCard>
                             <LoyaltyProgram>
                                    <LoyaltyProgramID>julrusch</LoyaltyProgramID>
                                    <ExpirationDate>2012-12-31</ExpirationDate>
                                    <CumulativeNetSalesAmount>1500</CumulativeNetSalesAmount>
                                    <Points>1000</Points>
                             </LoyaltyProgram>
                      </LoyaltyAccount>
                      <RetailTransactionExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/">
                             <RefundPeriod LastDate="2017-12-24"/>
                             <ControlUnit ID="RIHTT000000123429" Code="TVQ965EWPPW499TTWRSDQWES82J983186;01ADJM59KEC3M9QTT92251KMZB"/>
                      </RetailTransactionExtension>
              </RetailTransaction>
       </Transaction>
</DigitalReceipt>

Full scenario: Customer purchases a movie ticket.

 

Adam purchases a movie ticket using his credit card for the “Batman 4” to be picked up at the theatre. The ticket is included as a link that can be accessed from a smart phone or computer.

Data:
 Basic receipt data.
   ItemId
     MerchandiseHierarchy
       Ticket
 

<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="./ticketmachine.1.xsl" xsi:schemaLocation="./xsd/DigitalReceiptV2.0.0.xsd"?><DigitalReceipt xmlns="http://www.nrf-arts.org/IXRetail/namespace/" FixVersion="0" MajorVersion="6" MinorVersion="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nrf-arts.org/IXRetail/namespace/ file:///C:/Users/etnetwork/Dropbox/_ETNetwork%20Tests/XSD/DigitalreceiptV2.0.0.xsd">
       <Transaction FixVersion="0" MajorVersion="6" MinorVersion="0" TypeCode="SaleTransaction">
              <BusinessUnit>
                      <UnitID Name="EssEff Bio AB">223344-7722</UnitID>
                      <Address>
                             <AddressLine>Biografstolsraden 1</AddressLine>
                             <City>Stockholm</City>
                             <PostalCode>12233</PostalCode>
                      </Address>
                      <Telephone>
                             <AreaCode>08</AreaCode>
                             <LocalNumber>123123</LocalNumber>
                      </Telephone>
                      <Website>www.hemsidan.se</Website>
              </BusinessUnit>
              <WorkstationID WorkstationLocation="410">9</WorkstationID>
              <OperatorID WorkerID="9668">Alfred</OperatorID>
              <CurrencyCode>SEK</CurrencyCode>
              <TrailerText>
                      <Text>Välkommen åter</Text>
              </TrailerText>
              <ReceiptDateTime>2017-12-10T11:11:11</ReceiptDateTime>
              <ReceiptNumber>1234</ReceiptNumber>
              <RetailTransaction>
                      <LineItem>
                             <Sale ItemType="Stock">
                                    <ItemID Name="Biobiljett"/>
                                    <!-- The merchandise group for the sold item. -->
                                    <MerchandiseHierarchy Level="Department">Biobiljett</MerchandiseHierarchy>
                                    <Description>Batman 4</Description>
                                    <UnitCostPrice>100</UnitCostPrice>
                                    <RegularSalesUnitPrice>100</RegularSalesUnitPrice>
                                    <ActualSalesUnitPrice>100</ActualSalesUnitPrice>
                                    <ExtendedAmount>100</ExtendedAmount>
                                    <Quantity>1</Quantity>
                                    <Tax TaxType="VAT">
                                           <SequenceNumber>2</SequenceNumber>
                                           <TaxableAmount>80</TaxableAmount>
                                           <Amount>20</Amount>
                                           <Percent>25</Percent>
                                    </Tax>
                                    <Ticket EventName="Batman 4" EventDateTime="2017-12-10T18:13:51" EventLocation="SF Bio Victoria">
                                           <!-- Unique number for this specific ticket -->
                                           <ItemID Type="OTHER">https://dl.dropbox.com/u/6915122/Images/ticket23452345.png</ItemID>
                                    </Ticket>
                             </Sale>
                             <SequenceNumber>1</SequenceNumber>
                      </LineItem>
                      <LineItem>
                             <Tender SubTenderType="MasterCard" TenderType="CreditDebit" TypeCode="Sale">
                                    <Amount>100</Amount>
                                    <Authorization>
                                           <AuthorizationCode>123456</AuthorizationCode>
                                           <ReferenceNumber>000516698285</ReferenceNumber>
                                           <MerchantNumber>00000000000000000000000000813384084</MerchantNumber>
                                           <AuthorizationDateTime>2010-12-10T11:11:11</AuthorizationDateTime>
                                           <AuthorizingTermID>0000000221493434</AuthorizingTermID>
                                           <AuthorizationExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/" AID="12" TSI="34" TVR="56" MaskedCardNumber="***************1234"/>
                                    </Authorization>
                             </Tender>
                             <SequenceNumber>4</SequenceNumber>
                      </LineItem>
                      <LineItem>
                             <Tax TaxType="VAT">
                                    <TaxableAmount>80.0</TaxableAmount>
                                    <Amount>20</Amount>
                                    <Percent>25</Percent>
                                    <TaxExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/" GrossAmount="80"/>
                             </Tax>
                             <SequenceNumber>5</SequenceNumber>
                      </LineItem>
                      <Total TotalType="TransactionNetAmount">80</Total>
                      <Total TotalType="TransactionTaxAmount">20</Total>
                      <Total TotalType="TransactionGrandAmount">100</Total>
              </RetailTransaction>
       </Transaction>
</DigitalReceipt>