Got any questions or don't find what you are looking for? We're always happy to help with your code or other questions you might have! Browse around and just let us know of any questions you might have, feel free to email us at [email protected].

This documentation for the receipt format includes data needed in posted receipts and a guide to create your export, scenarios, examples, security handling and resources – use the XSD to validate your receipts.

Required Data in Export

Receipts posted to the platform should follow the ARTS digital receipt standard and should be posted in real-time when a transaction has been carried out at the merchant POS (point of sale).

Receipts posted to the platform should fulfill the current standard for tax and legal accounting information for the country where the transaction has been carried out. Minimum requirements for posted transactions to the Kwick MARcet API are also aligned with current legislation in Scandinavia (and in general also internationally), and state that a posted receipt should at least include:

  • Business Unit / merchant info (org. no, address etc.)
  • Line items, per item sold / refunded etc.
  • Tender, for each payment in the transaction (card, cash etc.)
  • VAT, per line item and total VAT for a transaction.
  • Totals, incl. gross, net totals for transaction as well as optional totals for savings, bonus etc.

Receipt Components

Business Unit

All posted requests need to include the section for Business Unit in order to be a legal receipt. UnitID and Address are mandatory, telephone, website are recommended.

<BusinessUnit>
  <UnitID Name="Company Name AB">555555-1234</UnitID>
  <Address>
    <AddressLine>HQ streetname 1</AddressLine>
    <AddressLine>Box 123</AddressLine>
    <City>Stockholm</City>
    <PostalCode>114 30</PostalCode>
  </Address>
  <Telephone>
    <AreaCode>08</AreaCode>
    <LocalNumber>51517770</LocalNumber>
  </Telephone>
  <Website>www.company-public.com</Website>
  <!--a contact email is posted as a second website field.-->
  <Website>[email protected]</Website>
</BusinessUnit>

Line Item

The line item on a receipt refers to any service or product added to a retail transaction. The line item could include a sale, return, deposit, discount, customer order for pickup etc. A typical line item on a receipt for a sold item is a Sale, which is shown below. See Scenarios(## Scenarios) for other common line item options.

Sale

For each item sold on a receipt, there should be a LineItem/Sale.

<LineItem>
  <Sale>
    <ItemID Type="EAN13">12312123</ItemID>
    <MerchandiseHierarchy Level="Department">TV</MerchandiseHierarchy>
    <Description>Q-LED TV 50 tum</Description>
    <ExtendedAmount>4995.00</ExtendedAmount>
    <Tax>
      <TaxableAmount>3996</TaxableAmount>
      <Amount>999</Amount>
      <Percent>25</Percent>
    </Tax>
  </Sale>
  <SequenceNumber>1</SequenceNumber>
</LineItem>

VAT

All posted requests should include 3 levels of VAT specifications:

(1) VAT per line item:

<LineItem>
  <Sale ItemType="Stock">
    <MerchandiseHierarchy ID="Department">Persontransport inrikes</MerchandiseHierarchy>
    <Description>TAXI</Description>
    <ExtendedAmount>1712</ExtendedAmount>
    <Tax TaxType="VAT">
      <TaxableAmount>1609.54</TaxableAmount>
      <Amount>102.46</Amount>
      <Percent>6</Percent>
    </Tax>
  </Sale>
  <SequenceNumber>1</SequenceNumber>
</LineItem>

(2) VAT per VAT category for transaction, including taxable amount, vat amount, vat percent and gross amount:

<LineItem>
  <!-- NOTE 1 per VAT %, 0, 6, 12, 25 in SWE. -->
  <Tax TaxType="VAT">
    <TaxableAmount>1921.0</TaxableAmount>
    <Amount>115.0</Amount>
    <Percent>6</Percent>
    <TaxExtension GrossAmount="2036" xmlns="http://www.etnetwork.org/digitalreceipt-extension/"/>
  </Tax>
  <SequenceNumber>4</SequenceNumber>
</LineItem>

(3) VAT Total Summary for each posted Transaction, net amount, tax amount and grand amount (net amount + vat amount):

<Total TotalType="TransactionNetAmount">1921.0</Total>
<Total TotalType="TransactionTaxAmount">115.0</Total>
<Total TotalType="TransactionGrandAmount">2036.0</Total>

Trailer texts

Any texts you might want to add can be included in /TrailerText element.

<TrailerText>
  <Text>Digital Receipts</Text>
  <Text>enabled via Kwick</Text>
</TrailerText>

Receipt logo

Please send us the logo you want your receipts to have, preferably a .png or .svg file to [email protected]. Logo element in posted request can then be according to the following.

<Logo>
	<FileName>logo</FileName>
</Logo>

Include Barcode or QRcode

The code should be included in the RetailTransaction extension, available types are listed as enumerations. The machine-reading code is generated on our side and placed on bottom of the receipt.

<RetailTransactionExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/">
    <Barcode Code="S0301062F11D" Type="Code39"/>
</RetailTransactionExtension>

Language

You can use the ETNetwork ARTs extension to set a language of the receipt. This is needed if you want the receipts to be searchable.

<Language xmlns="http://www.etnetwork.org/digitalreceipt-extension/">english</Language>

Scenarios

LineItem with negative amount

LineItem with negative amount

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

Refund

If you wish to post a refund instead of a sale for your whole Tender, then @TypeCode should be "Refund". This will create a neat refund receipt.

<Tender TenderType="CreditDebit" TypeCode="Refund">

Summary of rewards and savings

If you wish to include the optional elements for total savings amount and total bonus reward amount on the receipt, this is done using TotalType according to example below:

<Total CurrencyCode="SEK" TotalType="TransactionTotalSavings">157.000</Total>
<Total CurrencyCode="SEK" TotalType="TransactionBonusRewardAmount">500.000</Total>

Return

If instead a line item is a Return instead of Sale, it is defines as a LineItem/Return.

<LineItem>
  <Return>
    <POSIdentity>
      <POSItemID>111</POSItemID>
    </POSIdentity>
	<Description>AVOCADO BENEDICT</Description>
	<UnitCostPrice>152.0</UnitCostPrice>
	<ExtendedAmount Action="Subtract">304.0</ExtendedAmount>
	<Quantity>2</Quantity>
	<RetailPriceModifier>
	  <SequenceNumber>1</SequenceNumber>
	  <Amount Action="Add">121.60</Amount>
	  <Description>Rabatt 40%</Description>
	</RetailPriceModifier>
	<Tax>
	  <TaxableAmount>162.86</TaxableAmount>
	  <Amount>19.54</Amount>
	  <Percent>12</Percent>
	</Tax>
  </Return>
  <SequenceNumber>1</SequenceNumber>
</LineItem>

Discount

If you instead have a discount on receipt level, instead of on line item level, this is posted as separate line item:

<LineItem>
	<Discount>
		<SequenceNumber>3</SequenceNumber>
		<Amount Action="Subtract">50</Amount>
		<Description>Purchase discount (EUR)</Description>
	</Discount>
	<SequenceNumber>4</SequenceNumber>
</LineItem>

Rebate

When it comes to rebates, we need to get into some details. Basically you've got a two main options:

A) Either you present the sold line item as a rebated item where there is a regular price with a retail price modifier. This is common case for rebates, typically for an automatic rebate at the POS.

RegularSalesUnitPrice = 10€

ActualSalesUnitPrice = 9€

ExtendedAmount = 18€

Quantity = 2

RetailPriceModifier

Amount

The regular price will then be presented on one row followed by the retail price modifier.

If you add a rebate to a LineItem/Sale using the RetailPriceModifier, this should be done as follows.

Please remember to add the Action argument, typically Action="Subtract".

<RegularSalesUnitPrice>20.00</RegularSalesUnitPrice>
<ActualSalesUnitPrice>9.00</ActualSalesUnitPrice>                    
<ExtendedAmount Action="Add">18.00</ExtendedAmount>
<Quantity>2</Quantity>                   
<RetailPriceModifier MethodCode="Rebate">
  <SequenceNumber>2</SequenceNumber>
  <Amount Action="Subtract">1.00</Amount>
  <Description>Item discount</Description>
</RetailPriceModifier>

B) Or, there is the option with an a manually added discount without a retail price modifier – and instead use a Discount element or gather all rebates as a Discount element by the end of the transaction.

Please note you then instead need to add a separate Discount element, as described as separate scenario above.

RegularSalesUnitPrice = 10€

ActualSalesUnitPrice = 0€

ExtendedAmount = 0€

Quantity = 1

Discount = 10€

If you are using a LineItem/Discount to display the discount as a separate LineItem, such as for this case where a customer gets the lunch salad for free purchasing the product using discount points.

<LineItem CancelFlag="false">
  <Sale>
   <ItemID Name="MANGO SALAD" Type="GTIN">12345678</ItemID>
   <Description>MANGO SALAD</Description>
   <RegularSalesUnitPrice>100.0000</RegularSalesUnitPrice>
   <ActualSalesUnitPrice>0.0000</ActualSalesUnitPrice>
   <ExtendedAmount>0.00000</ExtendedAmount>
   <Quantity Units="1.00" UnitOfMeasureCode="EA">1.00000</Quantity>
   <Tax TaxSubType="Standard" TaxType="VAT">
     <TaxableAmount>89.29</TaxableAmount>
     <Amount>10.71</Amount>
     <Percent>12.00</Percent>
     <TaxGroupID Name="ArticleGroupCode">04123</TaxGroupID>
    </Tax>
   </Sale>
   <SequenceNumber>1</SequenceNumber>
</LineItem>
<LineItem CancelFlag="false">
  <Discount>
    <SequenceNumber>1</SequenceNumber>
    <Amount Action="Subtract">100.00000</Amount>
    <Description>PAID WITH POINTS (MANGO SALAD)</Description>
  </Discount>
  <SequenceNumber>3</SequenceNumber>
</LineItem>

Adding a link to a LineItem

You can add a link to a LineItem using the PCMUUID element.

🚧

Do not include https:// or http:// in the AssetFileName attribute

This will apply automatically when creating the receipt.

Example for a Warranty added to a LineItem would be:

<LineItem>
  <Sale>...</Sale>
  <SequenceNumber>1</SequenceNumber>
  <PCMUUID AssetFileName="www.example.com">Warranty</PCMUUID>
</LineItem>

Different Types of Totals

There is a variation of total amounts that can be used for your transaction:

<!-- total without VAT -->
<Total CurrencyCode="SEK" TotalType="TransactionNetAmount">20.54000</Total>
<!-- total incl. VAT -->
<Total CurrencyCode="SEK" TotalType="TransactionGrandAmount">23.00000</Total>
<!-- total VAT -->
<Total CurrencyCode="SEK" TotalType="TransactionTaxAmount">2.46000</Total>
<!-- total amount of savings -->
<Total CurrencyCode="SEK" TotalType="TransactionTotalSavings">59.00000</Total>
<!-- total amount subject to bonus reward -->
<Total CurrencyCode="SEK" TotalType="TransactionBonusRewardAmount">23.00000</Total>

Pickup

If you want to include a pickup for when a customer has purchased items for pickup at a later time.

<Total TotalType="TransactionNetAmount">55.2000</Total>
<Total TotalType="TransactionTaxAmount">13.8000</Total>
<Total TotalType="TransactionGrandAmount">69.00</Total>
<Pickup>
  <Notes>Utlämnat förköp nr2022:05 (SEK) 225,00</Notes>
</Pickup>      

Tender Payment Types

📘

For each payment included in the receipts, there needs to be a Tender.

Card Payment

If a receipts includes payment by card and one part with cash, there should be a tender for each payment.

The tender data for a card payment is retrieved from the payment terminal for a card authorization, and correspond to defined fields in the ISO 8583 standard for financial transactions.

Mandatory fields to include in a Tender/Authorization for a card payment are:

# ISO-defined data elements below and data type # ARTS schema enumeration:

AuthorizationCode     # iso field 38, type: an 6       # ARTS: an 6
ReferenceNumber       # iso field 37, type: an 12      # ARTS: an12
MerchantNumber        # iso field 42, type: an15       # ARTS: an35, with leading zeroes
AuthorizationDateTime # iso fields 12+13, type: n6+n6  # ARTS: dateTime format
AuthorizingTermID     # iso field 41, type: an12       # ARTS: an16
MaskedCardNumber      # last four numbers only*        # ARTS: an19

*Data posted for a card payment should never include sensitive card data, and therefore not be subject to PCI DSS standards.

Please note that SubTenderType should not be part of Tender element, but as part of Tender/TenderExtension. Reason for this is enumeration in Tender element, where TenderExtension allows for all different card types, i.e. "MasterCard MyBank Gold" etc.

In sample below, also the ContactlessPaymentFlag is included for contactless card payment.

<LineItem>
  <Tender TenderType="CreditDebit" TypeCode="Sale">
    <Amount>100</Amount>
    <Authorization>
      <AuthorizationCode>123456</AuthorizationCode>
      <ReferenceNumber>000516698285</ReferenceNumber>
      <MerchantNumber>00000000000000000000000000813384084</MerchantNumber>
      <AuthorizationDateTime>2022-12-24T11:11:11</AuthorizationDateTime>
      <AuthorizingTermID>0000000221493434</AuthorizingTermID>
      <AuthorizationExtension AID="12" MaskedCardNumber="**** **** **** 1234" TSI="34" TVR="56" xmlns="http://www.etnetwork.org/digitalreceipt-extension/"/>
    </Authorization>
    <!-- make sure to include PrimaryAccountNumber, IssuerIdentificationNumber or CardHolderName -->
    <CreditDebit ContactlessPaymentFlag="true"> 
      <PrimaryAccountNumber/>
    </CreditDebit>
    <TenderExtension  xmlns="http://www.etnetwork.org/digitalreceipt-extension/" SubTenderType="MasterCard"/>  
  </Tender>
  <SequenceNumber>4</SequenceNumber>
</LineItem>

Cash Payment

A payment made with cash should be posted as a Tender with @TenderType="Cash":

<LineItem>
  <Tender TenderType="Cash" TypeCode="Sale">
    <Amount>30.00</Amount>    
  </Tender>
  <SequenceNumber>1</SequenceNumber>
</LineItem>

Cashback

Customer receives backback from POS:

<LineItem>
  <Tender TenderType="Cash" TypeCode="Sale">
    <Amount>39.00</Amount>
    <Cashback>9.00</Cashback>
  </Tender>
  <SequenceNumber>3</SequenceNumber>
  </LineItem>

an option for this is to use TenderChange,

<LineItem CancelFlag="false">
  <TenderChange TenderType="Cash" TypeCode="Refund">
    <Amount>2.00000</Amount>
  </TenderChange>
  <SequenceNumber>7</SequenceNumber>
</LineItem>

Swish (Swedish Mobile Payment)

For the Swish element, attributes Reference id (transaction id) and Payee alias are mandatory (payee alias being the receiving corp. Swish id, where payer alias is the id for person making the payment). Not included in sample below are optional attributes Message, DateCreated. For details regarding the Swish solution and attributes for extension, please see Swish developer documentation.

<LineItem CancelFlag="false">
  <Tender TypeCode="Sale" TenderType="Mobile">
    <Amount Currency="SEK">25.00</Amount>
    <TenderExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/">
	  <Swish ReferenceId="9211573038061123" PayeeAlias="0123456123" Description="Swish" Status="PAID" DatePaid="2022-12-24T14:52:51"/>
	</TenderExtension>
  </Tender>
  <SequenceNumber>3</SequenceNumber>
</LineItem>

Invoice and Other Payments

For general invoice payments, use the Tender extension in your Tender, and add element OtherPayment, with Description for what you'd like to present on the receipt, an optional Id to specify the payment transaction, and Type attribute to include the payment type.

 <Tender TenderType="Faktura">
  <Amount>49.00</Amount>
  <TenderExtension SubTenderType="Invoice details" xmlns="http://www.etnetwork.org/digitalreceipt-extension/">
  <OtherPayment Description="Company name, contact person" Id="Order no: 123" Type="invoice"/>
  </TenderExtension>
</Tender>

Klarna invoices work the same way, use the Tender extension in your Tender, and add element OtherPayment, with Id and Type attributes to specify the payment.

<TenderExtension SubTenderType="Faktura" xmlns="http://www.etnetwork.org/digitalreceipt-extension/">
  <OtherPayment Description="Din transaktion är godkänd, du får en faktura från Klarna" Id="75938:67fa94141cfeb737ce5dc787bf36688bb1123fec:7215373549990123" Type="klarna_invoice"/>
</TenderExtension>

Redeemed Points

Redeemed points should be summarized per transaction, same way as a Tender, should be specified as LoyaltyRedemption. Below is an example if 100 points have been redeemed in order to pay for an amount of 100 in the retail transaction.

<LineItem>
  <LoyaltyRedemption>
		<PointsRedeemed Type="Redeemed">100</PointsRedeemed>
		<LoyaltyProgram TypeCode="Points">
			<LoyaltyProgramID Name="ACME Points r us">112233ABC</LoyaltyProgramID>
			<LoyaltyAccountID >1********2</LoyaltyAccountID>
		</LoyaltyProgram>
		<Amount>100</Amount>
	</LoyaltyRedemption>
	<SequenceNumber>12</SequenceNumber>
</LineItem>

You can also choose to use the Loyalty Account element to sum up details for the loyalty account, points balance, expiration etc.

<LoyaltyAccount>
  <ExpirationDate>2033-06-24</ExpirationDate>
  <Points Type="PreviousPoints">5000</Points>
  <Points Type="Redeemed">100</Points>
  <Points Type="PointsEarned">62</Points>
  <Points Type="Balance">4962</Points>
  <PointsExpiration>
   <ToBeExpiredPoints>5000</ToBeExpiredPoints>
   <PointsExpirationDate>2024-06-23</PointsExpirationDate>
  </PointsExpiration>
</LoyaltyAccount>

Foreign Amounts

Foreign amounts are specified as OriginalFaceAmount.

   <LineItem>
    <Tender TenderType="Cash" TypeCode="Sale”>
     <Amount>80.0</Amount>
      <ForeignCurrency>
      <CurrencyCode>EUR</CurrencyCode>
      <OriginalFaceAmount>10.000</OriginalFaceAmount>
      <ExchangeRate>8.00</ExchangeRate>
     </ForeignCurrency>
    </Tender>
    <SequenceNumber>3</SequenceNumber>
   </LineItem>

Use Case Examples (ARTS)

Marcet uses ARTS Digital Receipt as its standard for digital receipts. Below are som examples of ARTS Digital Receipts covering specific scenarios. At the end of this chapter you will find instructions on how to handle specific scenarios such as refund etc.

Please note, due to GDPR, no personal data for customer or retail staff should be posted – if not incl. in loyalty terms, then customer data can be included in a receipt posted.

Customer stays at a hotel

<?xml version="1.0" encoding="UTF-8"?>
<DigitalReceipt FixVersion="0" MajorVersion="6" MinorVersion="0" xmlns="http://www.nrf-arts.org/IXRetail/namespace/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Transaction FixVersion="0" MajorVersion="6" MinorVersion="0" TypeCode="SaleTransaction">
    <BusinessUnit>
      <UnitID Name="DemoHotell AB">223344-7722</UnitID>
      <Address>
        <AddressLine>Adressradsvägen 1</AddressLine>
        <City>Stockholm</City>
        <PostalCode>12233</PostalCode>
      </Address>
      <Telephone>
        <AreaCode>08</AreaCode>
        <LocalNumber>123123</LocalNumber>
      </Telephone>
      <Website>www.hemsidan.se</Website>
    </BusinessUnit>
    <Logo>
      <FileName>c4bb6c00-d7c4-487b-b4ab-edf8d50cb965</FileName>
    </Logo>
    <WorkstationID WorkstationLocation="410">POS location code</WorkstationID>
    <CurrencyCode>SEK</CurrencyCode>
    <ReceiptDateTime>2023-03-01T11:11:11</ReceiptDateTime>
    <ReceiptNumber>1234</ReceiptNumber>
    <RetailTransaction>
      <LineItem>
        <Sale ItemType="Stock">
          <ItemID Name="Accomondation"/>
          <MerchandiseHierarchy ID="Department">accomondation</MerchandiseHierarchy>
          <Description>Accomondation</Description>
          <UnitCostPrice>1000</UnitCostPrice>
          <ExtendedAmount>1000</ExtendedAmount>
          <Quantity>1</Quantity>
          <Tax TaxType="VAT">
            <SequenceNumber>2</SequenceNumber>
            <TaxableAmount>800</TaxableAmount>
            <Amount>200</Amount>
            <Percent>25</Percent>
          </Tax>
        </Sale>
        <SequenceNumber>1</SequenceNumber>
        <BeginDateTime>2022-04-01T12:12:12</BeginDateTime>
      </LineItem>
      <LineItem>
        <Tender SubTenderType="MasterCard" TenderType="CreditDebit" TypeCode="Sale">
          <Amount>1000</Amount>
          <Authorization>
            <AuthorizationCode>123456</AuthorizationCode>
            <ReferenceNumber>000518307578</ReferenceNumber>
            <MerchantNumber>00000000000000000000000000917514948</MerchantNumber>
            <AuthorizationDateTime>2023-03-01T11:11:11</AuthorizationDateTime>
            <AuthorizingTermID>0000000286258139</AuthorizingTermID>
            <AuthorizationExtension AID="122345678" MaskedCardNumber="**** **** **** 1234" TSI="122345678" TVR="122345678" xmlns="http://www.etnetwork.org/digitalreceipt-extension/"/>
          </Authorization>
        </Tender>
        <SequenceNumber>4</SequenceNumber>
      </LineItem>
      <LineItem>
        <Tax TaxType="VAT">
          <TaxableAmount>800</TaxableAmount>
          <Amount>200</Amount>
          <Percent>25</Percent>
          <TaxExtension GrossAmount="1000" xmlns="http://www.etnetwork.org/digitalreceipt-extension/"/>
        </Tax>
        <SequenceNumber>5</SequenceNumber>
      </LineItem>
      <Total TotalType="TransactionNetAmount">800</Total>
      <Total TotalType="TransactionTaxAmount">200</Total>
      <Total TotalType="TransactionGrandAmount">1000</Total>
      <!-- sharing of personal data agreed in terms -->
      <Customer>
        <Name>
          <Name>Kalle Testsson</Name>
        </Name>
        <Address>
          <AddressLine>Adressradsvägen 2</AddressLine>
          <City>Stockholm</City>
          <PostalCode>12233</PostalCode>
          <Country>Sweden</Country>
        </Address>
        <CustomerExtension Arrival="2023-03-12" ConfirmationNo="123435" Departure="2022-03-13" FolioNo="123121" GuestName="Kalle Testsson" PNR="pnr_example" RoomNo="2222" xmlns="http://www.etnetwork.org/digitalreceipt-extension/"/>
      </Customer>
    </RetailTransaction>
  </Transaction>
  <!-- Add a last line with your partner specific DigID, enabling retrieval of non-card transactions (cash) -->
  <DigID xmlns="http://www.etnetwork.org/schema/digid/V1.0" ETNDigIDPrefix="181224" ReceiptNo="R123444758637069504700001"/>
</DigitalReceipt>

Customer purchases a TV and extended warranty. Customer receives loyalty points

<DigitalReceipt MajorVersion="6" xmlns="http://www.nrf-arts.org/IXRetail/namespace/">
  <Transaction 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>
    <!-- note: dont share staff personal details, rather leave bland if personal info -->
    <OperatorID WorkerID="1234">POS operator code</OperatorID>
    <CurrencyCode>SEK</CurrencyCode>
    <TrailerText>
      <Text>Öppet köp i 60 dagar!</Text>
      <Text>Tack för besöket</Text>
      <Text>Välkommen åter</Text>
    </TrailerText>
    <ReceiptDateTime>2023-02-10T11:11:11</ReceiptDateTime>
    <ReceiptNumber>1234</ReceiptNumber>
    <RetailTransaction>
      <LineItem>
        <Sale>
          <ItemID Type="EAN13">12328371837</ItemID>
          <!-- The merchandise group for the sold item. -->
          <MerchandiseHierarchy Level="Department">TV</MerchandiseHierarchy>
          <Description>Q-LED TV 50 tum</Description>
          <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 Type="EAN13">12328371822</ItemID>
          <!-- The merchandise group for the sold item. -->
          <MerchandiseHierarchy Level="Department">Garanti</MerchandiseHierarchy>
          <Description>Warranty 12 months</Description>
          <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>2023-02-10T11:11:11</AuthorizationDateTime>
            <AuthorizingTermID>0000000001004952</AuthorizingTermID>
            <AuthorizationExtension AID="21" MaskedCardNumber="**** **** **** 3234" TSI="21" TVR="21" xmlns="http://www.etnetwork.org/digitalreceipt-extension/"/>
          </Authorization>
        </Tender>
        <SequenceNumber>3</SequenceNumber>
      </LineItem>
      <LineItem>
        <Tax TaxType="VAT">
          <TaxableAmount>4235.20</TaxableAmount>
          <Amount>1058.80</Amount>
          <Percent>25</Percent>
          <TaxExtension GrossAmount="5294.00" xmlns="http://www.etnetwork.org/digitalreceipt-extension/"/>
        </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>
          <!-- Primary account number as in member loyalty no, not as a payment card PAN.-->
          <PrimaryAccountNumber>1241234</PrimaryAccountNumber>
        </LoyaltyCard>
        <LoyaltyProgram>
          <LoyaltyProgramID>julrusch</LoyaltyProgramID>
          <ExpirationDate>2023-12-31</ExpirationDate>
          <CumulativeNetSalesAmount>1500</CumulativeNetSalesAmount>
          <Points>1000</Points>
        </LoyaltyProgram>
      </LoyaltyAccount>
      <RetailTransactionExtension xmlns="http://www.etnetwork.org/digitalreceipt-extension/">
        <RefundPeriod LastDate="2023-12-24"/>
        <ControlUnit Code="TVQ965EWPPW499TTWRSDQWES82J983186;01ADJM59KEC3M9QTT92251KMZB" ID="RIHTT000000123429"/>
      </RetailTransactionExtension>
    </RetailTransaction>
  </Transaction>
  <!-- Add a last line with your partner specific DigID, enabling retrieval of non-card transactions (cash) -->
  <DigID xmlns="http://www.etnetwork.org/schema/digid/V1.0" ETNDigIDPrefix="191224" ReceiptNo="R123444758637069504700001"/>
</DigitalReceipt>

Variation of rebates vs. discounts

<LineItem CancelFlag="false">
  <Sale>
    <ItemID Name="Internal Item ID" Type="GTIN">123456789</ItemID>
    <Description>DOUGHNUTS 1,0 KG</Description>
    <RegularSalesUnitPrice>39.0000</RegularSalesUnitPrice>
    <ActualSalesUnitPrice>29.0000</ActualSalesUnitPrice>
    <ExtendedAmount>29.00000</ExtendedAmount>
    <Quantity Units="10.00" UnitOfMeasureCode="EA">1</Quantity>
    <RetailPriceModifier MethodCode="Rebate">
      <SequenceNumber>1</SequenceNumber>
      <Amount Action="Subtract">20.00000</Amount>
      <Description>Rebate 20 SEK per kg</Description>
    </RetailPriceModifier>
    <RetailPriceModifier MethodCode="Rebate">
      <SequenceNumber>1</SequenceNumber>
      <Amount Action="Subtract">2.62</Amount>
      <Description>Transaction rebate (20%)</Description>
    </RetailPriceModifier>
    <RetailPriceModifier MethodCode="Rebate">
      <SequenceNumber>1</SequenceNumber>
      <Amount Action="Subtract">5.9</Amount>
      <Description>Transaction (SEK)</Description>
    </RetailPriceModifier>
    <Tax TaxSubType="Standard" TaxType="VAT">
      <TaxableAmount>25,893</TaxableAmount>
      <Amount>3.107</Amount>
      <Percent>12.00</Percent>
      <TaxGroupID Name="ArticleGroupCode">01234</TaxGroupID>
    </Tax>
    </Sale>
     <SequenceNumber>2</SequenceNumber>
  </LineItem>
  <LineItem CancelFlag="false">
    <Discount>
      <SequenceNumber>1</SequenceNumber>
      <Amount Action="Subtract">10.00000</Amount>
      <Description>Happy Friday Discount</Description>
    </Discount>
    <SequenceNumber>3</SequenceNumber>
  </LineItem>

Customer purchases a movie ticket

<DigitalReceipt MajorVersion="6" xmlns="http://www.nrf-arts.org/IXRetail/namespace/">
  <Transaction 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">POS ops code</OperatorID>
    <CurrencyCode>SEK</CurrencyCode>
    <TrailerText>
      <Text>Välkommen åter</Text>
    </TrailerText>
    <ReceiptDateTime>2022-12-10T11:11:11</ReceiptDateTime>
    <ReceiptNumber>1234</ReceiptNumber>
    <RetailTransaction>
      <LineItem>
        <Sale ItemType="Stock">
          <ItemID Type="EAN13">12328371811</ItemID>
          <MerchandiseHierarchy Level="Department">Category</MerchandiseHierarchy>
          <Description>Batman 4</Description>
          <UnitCostPrice>100</UnitCostPrice>
          <ExtendedAmount>100</ExtendedAmount>
          <Quantity>1</Quantity>
          <Tax TaxType="VAT">
            <SequenceNumber>2</SequenceNumber>
            <TaxableAmount>80</TaxableAmount>
            <Amount>20</Amount>
            <Percent>25</Percent>
          </Tax>
          <!-- Unique code for the item. -->
          <Ticket EventDateTime="2022-12-10T21:00:00" EventLocation="Bio Victor" EventName="Batman 9">
            <!-- 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>2022-12-10T11:11:11</AuthorizationDateTime>
            <AuthorizingTermID>0000000221493434</AuthorizingTermID>
            <AuthorizationExtension AID="12" MaskedCardNumber="**** **** **** 1234" TSI="34" TVR="56" xmlns="http://www.etnetwork.org/digitalreceipt-extension/"/>
          </Authorization>
        </Tender>
        <SequenceNumber>4</SequenceNumber>
      </LineItem>
      <LineItem>
        <Tax TaxType="VAT">
          <TaxableAmount>80.0</TaxableAmount>
          <Amount>20</Amount>
          <Percent>25</Percent>
          <TaxExtension GrossAmount="80" xmlns="http://www.etnetwork.org/digitalreceipt-extension/"/>
        </Tax>
        <SequenceNumber>5</SequenceNumber>
      </LineItem>
      <Total TotalType="TransactionNetAmount">80</Total>
      <Total TotalType="TransactionTaxAmount">20</Total>
      <Total TotalType="TransactionGrandAmount">100</Total>
    </RetailTransaction>
  </Transaction>
  <!-- Add a last line with your partner specific DigID, enabling retrieval of non-card transactions (cash) -->
  <DigID xmlns="http://www.etnetwork.org/schema/digid/V1.0" ETNDigIDPrefix="191224" ReceiptNo="R123444758637069504700001"/>
</DigitalReceipt>