# Export Invoice XML getting BR-KSA-14 error

**URL:** <https://zatca1.discourse.group/t/export-invoice-xml-getting-br-ksa-14-error/4162>\
**Category:** General\
**Created:** [November 13, 2024, 10:29am UTC](https://zatca1.discourse.group/t/export-invoice-xml-getting-br-ksa-14-error/4162 "2024-11-13T10:29:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumeeth](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sumeeth](https://zatca1.discourse.group/u/Sumeeth)\
**Post date:** [November 13, 2024, 10:29am UTC](https://zatca1.discourse.group/t/export-invoice-xml-getting-br-ksa-14-error/4162/1 "2024-11-13T10:29:01Z")

</div>

I am working on Export Invoice for foreign customers my XML in AccountingCustomer party is as follows

```auto
<cac:AccountingCustomerParty>
    <cac:Party>
      <cac:PartyIdentification>
        <cbc:ID schemeID="TIN">11111-1</cbc:ID> // Sample TIN no has - in tin number
      </cac:PartyIdentification>
      <cac:PostalAddress>
        <cbc:StreetName>(steet name)/cbc:StreetName>
        <cbc:BuildingNumber>(building no)</cbc:BuildingNumber>
        <cbc:CitySubdivisionName>(City Subdivision)</cbc:CitySubdivisionName>
        <cbc:CityName>(City)</cbc:CityName>
        <cbc:PostalZone>(postal code)</cbc:PostalZone>
        <cac:Country>
          <cbc:IdentificationCode>BH</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName> (Party Name).</cbc:RegistrationName>
      </cac:PartyLegalEntity>
    </cac:Party>

```

I have TIN of all foreign customer using it as Scheme Id now I am getting this error “Message”: “The buyer identification (BT-46), required only if buyer is not VAT registered, then the buyer identification (BT-46) must be provided with one of the scheme IDs (BT-46-1) (TIN, CRN, MOM, MLS, 700, SAG, NAT, GCC, IQA, OTH) and must contain only alphanumeric characters. Tax Identification Number ‘TIN’ as schemeID. Commercial registration number with ‘CRN’ as schemeID. MOMRAH license with ‘MOM’ as schemeID. MHRSD license with ‘MLS’ as schemeID. 700 Number with ‘700’ as schemeID. MISA license with ‘SAG’ as schemeID. National ID with ‘NAT’ as schemeID. GCC ID with ‘GCC’ as schemeID. Iqama Number with ‘IQA’ as schemeID. Passport ID with ‘PAS’ as schemeID. Other ID with ‘OTH’ as schemeID.In case of multiple commercial registrations, the seller should fill the commercial registration of the branch in respect of which the Tax Invoice is being issued. In case multiple IDs exist then one of the above must be entered following the sequence specified above.”, can anyone help me to resolve this and is his because TIN has ’ - ’ character in it ? if yes then whats alternative as all TIN number are in 5 (digits)- 1 format

---

<div class="post-metadata">

**Author:** ![Ankit.K.Tiwari](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Ankit.K.Tiwari](https://zatca1.discourse.group/u/Ankit.K.Tiwari)\
**Post date:** [November 13, 2024, 10:30am UTC](https://zatca1.discourse.group/t/export-invoice-xml-getting-br-ksa-14-error/4162/2 "2024-11-13T10:30:43Z")

</div>

@Sumeeth for all invoices to foreign customers, their home country ID should be provided in the field "Other Buyer ID (BT-46) under the attribute “OTH” irrespective of the type of ID. Even if it is VAT # of foreign country or CR # or TIN # what ever be the ID it should be under the attribute OTH.

---

<div class="post-metadata">

**Author:** ![Sumeeth](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Sumeeth](https://zatca1.discourse.group/u/Sumeeth)\
**Post date:** [November 14, 2024, 7:36am UTC](https://zatca1.discourse.group/t/export-invoice-xml-getting-br-ksa-14-error/4162/3 "2024-11-14T07:36:51Z")

</div>

I changed the XML structure and provided in the field "Other Buyer ID (BT-46) under the attribute “OTH” **same error exists then I removed “-” character from it and it works**. The issue is it needs an alphanumeric value but the TIN number has - is there any other way I can submit my TIN number with “-” character

---

<div class="post-metadata">

**Author:** ![mohan\_manakkal](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/mohan_manakkal/32/996_2.png) [@mohan\_manakkal](https://zatca1.discourse.group/u/mohan_manakkal)\
**Post date:** [November 14, 2024, 7:50am UTC](https://zatca1.discourse.group/t/export-invoice-xml-getting-br-ksa-14-error/4162/4 "2024-11-14T07:50:08Z")

</div>

Is this mandatory to set foreign customers id type to “OTH”. Some clients set it as TIN or CRN in the software.

---

<div class="post-metadata">

**Author:** ![Ankit.K.Tiwari](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Ankit.K.Tiwari](https://zatca1.discourse.group/u/Ankit.K.Tiwari)\
**Post date:** [November 14, 2024, 8:02am UTC](https://zatca1.discourse.group/t/export-invoice-xml-getting-br-ksa-14-error/4162/5 "2024-11-14T08:02:02Z")

</div>

@mohan_manakkal attributes TIN and CRN are in context of TIN issued by ZATCA and CRN issued by Ministry of Commerce in Kingdom. Similar IDs issued by authorities outside Kingdom should not be included in these attributes rather under “OTH”.

---

<div class="post-metadata">

**Author:** ![mohan\_manakkal](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/mohan_manakkal/32/996_2.png) [@mohan\_manakkal](https://zatca1.discourse.group/u/mohan_manakkal)\
**Post date:** [November 17, 2024, 2:12pm UTC](https://zatca1.discourse.group/t/export-invoice-xml-getting-br-ksa-14-error/4162/6 "2024-11-17T14:12:25Z")

</div>

Is there any action required to taken for already submitted invoices?
