<?xml version="1.0" encoding="UTF-8"?>
<!-- example invoice including new DIGA codes from ISO 6523 and EAS codelist extension-->


<rsm:CrossIndustryInvoice xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100"
    xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
    xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100">
    <rsm:ExchangedDocumentContext>
        <ram:BusinessProcessSpecifiedDocumentContextParameter>
            <ram:ID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</ram:ID>
        </ram:BusinessProcessSpecifiedDocumentContextParameter>
        <ram:GuidelineSpecifiedDocumentContextParameter>
            <ram:ID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0#conformant#urn:xeinkauf.de:kosit:extension:xrechnung_3.0</ram:ID>
        </ram:GuidelineSpecifiedDocumentContextParameter>
    </rsm:ExchangedDocumentContext>
    <rsm:ExchangedDocument>
        <ram:ID>2020-1</ram:ID>
        <ram:TypeCode>380</ram:TypeCode>
        <ram:IssueDateTime>
            <udt:DateTimeString format="102">20200103</udt:DateTimeString>
        </ram:IssueDateTime>
        <ram:IncludedNote>
            <ram:Content>Eine Testrechnung für das Projekt DiGA-Rechnung.</ram:Content>
        </ram:IncludedNote>
    </rsm:ExchangedDocument>
    <rsm:SupplyChainTradeTransaction>
        <ram:IncludedSupplyChainTradeLineItem>
            <ram:AssociatedDocumentLineDocument>
                <ram:LineID>TEST_POSITION_01</ram:LineID>
            </ram:AssociatedDocumentLineDocument>
            <ram:SpecifiedTradeProduct>
                <!-- DiGA-VE-ID: -->
                <!-- BT-157 BR-CL-21 -->
                <ram:GlobalID schemeID="XR01">12345678</ram:GlobalID>
                <ram:BuyerAssignedID>ABCDEFGHIJKLMNOP</ram:BuyerAssignedID>
                <!-- DiGA-Name: -->
                <ram:Name>Tinnitus Rex</ram:Name>
                <ram:Description>Ein Artikel für Testrechnungen.</ram:Description>
                <!--
                <ram:IndividualTradeProductInstance>
                    <ram:SellByDateTime>
                        &lt;!&ndash; Tag der Leistungserbringung &ndash;&gt;
                        <udt:DateTimeString format="102">20200102</udt:DateTimeString>
                    </ram:SellByDateTime>
                </ram:IndividualTradeProductInstance>
-->
            </ram:SpecifiedTradeProduct>
            <ram:SpecifiedLineTradeAgreement>
                <ram:NetPriceProductTradePrice>
                    <ram:ChargeAmount>100.00</ram:ChargeAmount>
                </ram:NetPriceProductTradePrice>
            </ram:SpecifiedLineTradeAgreement>
            <ram:SpecifiedLineTradeDelivery>
                <!-- Eine Packungseinheit: -->
                <ram:BilledQuantity unitCode="C62">1</ram:BilledQuantity>
            </ram:SpecifiedLineTradeDelivery>
            <ram:SpecifiedLineTradeSettlement>
                <ram:ApplicableTradeTax>
                    <ram:TypeCode>VAT</ram:TypeCode>
                    <ram:CategoryCode>S</ram:CategoryCode>
                    <ram:RateApplicablePercent>19.00</ram:RateApplicablePercent>
                </ram:ApplicableTradeTax>
                <ram:SpecifiedTradeSettlementLineMonetarySummation>
                    <ram:LineTotalAmount>100.00</ram:LineTotalAmount>
                </ram:SpecifiedTradeSettlementLineMonetarySummation>
            </ram:SpecifiedLineTradeSettlement>
        </ram:IncludedSupplyChainTradeLineItem>
        <ram:ApplicableHeaderTradeAgreement>
            <ram:BuyerReference>Leitweg-ID</ram:BuyerReference>
            <ram:SellerTradeParty>
                <!-- IK des DiGA-Herstellers als "Seller Identifier" (BT-29) [BR-CO-26]: -->
                <!-- BR-CL-10 BR-DEX-04 -->
                <ram:GlobalID schemeID="XR03">987654321</ram:GlobalID>
                <ram:Name>Rechnungssteller</ram:Name>
                <ram:DefinedTradeContact>
                    <ram:PersonName>Max Mustermann</ram:PersonName>
                    <ram:TelephoneUniversalCommunication>
                        <ram:CompleteNumber>+49 000 001 0001</ram:CompleteNumber>
                    </ram:TelephoneUniversalCommunication>
                    <ram:EmailURIUniversalCommunication>
                        <ram:URIID>max.mustermann@rechnungssteller.de</ram:URIID>
                    </ram:EmailURIUniversalCommunication>
                </ram:DefinedTradeContact>
                <ram:PostalTradeAddress>
                    <ram:PostcodeCode>01234</ram:PostcodeCode>
                    <ram:LineOne>Musterstraße 1</ram:LineOne>
                    <ram:CityName>Berlin</ram:CityName>
                    <ram:CountryID>DE</ram:CountryID>
                </ram:PostalTradeAddress>
                <!-- BT-34 Seller electronic address and BT-34-1 Seller electronic address identification scheme identifier -->
                <!-- BR-CL-25 BR-DEX-07 -->
                <ram:URIUniversalCommunication>
                    <ram:URIID schemeID="XR01">zWZbhyav</ram:URIID>
                </ram:URIUniversalCommunication> 
                <ram:SpecifiedTaxRegistration>
                    <ram:ID schemeID="VA">DE 123 456 789</ram:ID>
                </ram:SpecifiedTaxRegistration>
            </ram:SellerTradeParty>
            <ram:BuyerTradeParty>
                <!-- IK der Krankenkasse als "Buyer Identifier" (BT-46): -->
                <!-- BR-CL-10 BR-DEX-04 -->
                <ram:GlobalID schemeID="XR03">123456789</ram:GlobalID>
                <ram:Name>Rechnungsempfänger</ram:Name>
                <ram:PostalTradeAddress>
                    <ram:PostcodeCode>01234</ram:PostcodeCode>
                    <ram:LineOne>Musterstraße 2</ram:LineOne>
                    <ram:CityName>Berlin</ram:CityName>
                    <ram:CountryID>DE</ram:CountryID>
                </ram:PostalTradeAddress>
                <!-- BT-49 Buyer electronic address und BT-49-1 Buyer electronic address identification schemeidentifier -->
                <!-- BR-CL-25 BR-DEX-07 -->
                <ram:URIUniversalCommunication>
                    <ram:URIID schemeID="XR01">zWZbhyav</ram:URIID>
                </ram:URIUniversalCommunication> 
            </ram:BuyerTradeParty>
        </ram:ApplicableHeaderTradeAgreement>
        <ram:ApplicableHeaderTradeDelivery>
            <ram:ShipToTradeParty> 
                <!-- BT-71 Deliver to location identifier und BT-71-1 Deliver to location identifier identificationscheme identifier -->
                <!-- BR-CL-26 BR-DEX-08 -->
                <ram:GlobalID schemeID="XR01">yfTP7q.W</ram:GlobalID>         
            </ram:ShipToTradeParty>    
            <ram:ActualDeliverySupplyChainEvent>
                <ram:OccurrenceDateTime>
                    <!-- Tag der Leistungserbringung -->
                    <udt:DateTimeString format="102">20200102</udt:DateTimeString>
                </ram:OccurrenceDateTime>
            </ram:ActualDeliverySupplyChainEvent>
        </ram:ApplicableHeaderTradeDelivery>
        <ram:ApplicableHeaderTradeSettlement>
            <!-- IK des Zahlungsempfängers als "Payee Identifier" (BT-60): -->
            <!--<ram:CreditorReferenceID schemeID="IK">987654322</ram:CreditorReferenceID>-->
            <!--
            <ram:TaxCurrencyCode>EUR</ram:TaxCurrencyCode>
-->
            <ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>
            <ram:PayeeTradeParty>
                <!-- IK des Zahlungsempfängers als "Payee Identifier" (BT-60): -->
                <!-- BR-CL-10 BR-DEX-04 -->
                <ram:GlobalID schemeID="XR03">987654322</ram:GlobalID>
                <ram:Name>Payee</ram:Name>
            </ram:PayeeTradeParty>
            
            <ram:SpecifiedTradeSettlementPaymentMeans>
                <ram:TypeCode>30</ram:TypeCode>
                <ram:PayeePartyCreditorFinancialAccount>
                    <!-- IBAN -->
                    <ram:IBANID>DE75512108001245126199</ram:IBANID>
                </ram:PayeePartyCreditorFinancialAccount>
            </ram:SpecifiedTradeSettlementPaymentMeans>
            <ram:ApplicableTradeTax>
                <ram:CalculatedAmount>19.00</ram:CalculatedAmount>
                <ram:TypeCode>VAT</ram:TypeCode>
                <ram:BasisAmount>100.00</ram:BasisAmount>
                <ram:CategoryCode>S</ram:CategoryCode>
                <ram:RateApplicablePercent>19.00</ram:RateApplicablePercent>
            </ram:ApplicableTradeTax>
            <ram:SpecifiedTradePaymentTerms>
                <ram:Description>[Description]</ram:Description>
            </ram:SpecifiedTradePaymentTerms>
            <ram:SpecifiedTradeSettlementHeaderMonetarySummation>
                <ram:LineTotalAmount>100.00</ram:LineTotalAmount>
                <ram:TaxBasisTotalAmount>100.00</ram:TaxBasisTotalAmount>
                <ram:TaxTotalAmount currencyID="EUR">19.00</ram:TaxTotalAmount>
                <ram:GrandTotalAmount>119.00</ram:GrandTotalAmount>
                <ram:DuePayableAmount>119.00</ram:DuePayableAmount>
            </ram:SpecifiedTradeSettlementHeaderMonetarySummation>
        </ram:ApplicableHeaderTradeSettlement>
    </rsm:SupplyChainTradeTransaction>
</rsm:CrossIndustryInvoice>

<!--
   - Copyright © 2020 BITMARCK Service GmbH
   -
   - Licensed under the Apache License, Version 2.0 (the "License");
   - you may not use this file except in compliance with the License.
   - You may obtain a copy of the License at
   -
   -     http://www.apache.org/licenses/LICENSE-2.0
   -
   - Unless required by applicable law or agreed to in writing, software
   - distributed under the License is distributed on an "AS IS" BASIS,
   - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   - See the License for the specific language governing permissions and
   - limitations under the License.
   -->

