<?xml version="1.0" encoding="UTF-8"?>
<!--
  SAMPLE — PINT AE Tax Credit Note (document type 381)
  Profile : PINT v1.0.2 (urn:peppol:pint:billing-1@ae-1), OASIS UBL 2.1 syntax
  Purpose : A hand-authored reference sample for learning the PINT AE format.
            This credit note corrects line 1 of sample invoice INV-2026-000187
            (management consulting cancelled). Element comments map each value to
            its glossary field reference — see https://nazm.ae/toolkit/glossary
  Note    : All parties, TRNs and amounts are fictitious and for demonstration
            only. Scheme identifiers and the credit note reason code are
            illustrative — use the official UAE code lists in production.
-->
<CreditNote
  xmlns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2"
  xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
  xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">

  <cbc:CustomizationID>urn:peppol:pint:billing-1@ae-1</cbc:CustomizationID> <!-- IBT-024 Specification identifier -->
  <cbc:ProfileID>urn:peppol:bis:billing</cbc:ProfileID>                     <!-- IBT-023 Business process type -->
  <cbc:ProfileExecutionID>00000000</cbc:ProfileExecutionID>                 <!-- BTAE-02 Invoice transaction type code -->
  <cbc:ID>CN-2026-000042</cbc:ID>                                           <!-- IBT-001 Invoice number (credit note number) -->
  <cbc:UUID>9d4e2a71-6c8b-4f2d-8a3e-1b7c9e0d5a26</cbc:UUID>                 <!-- BTAE-07 Document UUID -->
  <cbc:IssueDate>2026-07-05</cbc:IssueDate>                                 <!-- IBT-002 Invoice issue date -->
  <cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode>                      <!-- IBT-003 Invoice type code (Tax Credit Note) -->
  <cbc:Note>Credit for cancelled consulting engagement (line 1 of INV-2026-000187).</cbc:Note> <!-- IBT-022 Invoice note -->
  <cbc:DocumentCurrencyCode>AED</cbc:DocumentCurrencyCode>                  <!-- IBT-005 Invoice currency code -->
  <cbc:TaxCurrencyCode>AED</cbc:TaxCurrencyCode>                            <!-- IBT-006 VAT accounting currency code -->

  <cac:DiscrepancyResponse>
    <cbc:ResponseCode>CN-CANCELLATION</cbc:ResponseCode>                    <!-- BTAE-03 Credit note reason code (value illustrative) -->
    <cbc:Description>Service cancelled by mutual agreement.</cbc:Description>
  </cac:DiscrepancyResponse>

  <cac:BillingReference>
    <cac:InvoiceDocumentReference>
      <cbc:ID>INV-2026-000187</cbc:ID>                                      <!-- IBT-025 Preceding invoice reference -->
      <cbc:IssueDate>2026-07-01</cbc:IssueDate>
    </cac:InvoiceDocumentReference>
  </cac:BillingReference>

  <cac:AccountingSupplierParty>
    <cac:Party>
      <cbc:EndpointID schemeID="0235">100123456700003</cbc:EndpointID>      <!-- IBT-034 Seller electronic address (endpoint) -->
      <cac:PartyName>
        <cbc:Name>Falcon Consulting</cbc:Name>                              <!-- IBT-028 Seller trading name -->
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Sheikh Zayed Road, Office 1204</cbc:StreetName>     <!-- IBT-035 Seller address line 1 -->
        <cbc:CityName>Dubai</cbc:CityName>                                  <!-- IBT-037 Seller city -->
        <cbc:CountrySubentity>DXB</cbc:CountrySubentity>                    <!-- IBT-039 Seller country subdivision (emirate) -->
        <cac:Country>
          <cbc:IdentificationCode>AE</cbc:IdentificationCode>              <!-- IBT-040 Seller country code -->
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>100123456700003</cbc:CompanyID>                      <!-- IBT-031 Seller VAT identifier (TRN) -->
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Falcon Consulting FZ-LLC</cbc:RegistrationName> <!-- IBT-027 Seller name (legal) -->
        <cbc:CompanyID schemeID="CL">CN-1234567</cbc:CompanyID>             <!-- IBT-030 Seller legal registration id (schemeID = BTAE-15 type) -->
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingSupplierParty>

  <cac:AccountingCustomerParty>
    <cac:Party>
      <cbc:EndpointID schemeID="0235">100987654300003</cbc:EndpointID>      <!-- IBT-049 Buyer electronic address (endpoint) -->
      <cac:PartyName>
        <cbc:Name>Gulf Retail Trading</cbc:Name>                            <!-- IBT-045 Buyer trading name -->
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Corniche Road, Tower B, Floor 9</cbc:StreetName>    <!-- IBT-050 Buyer address line 1 -->
        <cbc:CityName>Abu Dhabi</cbc:CityName>                              <!-- IBT-052 Buyer city -->
        <cac:Country>
          <cbc:IdentificationCode>AE</cbc:IdentificationCode>              <!-- IBT-055 Buyer country code -->
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>100987654300003</cbc:CompanyID>                      <!-- IBT-048 Buyer VAT identifier (TRN) -->
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Gulf Retail Trading LLC</cbc:RegistrationName> <!-- IBT-044 Buyer name (legal) -->
        <cbc:CompanyID schemeID="CL">CN-7654321</cbc:CompanyID>             <!-- IBT-047 Buyer legal registration id -->
      </cac:PartyLegalEntity>
    </cac:Party>
  </cac:AccountingCustomerParty>

  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="AED">250.00</cbc:TaxAmount>                  <!-- IBT-110 Invoice total VAT amount -->
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="AED">5000.00</cbc:TaxableAmount>      <!-- IBT-116 VAT category taxable amount -->
      <cbc:TaxAmount currencyID="AED">250.00</cbc:TaxAmount>               <!-- IBT-117 VAT category tax amount -->
      <cac:TaxCategory>
        <cbc:ID>S</cbc:ID>                                                 <!-- IBT-118 VAT category code (S = standard rate) -->
        <cbc:Percent>5</cbc:Percent>                                       <!-- IBT-119 VAT category rate -->
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>

  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="AED">5000.00</cbc:LineExtensionAmount> <!-- IBT-106 Sum of line net amounts -->
    <cbc:TaxExclusiveAmount currencyID="AED">5000.00</cbc:TaxExclusiveAmount>   <!-- IBT-109 Invoice total without VAT -->
    <cbc:TaxInclusiveAmount currencyID="AED">5250.00</cbc:TaxInclusiveAmount>   <!-- IBT-112 Invoice total with VAT -->
    <cbc:PayableAmount currencyID="AED">5250.00</cbc:PayableAmount>             <!-- IBT-115 Amount due for payment -->
  </cac:LegalMonetaryTotal>

  <cac:CreditNoteLine>
    <cbc:ID>1</cbc:ID>                                                      <!-- IBT-126 Invoice line identifier -->
    <cbc:CreditedQuantity unitCode="HUR">10</cbc:CreditedQuantity>          <!-- IBT-129 Invoiced quantity + IBT-130 unit of measure (HUR = hour) -->
    <cbc:LineExtensionAmount currencyID="AED">5000.00</cbc:LineExtensionAmount> <!-- IBT-131 Invoice line net amount -->
    <cac:Item>
      <cbc:Name>Management consulting services</cbc:Name>                    <!-- IBT-153 Item name -->
      <cac:ClassifiedTaxCategory>
        <cbc:ID>S</cbc:ID>                                                 <!-- IBT-151 Item VAT category code -->
        <cbc:Percent>5</cbc:Percent>                                       <!-- IBT-152 Item VAT rate -->
        <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
      </cac:ClassifiedTaxCategory>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="AED">500.00</cbc:PriceAmount>            <!-- IBT-146 Item net price -->
    </cac:Price>
  </cac:CreditNoteLine>

</CreditNote>
