Complyance Logo

Saudi Arabia (SA) Field Mapping

Country: SA
Compliance: ZATCA e-invoicing
Last Updated: 2026

Requirement Legend

  • M: Mandatory
  • CM: Conditional Mandatory (required only when condition applies)
  • O: Optional

Field Mapping Reference

1) Core Invoice Information

User Field NameGETS FieldMandatory/Optional/ConditionalKSA RuleSample Values
Document IDheader.documentIdMMust be unique within seller sequence01HZY6KQ2YJ8X2V7QK4F3B9Z7A
Document Typeheader.documentTypeMHierarchical { base, variant?, modifiers? }{ "base": "tax_invoice" }
Issue Dateheader.issueDateMFormat YYYY-MM-DD2024-01-15
Issue Timeheader.issueTimeMFormat HH:MM:SSZ10:30:00Z
Supply Start Dateheader.invoicePeriod.startDateCMRequired for period-based invoices2024-01-01
Supply End Dateheader.invoicePeriod.endDateOPeriod end date2024-01-31
Reference Invoice Numberheader.referenceIdCMFor credit/debit notesINV-2023-999
Currencyheader.currencyMISO 4217 codeSAR
Exchange Rateheader.exchangeRate.rateCMRequired if currency is not SAR3.75
Source Currency Codeheader.exchangeRate.sourceCurrencyOExchange source currencyUSD
Target Currency Codeheader.exchangeRate.targetCurrencyOExchange target currencySAR
Exchange Dateheader.exchangeRate.dateOExchange rate date2024-03-20
VAT Currencyheader.taxCurrencyMTax reporting currencySAR
Note Issuance Reasonheader.noteIssuanceReasonCMFor credit/debit notesGoods returned

2) Seller Details

User Field NameGETS FieldMandatory/Optional/ConditionalKSA RuleSample Values
Seller IDparties.seller.partyIdOInternal ERP identifierKSA-SELLER-001
Seller Nameparties.seller.nameMLegal registered nameAl Riyadh Trading Co.
VAT Numberparties.seller.taxIds[type="VAT"].valueMKSA VAT format (15 digits)310075588700003
Group VAT Numberparties.seller.taxIds[type="VAT_GROUP"].valueCMGroup VAT registration300000000000003
Additional Seller ID Typeparties.seller.registrationNumbers[].typeORegistration type (for example CRN)CRN
Additional Seller ID Numberparties.seller.registrationNumbers[].valueCMCommercial registration1010123456
Address Line 1parties.seller.address.addressLine1MStreet nameKing Fahd Road
Address Line 2parties.seller.address.addressLine2MAdditional address infoBuilding 12A
Building Numberparties.seller.address.additionalAddressData.buildingNumberMKSA-specific requirement1234
Additional Numberparties.seller.address.additionalAddressData.extensions.sa_additionalNumberOAdditional reference number1234
District/Neighbourhoodparties.seller.address.additionalAddressData.districtMDistrict nameAl Olaya
Cityparties.seller.address.cityMCity nameRiyadh
Stateparties.seller.address.stateOrProvinceMProvince/regionRiyadh Province
Zip Codeparties.seller.address.postalCodeMPostal code11564
Countryparties.seller.address.countryMISO 3166-1 alpha-2SA

3) Buyer Details

User Field NameGETS FieldMandatory/Optional/ConditionalKSA RuleSample Values
Buyer IDparties.buyer.partyIdOInternal identifierKSA-BUYER-001
Buyer Nameparties.buyer.nameCMRequired for B2B/B2GJeddah Supermarket
VAT Numberparties.buyer.taxIds[type="VAT"].valueCMRequired for B2B/B2G311122334455663
Group VAT Numberparties.buyer.taxIds[type="VAT_GROUP"].valueCMGroup VAT registration300000000000003
Additional Buyer ID Typeparties.buyer.registrationNumbers[].typeCMRegistration typeCRN
Additional Buyer ID Numberparties.buyer.registrationNumbers[].valueCMCommercial registration2010123456
Address Line 1parties.buyer.address.addressLine1CMRequired for B2B/B2GCorniche Road
Address Line 2parties.buyer.address.addressLine2CMAdditional addressBuilding 34B
Building Numberparties.buyer.address.additionalAddressData.buildingNumberOBuilding reference34B
Additional Numberparties.buyer.address.additionalAddressData.extensions.sa_additionalNumberOAdditional referenceAl Hamra District
District/Neighbourhoodparties.buyer.address.additionalAddressData.districtODistrict nameAl Hamra
Cityparties.buyer.address.cityCMRequired for B2B/B2GJeddah
Stateparties.buyer.address.stateOrProvinceOProvince/regionMakkah Province
Zip Codeparties.buyer.address.postalCodeCMRequired for B2B/B2G23212
Countryparties.buyer.address.countryCMISO 3166-1 alpha-2SA

4) Payment & Prepayment Details

User Field NameGETS FieldMandatory/Optional/ConditionalKSA RuleSample Values
Payment Meanspayment.paymentMeans[].paymentMeansCodeOUNCL 4461 code30
Payment Termspayment.paymentTerms[].noteCMRequired when payment terms applyNet 30 days
Payee Account Numberpayment.paymentMeans[].creditTransferInfo.payeeFinancialAccountIdCMBank account numberSA4420000001234567891234
Prepayment IDextensions.sa_prepaymentIdCMPrepayment identifierPP-2024-001
Prepayment Issue Date & Timeextensions.sa_prepaymentDateCMPrepayment timestamp2024-01-15T14:30:00Z
Prepayment Document Type Codeextensions.sa_prepaymentTypeCodeCMAlways 386 for prepayments386
Prepayment VAT Category Codeextensions.sa_prepaymentTaxCategoryCMVAT categoryS
Prepayment VAT Rateextensions.sa_prepaymentTaxRateCMVAT rate15.0
Prepayment Taxable Amountextensions.sa_prepaymentTaxableAmountCMTaxable amount1000.00
Prepayment Tax Amountextensions.sa_prepaymentTaxAmountCMVAT amount150.00
Prepayment Adjustment Amountextensions.sa_prepaymentAdjustmentAmountCMAdjustment amount50.00

5) Line Item Details

User Field NameGETS FieldMandatory/Optional/ConditionalKSA RuleSample Values
Line Item IDlineItems[].idMUnique line identifier1
Line Item TypelineItems[].lineTypeOnormal or prepaymentnormal
Item NamelineItems[].nameMProduct/service nameOffice Supplies
Item DescriptionlineItems[].descriptionMProduct/service descriptionConsulting Service
Unit PricelineItems[].price.amountMPrice per unit500.00
Item Price DiscountlineItems[].discountsOrCharges[isCharge=false].amountMUnit discount amount50.00
Net Unit PricelineItems[].netPriceMPrice after discount450.00
Line Item QtylineItems[].quantityMQuantity invoiced2.00
Units of MeasurementlineItems[].unitCodeOUN/ECE Rec 20 codePCE
Line Item Taxable AmountlineItems[].lineTaxableValueMTaxable line amount900.00
VAT Category CodelineItems[].taxCategoryMVAT category (S,Z,E,O)S
VAT Exemption Reason CodelineItems[].taxExemptionReasonCodeMMandatory when exempt/zero-ratedVATEX-SA-EDU
VAT Exemption Reason TextlineItems[].taxExemptionReasonMMandatory when exempt/zero-ratedEducational materials
VAT Rate On Line ItemlineItems[].taxRateMTax rate percentage15.0
Line Item VAT AmountlineItems[].taxAmountMLine VAT amount135.00
Line Item TotallineItems[].lineTotalMLine total with tax1035.00

6) Totals

User Field NameGETS FieldMandatory/Optional/ConditionalKSA RuleSample Values
Summation of Line Net Valuestotals.totalLineTaxableAmountMSum of all line taxable amounts1900.00
Additional Discount at Document LevelallowancesAndCharges[isCharge=false].amountMDocument allowance total100.00
Total Taxable Amount Excluding VATtotals.totalAmountExcludingTaxMBefore tax total1800.00
VAT Totaltotals.totalTaxAmountMTotal VAT270.00
Invoice Total Amounttotals.totalAmountIncludingTaxMTotal including VAT2070.00
Pre-Paid Amounttotals.prepaidAmountMPrepaid amount total500.00
Amount Due for Paymenttotals.amountDueMFinal due amount1570.00

7) Digital Signature Extensions

User Field NameGETS FieldMandatory/Optional/ConditionalKSA RuleSample Values
Invoice Counter Valueextensions.sa_icvMSequential counter125
Previous Invoice Hashextensions.sa_pihMPrevious document hashNWZlY2ViNjZm...
QR Codeextensions.sa_qrCodeMBase64 QR dataAQEGAmTkZhY...
Digital Signatureextensions.sa_digitalSignatureMSignature from ZATCA certMEQCIDg5OTVl...

Code Lists Reference

KSA Document Types (ZATCA UBL 2.1)

CodeDocument TypeGETS base
388Standard Tax Invoice (B2B/B2G)tax_invoice
381Credit Note (B2B/B2G)credit_note
383Debit Note (B2B/B2G)debit_note
388Simplified Tax Invoice (B2C)simplified_invoice
381Simplified Credit Note (B2C)simplified_credit_note
383Simplified Debit Note (B2C)simplified_debit_note

KSA Modifiers (Transaction Scenarios)

ModifierDescription
self_billedBuyer creates invoice on seller's behalf (B2B/B2G only)
exportGoods/services supplied outside KSA (B2B/B2G, zero-rated)
summaryAggregate/batch invoice covering multiple transactions
nominalToken/pro-forma amount (B2B/B2G)
third_partyInvoice through intermediary agent
continuous_supplyOngoing/recurring services (period required)
b2gBusiness-to-government transaction

Tax Category Codes (UNCL 5305)

CodeDescription
SStandard rate (15% for KSA)
ZZero-rated goods
EExempt from tax
OOut of scope

Payment Means Codes (UNCL 4461)

CodeDescription
10Cash
20Cheque
30Credit transfer
42Promissory note
48Credit card
54Credit card (brand specific)
55Debit card
58SEPA credit transfer
59SEPA direct debit

See Also