/ubl:Invoice

Invoice

Türkiye | VRBL-Invoice-TR-1p2
Download sample files
Context ID INV0001
Usage M

Description

VRBL is a general invoice data model based on UBL 2.4 and Peppol PINT. It serves as the base for jurisdiction-specific specializations.

Child elements
Usage Element Description Cardinality
M cec:UBLExtensions Extensions Group 0..1
M cbc:CustomizationID Specification Identifier

Identifies a user-defined customization of UBL for a specific use.

0..1
M cbc:ProfileID Business Process Type

Identifies a user-defined profile of the customization of UBL being used.

0..1
M cbc:ID Invoice Number

An identifier for this document, assigned by the sender.

1..1
O cbc:UUID Unique Unit ID

A universally unique identifier for an instance of this document.

0..1
M cbc:CopyIndicator Copy Indicator

Indicates whether this document is a copy (true) or not (false).

0..1
M cbc:LineCountNumeric Line Count Numeric

The number of lines in the document.

0..1
M cbc:IssueDate Invoice Issue Date

The date, assigned by the sender, on which this document was issued.

1..1
M cbc:InvoiceTypeCode Invoice Type Code

A code signifying the type of the Invoice.

0..1
O cbc:Note Invoice Note

Free-form text pertinent to this document, conveying information that is not contained explicitly in other structures.

0..n
M cbc:DocumentCurrencyCode Document Currency Code

A code signifying the default currency for this document.

0..1
M cac:AccountingSupplierParty Seller

The accounting supplier party.

1..1
M cac:AccountingCustomerParty Buyer

The accounting customer party.

0..1
O cac:Delivery Delivery Information

A delivery associated with this document.

0..n
M cac:TaxTotal[cbc:TaxAmount/@currencyID = ../cbc:DocumentCurrencyCode] Tax Total

The total amount of a specific type of tax.

0..n
O cac:WithholdingTaxTotal Withholding Tax

The total withholding tax.

0..n
O cac:LegalMonetaryTotal Document Totals

The total amount payable on the Invoice, including Allowances, Charges, and Taxes.

1..1
M+ cac:InvoiceLine Invoice Line

A line describing an invoice item.

1..n
Details

Example: TR_invoice_ihracat_export.xml

<ubl:Invoice schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 file:///C:/Users/FA/Documents/e-invoicing-format/vrbl/maindoc/UBL-Invoice-2.4.xsd">
  <ext:UBLExtensions>
    <ext:UBLExtension>
      <ext:ExtensionContent>
        <vrbl:InvoiceExtension>
          <vrbl:AdditionalParty code="VRBL:TR:Customs" name="Customs data">
            <cac:Party>
              <cac:PartyName>
                <cbc:Name>Gümrük ve Ticaret Bakanlığı Gümrükler Genel Müdürlüğü- Bilgi İşlem Dairesi Başkanlığı</cbc:Name>
              </cac:PartyName>
              <cac:PostalAddress>
                <cbc:CitySubdivisionName/>
                <cbc:CityName>Ankara</cbc:CityName>
                <cac:Country>
                  <cbc:IdentificationCode>TR</cbc:IdentificationCode>
                </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                <ext:UBLExtensions>
                  <ext:UBLExtension>
                    <ext:ExtensionContent>
                      <vrbl:PartyTaxSchemeExtension>
                        <vrbl:TaxOfficeName>Ulus</vrbl:TaxOfficeName>
                      </vrbl:PartyTaxSchemeExtension>
                    </ext:ExtensionContent>
                  </ext:UBLExtension>
                </ext:UBLExtensions>
                <cbc:CompanyID>1460415308</cbc:CompanyID>
                <cac:TaxScheme>
                  <cbc:ID>VAT</cbc:ID>
                </cac:TaxScheme>
              </cac:PartyTaxScheme>
            </cac:Party>
          </vrbl:AdditionalParty>
          <vrbl:InvoiceSubtypeCode>VRBL:TR:IHRACAT</vrbl:InvoiceSubtypeCode>
          <vrbl:RoutingDetails>
            <vrbl:Sender>TR0000000000</vrbl:Sender>
            <vrbl:Receiver>GENERIC_TR_UBL_1p2</vrbl:Receiver>
          </vrbl:RoutingDetails>
        </vrbl:InvoiceExtension>
      </ext:ExtensionContent>
    </ext:UBLExtension>
  </ext:UBLExtensions>
  <cbc:CustomizationID>urn:vertexinc:vrbl:billing:1#Invoice#VRBL-Invoice-TR-1p2</cbc:CustomizationID>
  <cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
  <cbc:ID>BBB2025000000001</cbc:ID>
  <cbc:CopyIndicator>false</cbc:CopyIndicator>
  <cbc:UUID>b293c1bb-52f5-48b2-abb8-5e29765919f0</cbc:UUID>
  <cbc:IssueDate>2025-07-23</cbc:IssueDate>
  <cbc:InvoiceTypeCode>VRBL:TR:ISTISNA</cbc:InvoiceTypeCode>
  <cbc:Note>#YALNIZ BİN İKİ YÜZ ELLİ Türk Lirası#</cbc:Note>
  <cbc:DocumentCurrencyCode listID="ISO 4217 Alpha" listAgencyName="United Nations Economic Commission for Europe" listName="Currency" listVersionID="2001">TRY</cbc:DocumentCurrencyCode>
  <cbc:LineCountNumeric>2</cbc:LineCountNumeric>
  <cac:AccountingSupplierParty>
    <cac:Party>
      <cac:PartyIdentification>
        <cbc:ID schemeID="VRBL:TR:MERSISNO">0123456789012345</cbc:ID>
      </cac:PartyIdentification>
      <cac:PartyIdentification>
        <cbc:ID schemeID="VRBL:TR:TICARETSICILNO">12345</cbc:ID>
      </cac:PartyIdentification>
      <cac:PartyName>
        <cbc:Name>e-Fatura supplier A.Ş.</cbc:Name>
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:Room>1</cbc:Room>
        <cbc:StreetName>Etlik Caddesi</cbc:StreetName>
        <cbc:BuildingName>Gelir İdaresi Ek. Hizmet Binası</cbc:BuildingName>
        <cbc:BuildingNumber>16</cbc:BuildingNumber>
        <cbc:CitySubdivisionName>Altındağ</cbc:CitySubdivisionName>
        <cbc:CityName>Ankara</cbc:CityName>
        <cbc:PostalZone>06110</cbc:PostalZone>
        <cbc:Region>Dışkapı</cbc:Region>
        <cac:Country>
          <cbc:IdentificationCode>TR</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <ext:UBLExtensions>
          <ext:UBLExtension>
            <ext:ExtensionContent>
              <vrbl:PartyTaxSchemeExtension>
                <vrbl:TaxOfficeName>Başkent</vrbl:TaxOfficeName>
              </vrbl:PartyTaxSchemeExtension>
            </ext:ExtensionContent>
          </ext:UBLExtension>
        </ext:UBLExtensions>
        <cbc:CompanyID>9999999999</cbc:CompanyID>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:Contact>
        <cbc:Telephone>03123021700</cbc:Telephone>
        <cbc:ElectronicMail>efatura@gelirler.gov.tr</cbc:ElectronicMail>
      </cac:Contact>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <cac:PartyName>
        <cbc:Name>Customer name</cbc:Name>
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:Room>1</cbc:Room>
        <cbc:StreetName>Street name</cbc:StreetName>
        <cbc:BuildingName>C Blok</cbc:BuildingName>
        <cbc:BuildingNumber>02</cbc:BuildingNumber>
        <cbc:CitySubdivisionName>Ataşehir</cbc:CitySubdivisionName>
        <cbc:CityName>Valencia</cbc:CityName>
        <cbc:PostalZone>46010</cbc:PostalZone>
        <cbc:Region/>
        <cac:Country>
          <cbc:IdentificationCode>ES</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>9876543210</cbc:CompanyID>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:Delivery>
    <cbc:ID/>
    <cac:DeliveryAddress>
      <cbc:Room/>
      <cbc:StreetName/>
      <cbc:BuildingName/>
      <cbc:BuildingNumber/>
      <cbc:CitySubdivisionName>teslimat adresi ilçe</cbc:CitySubdivisionName>
      <cbc:CityName>teslimat adresi şehir</cbc:CityName>
      <cbc:PostalZone/>
      <cbc:Region/>
      <cbc:District/>
      <cac:Country>
        <cbc:IdentificationCode>ES</cbc:IdentificationCode>
      </cac:Country>
    </cac:DeliveryAddress>
  </cac:Delivery>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="TRY">0</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="TRY">250</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="TRY">0</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:ID>E</cbc:ID>
        <cbc:Percent>0</cbc:Percent>
        <cbc:TaxExemptionReasonCode>VRBL:TR:301</cbc:TaxExemptionReasonCode>
        <cbc:TaxExemptionReason>11/1-a Mal İhracatı</cbc:TaxExemptionReason>
        <cac:TaxScheme>
          <cbc:ID>VRBL:TR:0015</cbc:ID>
          <cbc:Name>KDV</cbc:Name>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="TRY">1000</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="TRY">0</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:ID>E</cbc:ID>
        <cbc:Percent>0</cbc:Percent>
        <cbc:TaxExemptionReasonCode>VRBL:TR:338</cbc:TaxExemptionReasonCode>
        <cbc:TaxExemptionReason>İmalatçıların Mal İhracatları</cbc:TaxExemptionReason>
        <cac:TaxScheme>
          <cbc:ID>VRBL:TR:0015</cbc:ID>
          <cbc:Name>KDV</cbc:Name>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="TRY">1250</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="TRY">1250</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="TRY">1250</cbc:TaxInclusiveAmount>
    <cbc:AllowanceTotalAmount currencyID="TRY">0</cbc:AllowanceTotalAmount>
    <cbc:ChargeTotalAmount currencyID="TRY">0</cbc:ChargeTotalAmount>
    <cbc:PayableAmount currencyID="TRY">1250</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="C62">1</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="TRY">250</cbc:LineExtensionAmount>
    <cac:Delivery>
      <cac:DeliveryLocation>
        <cac:Address>
          <cbc:Room/>
          <cbc:StreetName/>
          <cbc:BuildingName/>
          <cbc:BuildingNumber/>
          <cbc:CitySubdivisionName>teslimat adresi ilçe</cbc:CitySubdivisionName>
          <cbc:CityName>teslimat adresi şehir</cbc:CityName>
          <cbc:PostalZone/>
          <cbc:Region/>
          <cbc:District/>
          <cac:Country>
            <cbc:IdentificationCode>ES</cbc:IdentificationCode>
          </cac:Country>
        </cac:Address>
      </cac:DeliveryLocation>
      <cac:DeliveryTerms>
        <cbc:ID schemeID="INCOTERMS">CFR</cbc:ID>
      </cac:DeliveryTerms>
      <cac:Shipment>
        <cbc:ID>1</cbc:ID>
        <cac:GoodsItem>
          <cbc:RequiredCustomsID>121212121212</cbc:RequiredCustomsID>
        </cac:GoodsItem>
        <cac:ShipmentStage>
          <cbc:TransportModeCode>3</cbc:TransportModeCode>
        </cac:ShipmentStage>
        <cac:TransportHandlingUnit>
          <cac:ActualPackage>
            <cbc:ID/>
            <cbc:Quantity>5</cbc:Quantity>
            <cbc:PackagingTypeCode>BA</cbc:PackagingTypeCode>
          </cac:ActualPackage>
        </cac:TransportHandlingUnit>
      </cac:Shipment>
    </cac:Delivery>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="TRY">0</cbc:TaxAmount>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="TRY">250</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="TRY">0</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:ID>E</cbc:ID>
          <cbc:Percent>0</cbc:Percent>
          <cbc:TaxExemptionReasonCode>VRBL:TR:301</cbc:TaxExemptionReasonCode>
          <cbc:TaxExemptionReason>11/1-a Mal İhracatı</cbc:TaxExemptionReason>
          <cac:TaxScheme>
            <cbc:ID>VRBL:TR:0015</cbc:ID>
            <cbc:Name>KDV</cbc:Name>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Name>1.kalem</cbc:Name>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="TRY">250</cbc:PriceAmount>
    </cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>2</cbc:ID>
    <cbc:InvoicedQuantity unitCode="C62">2</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="TRY">1000</cbc:LineExtensionAmount>
    <cac:Delivery>
      <cac:DeliveryLocation>
        <cac:Address>
          <cbc:Room/>
          <cbc:StreetName/>
          <cbc:BuildingName/>
          <cbc:BuildingNumber/>
          <cbc:CitySubdivisionName>teslimat adresi ilçe</cbc:CitySubdivisionName>
          <cbc:CityName>teslimat adresi şehir</cbc:CityName>
          <cbc:PostalZone/>
          <cbc:Region/>
          <cbc:District/>
          <cac:Country>
            <cbc:IdentificationCode>ES</cbc:IdentificationCode>
          </cac:Country>
        </cac:Address>
      </cac:DeliveryLocation>
      <cac:DeliveryTerms>
        <cbc:ID schemeID="INCOTERMS">CFR</cbc:ID>
      </cac:DeliveryTerms>
      <cac:Shipment>
        <cbc:ID>2</cbc:ID>
        <cac:GoodsItem>
          <cbc:RequiredCustomsID>121212121212</cbc:RequiredCustomsID>
        </cac:GoodsItem>
        <cac:ShipmentStage>
          <cbc:TransportModeCode>3</cbc:TransportModeCode>
        </cac:ShipmentStage>
        <cac:TransportHandlingUnit>
          <cac:ActualPackage>
            <cbc:ID/>
            <cbc:Quantity>10</cbc:Quantity>
            <cbc:PackagingTypeCode>BX</cbc:PackagingTypeCode>
          </cac:ActualPackage>
        </cac:TransportHandlingUnit>
      </cac:Shipment>
    </cac:Delivery>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="TRY">0</cbc:TaxAmount>
      <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="TRY">1000</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="TRY">0</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:ID>E</cbc:ID>
          <cbc:Percent>0</cbc:Percent>
          <cbc:TaxExemptionReasonCode>VRBL:TR:338</cbc:TaxExemptionReasonCode>
          <cbc:TaxExemptionReason>İmalatçıların Mal İhracatları</cbc:TaxExemptionReason>
          <cac:TaxScheme>
            <cbc:ID>VRBL:TR:0015</cbc:ID>
            <cbc:Name>KDV</cbc:Name>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Name>2.kalem</cbc:Name>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="TRY">500</cbc:PriceAmount>
    </cac:Price>
  </cac:InvoiceLine>
</ubl:Invoice>
Rules
Rule ID Error Message
VRBL-INV-TR-1p2-1 The Invoice Subtype Code must exist within the Invoice.
VRBL-INV-TR-1p2-4 The Copy Indicator must exist within the Invoice.
VRBL-INV-TR-1p2-13 When the Document Currency Code is not TRY, the Pricing Exchange Rate Calculation Rate must exist within the Invoice.
VRBL-INV-TR-1p2-15 When the Withholding Tax is provided, the value of the Invoice Type Code must be contained in Invoice Type Code [VRBL-CL-TR-Withholding-InvoiceTypeCode] (prefixed by 'VRBL:TR:').
VRBL-INV-TR-1p2-16 When an Invoice contains a Tax Subtotal with Tax Subtotal Tax Scheme ID of 'VRBL:TR:4171', the value of the Invoice Type Code must be contained in Invoice Type Code (Tax 4171) [VRBL-CL-TR-Tax4171-InvoiceTypeCode] (prefixed by 'VRBL:TR:').
VRBL-INV-TR-1p2-19 When the Invoice Type Code is VRBL:TR:TEVKIFATIADE or VRBL:TR:IADE, the Invoice expects a minimum of one %{probe}.
VRBL-INV-TR-1p2-34 If the Invoice Subtype Code is 'VRBL:TR:IHRACAT', the An Additional Party with code VRBL:TR:Customs, containing a Additional Party Tax Party Tax Scheme Extension Tax Office Name must exist within the Invoice.
VRBL-INV-TR-1p2-71 If the Invoice Subtype Code is 'VRBL:TR:YOLCUBERABERFATURA', the %{cac:BuyerCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID[@schemeID = concat($VRBL-TR-Prefix, 'PARTYTYPE')]} must have the value 'TAXFREE'.
VRBL-INV-TR-1p2-73 When the Invoice Subtype Code is 'VRBL:TR:KAMU', the Payment Account ID must exist within the Invoice.
VRBL-INV-TR-1p2-82 If the Invoice Type Code is VRBL:TR:SARJ or VRBL:TR:SARJANLIK, at least one Invoicing Period must contain valid Invoicing Period Start Date, Invoice Period Start Time, Invoicing Period End Date and Invoice Period End Time values.
VRBL-INV-TR-1p2-83 When the Invoice Type Code is VRBL:TR:SARJ, the Invoice expects a minimum of one a Additional Document Reference Group indicating VRBL:TR:ESURaporID and containing a valid Additional Document Reference Issue Date.
VRBL-INV-CORE-4 The Specification Identifier must exist within the Invoice.
VRBL-INV-CORE-5 The Business Process Type must exist within the Invoice.
VRBL-INV-CORE-10 The Invoice Type Code must exist within the Invoice.
VRBL-INV-CORE-13 The Document Currency Code must exist within the Invoice.
VRBL-INV-CORE-563 The Tax Total Group is only allowed when using the currencies in Document Currency Code or Tax Accounting Currency.
VRBL-INV-CORE-36 The Invoice Number must be provided in the Invoice.
VRBL-INV-CORE-39 The Document Currency Code must be provided in the Invoice.
VRBL-INV-CORE-41 The Invoice Total Tax Amount and the Invoice Total Tax Amount in Tax Accounting Currency must all both positive, or all negative.