---
title: "Validate a credit note"
method: POST
path: "/zatca/credit-notes/validate/"
tags: ["Credit Note"]
---

# Validate a credit note

`POST /zatca/credit-notes/validate/`

## Request

- Base URL: `https://api.wafeq.com/v1`
- URL: `https://api.wafeq.com/v1/zatca/credit-notes/validate/`
- Auth: API key in header `Authorization`

Validates a single credit note without reporting.

## Headers

- `X-ZATCA-Branch` string
- `X-ZATCA-Connected-Account-Id` string
- `X-ZATCA-Environment` string

## Request body

- ApiV1ZatcaCreditNoteReportWrite: The payload to report a standard credit note to ZATCA and optionally send it to its recipients.
  - `channels` ApiChannel[]: The channels to send the document
    - `data` ApiChannelEmail, required: An email to send, with its subject, message, and recipients.
      - `message` string, required: The body of the email.
      - `recipients` ApiChannelEmailRecipients, required: The recipients of an email.
        - `bcc` string[]: The email addresses to blind copy on the email.
        - `cc` string[]: The email addresses to copy on the email.
        - `to` string[], required: The email addresses to send the email to.
      - `subject` string, required: The subject of the email.
    - `medium` 'email', required: Communication medium used to send a document. [View the enum reference](mediumenum)
  - `document` ApiV1ZatcaCreditNoteReportDocumentWrite, required: The content of a standard credit note to report to ZATCA.
    - `charges` ApiV1ZatcaDocumentReportChargeWrite[]: Charges applied to the document
      - `amount` number, double: The amount of the discount or charge
      - `base_amount` number, double: The amount on which the charge percentage is applied
      - `percent` number, double: The percent of the charge
      - `reason` 'AA' | 'AAA' | 'AAC' | 'AAD' | 'AAE' | 'AAF' | 'AAH' | 'AAI' | 'AAS' | 'AAT' | 'AAV' | 'AAY' | 'AAZ' | 'ABA' | 'ABB' | 'ABC' | 'ABD' | 'ABF' | 'ABK' | 'ABL' | 'ABN' | 'ABR' | 'ABS' | 'ABT' | 'ABU' | 'ACF' | 'ACG' | 'ACH' | 'ACI' | 'ACJ' | 'ACK' | 'ACL' | 'ACM' | 'ACS' | 'ADC' | 'ADE' | 'ADJ' | 'ADK' | 'ADL' | 'ADM' | 'ADN' | 'ADO' | 'ADP' | 'ADQ' | 'ADR' | 'ADT' | 'ADW' | 'ADY' | 'ADZ' | 'AEA' | 'AEB' | 'AEC' | 'AED' | 'AEF' | 'AEH' | 'AEI' | 'AEJ' | 'AEK' | 'AEL' | 'AEM' | 'AEN' | 'AEO' | 'AEP' | 'AES' | 'AET' | 'AEU' | 'AEV' | 'AEW' | 'AEX' | 'AEY' | 'AEZ' | 'AJ' | 'AU' | 'CA' | 'CAB' | 'CAD' | 'CAE' | 'CAF' | 'CAI' | 'CAJ' | 'CAK' | 'CAL' | 'CAM' | 'CAN' | 'CAO' | 'CAP' | 'CAQ' | 'CAR' | 'CAS' | 'CAT' | 'CAU' | 'CAV' | 'CAW' | 'CD' | 'CG' | 'CS' | 'CT' | 'DAB' | 'DAD' | 'DL' | 'EG' | 'EP' | 'ER' | 'FAA' | 'FAB' | 'FAC' | 'FC' | 'FH' | 'FI' | 'GAA' | 'HAA' | 'HD' | 'HH' | 'IAA' | 'IAB' | 'ID' | 'IF' | 'IR' | 'IS' | 'KO' | 'L1' | 'LA' | 'LAA' | 'LAB' | 'LF' | 'MAE' | 'MI' | 'ML' | 'NAA' | 'OA' | 'PA' | 'PAA' | 'PC' | 'PL' | 'RAB' | 'RAC' | 'RAD' | 'RAF' | 'RE' | 'RF' | 'RH' | 'RV' | 'SA' | 'SAA' | 'SAD' | 'SAE' | 'SAI' | 'SG' | 'SH' | 'SM' | 'SU' | 'TAB' | 'TAC' | 'TT' | 'TV' | 'V1' | 'V2' | 'WH' | 'XAA' | 'YY', required: The UNTDID 7161 code identifying the reason for a charge. [View the enum reference](chargereasoncodeenum)
      - `reason_text` string: Free-text description of the charge. Defaults to the description of the reason code.
      - `tax` ApiV1ZatcaDocumentReportTaxWrite, required: The tax category, rate, and exemption reason applied to an amount of a ZATCA document.
        - `exemption_reason` 'VATEX-SA-29' | 'VATEX-SA-29-7' | 'VATEX-SA-30' | 'VATEX-SA-32' | 'VATEX-SA-32(bis)' | 'VATEX-SA-33' | 'VATEX-SA-34-1' | 'VATEX-SA-34-2' | 'VATEX-SA-34-3' | 'VATEX-SA-34-4' | 'VATEX-SA-34-5' | 'VATEX-SA-35' | 'VATEX-SA-36' | 'VATEX-SA-DIPLOMAT' | 'VATEX-SA-DUTYFREE' | 'VATEX-SA-EDU' | 'VATEX-SA-HEA' | 'VATEX-SA-MLTRY' | 'VATEX-SA-OOS' | 'VATEX-SA-ROYALDECREE': ZATCA tax exemption reason code. [View the enum reference](exemptionreasonenum)
        - `exemption_reason_text` string: The reason an out-of-scope (`O`) amount is outside the scope of VAT, sent as written with the code `VATEX-SA-OOS`. Without it, the reason sent is `exemption_reason`, or else "Supply outside the scope of VAT" in both languages, the document language first.
        - `percent` number, double, required: The percent of the tax (e.g. 15)
        - `type` 'E' | 'O' | 'S' | 'Z', required: The UNTDID 5305 VAT category code applied to a tax amount. [View the enum reference](taxcategorycodeenum)
    - `created_ts` string, date-time: The UTC creation time of the source document. Determines its payable-rounding policy; omitted values use the submission time.
    - `currency` 'AED' | 'SAR' | 'USD' | 'EUR' | 'CAD' | 'AFN' | 'ALL' | 'AMD' | 'ARS' | 'AUD' | 'AZN' | 'BAM' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BND' | 'BOB' | 'BRL' | 'BWP' | 'BYN' | 'BZD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'GBP' | 'GEL' | 'GHS' | 'GNF' | 'GTQ' | 'HKD' | 'HNL' | 'HRK' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KHR' | 'KMF' | 'KRW' | 'KWD' | 'KZT' | 'LBP' | 'LKR' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MOP' | 'MUR' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SDG' | 'SEK' | 'SGD' | 'SOS' | 'SYP' | 'THB' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'UYU' | 'UZS' | 'VES' | 'VND' | 'XAF' | 'XOF' | 'YER' | 'ZAR' | 'ZMW', required: An ISO 4217 currency code. [View the enum reference](currencyenum)
    - `customer` ApiV1ZatcaDocumentReportCustomerWrite, required: The customer of a standard ZATCA document.
      - `address` ApiV1ZatcaDocumentReportCustomerAddressWrite, required: The customer address on a tax ZATCA document. Saudi customers also require a building number, postal code, and district.
        - `additional_street` string: The second line of the customer address
        - `building` string: The customer building number; required for a Saudi tax customer address
        - `city` string, required: The customer city
        - `country` 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | '1A' | 'XI', required: A country or territory code accepted by ZATCA for a document party address. [View the enum reference](countrycodeenum)
        - `district` string: The customer district; required for a Saudi tax customer address
        - `postal_code` string: The customer postal code; Saudi tax customers must provide five digits
        - `province` string: The customer province or state
        - `street` string, required: The customer street
      - `identification` ApiV1ZatcaDocumentReportCustomerIdentificationWrite: An identification of the customer of a ZATCA document, such as a national ID or commercial registration.
        - `type` 'CRN' | 'GCC' | 'IQA' | 'MLS' | 'SAG' | 'MOM' | 'NAT' | '700' | 'OTH' | 'PAS' | 'TIN', required: The identifier type used for the customer party in an e-invoice. [View the enum reference](customerpartyidentificationenum)
        - `value` string, required: Value of the identification method
      - `name` string, required: The customer name
      - `tax_registration_number` string: The tax registration number of the customer, mandatory if identification is not passed
    - `discounts` ApiV1ZatcaDocumentReportDiscountWrite[]: Discounts applied to the document
      - `amount` number, double: The total discount amount, including tax when the document uses tax-inclusive prices.
      - `base_amount` number, double: The amount on which the discount percentage is applied
      - `percent` number, double: The percent of the discount
      - `reason` '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' | '29' | '30' | '31' | '32' | '33' | '34' | '35' | '36' | '37' | '38' | '39' | '40' | '41' | '42' | '44' | '45' | '46' | '47' | '48' | '49' | '50' | '51' | '52' | '53' | '54' | '55' | '56' | '57' | '58' | '59' | '60' | '61' | '62' | '63' | '64' | '65' | '66' | '67' | '68' | '69' | '70' | '71' | '72' | '73' | '74' | '75' | '76' | '77' | '78' | '79' | '80' | '81' | '82' | '83' | '84' | '85' | '86' | '87' | '88' | '89' | '90' | '91' | '92' | '93' | '94' | '95' | '96' | '97' | '98' | '99' | '100' | '101' | '102' | '103' | '104' | '105', required: The UNTDID 5189 code identifying the reason for a discount or allowance. [View the enum reference](discountreasoncodeenum)
      - `tax` ApiV1ZatcaDocumentReportTaxWrite, required: The tax category, rate, and exemption reason applied to an amount of a ZATCA document.
        - `exemption_reason` 'VATEX-SA-29' | 'VATEX-SA-29-7' | 'VATEX-SA-30' | 'VATEX-SA-32' | 'VATEX-SA-32(bis)' | 'VATEX-SA-33' | 'VATEX-SA-34-1' | 'VATEX-SA-34-2' | 'VATEX-SA-34-3' | 'VATEX-SA-34-4' | 'VATEX-SA-34-5' | 'VATEX-SA-35' | 'VATEX-SA-36' | 'VATEX-SA-DIPLOMAT' | 'VATEX-SA-DUTYFREE' | 'VATEX-SA-EDU' | 'VATEX-SA-HEA' | 'VATEX-SA-MLTRY' | 'VATEX-SA-OOS' | 'VATEX-SA-ROYALDECREE': ZATCA tax exemption reason code. [View the enum reference](exemptionreasonenum)
        - `exemption_reason_text` string: The reason an out-of-scope (`O`) amount is outside the scope of VAT, sent as written with the code `VATEX-SA-OOS`. Without it, the reason sent is `exemption_reason`, or else "Supply outside the scope of VAT" in both languages, the document language first.
        - `percent` number, double, required: The percent of the tax (e.g. 15)
        - `type` 'E' | 'O' | 'S' | 'Z', required: The UNTDID 5305 VAT category code applied to a tax amount. [View the enum reference](taxcategorycodeenum)
    - `document_number` string, required: The document number
    - `indicators` IndicatorsEnum[]: Special properties of the document. SELF_BILLING requires a VAT-registered customer, is only available for standard documents, and cannot be combined with EXPORT. [View the enum reference](indicatorsenum)
    - `line_items` ApiV1ZatcaDocumentLineWrite[], required: Line items of the document
      - `charges` ApiV1ZatcaDocumentReportLineChargeWrite[]: Charges applied to the line item
        - `amount` number, double: The amount of the discount or charge
        - `base_amount` number, double: The amount on which the charge percentage is applied
        - `percent` number, double: The percent of the charge
        - `reason` 'AA' | 'AAA' | 'AAC' | 'AAD' | 'AAE' | 'AAF' | 'AAH' | 'AAI' | 'AAS' | 'AAT' | 'AAV' | 'AAY' | 'AAZ' | 'ABA' | 'ABB' | 'ABC' | 'ABD' | 'ABF' | 'ABK' | 'ABL' | 'ABN' | 'ABR' | 'ABS' | 'ABT' | 'ABU' | 'ACF' | 'ACG' | 'ACH' | 'ACI' | 'ACJ' | 'ACK' | 'ACL' | 'ACM' | 'ACS' | 'ADC' | 'ADE' | 'ADJ' | 'ADK' | 'ADL' | 'ADM' | 'ADN' | 'ADO' | 'ADP' | 'ADQ' | 'ADR' | 'ADT' | 'ADW' | 'ADY' | 'ADZ' | 'AEA' | 'AEB' | 'AEC' | 'AED' | 'AEF' | 'AEH' | 'AEI' | 'AEJ' | 'AEK' | 'AEL' | 'AEM' | 'AEN' | 'AEO' | 'AEP' | 'AES' | 'AET' | 'AEU' | 'AEV' | 'AEW' | 'AEX' | 'AEY' | 'AEZ' | 'AJ' | 'AU' | 'CA' | 'CAB' | 'CAD' | 'CAE' | 'CAF' | 'CAI' | 'CAJ' | 'CAK' | 'CAL' | 'CAM' | 'CAN' | 'CAO' | 'CAP' | 'CAQ' | 'CAR' | 'CAS' | 'CAT' | 'CAU' | 'CAV' | 'CAW' | 'CD' | 'CG' | 'CS' | 'CT' | 'DAB' | 'DAD' | 'DL' | 'EG' | 'EP' | 'ER' | 'FAA' | 'FAB' | 'FAC' | 'FC' | 'FH' | 'FI' | 'GAA' | 'HAA' | 'HD' | 'HH' | 'IAA' | 'IAB' | 'ID' | 'IF' | 'IR' | 'IS' | 'KO' | 'L1' | 'LA' | 'LAA' | 'LAB' | 'LF' | 'MAE' | 'MI' | 'ML' | 'NAA' | 'OA' | 'PA' | 'PAA' | 'PC' | 'PL' | 'RAB' | 'RAC' | 'RAD' | 'RAF' | 'RE' | 'RF' | 'RH' | 'RV' | 'SA' | 'SAA' | 'SAD' | 'SAE' | 'SAI' | 'SG' | 'SH' | 'SM' | 'SU' | 'TAB' | 'TAC' | 'TT' | 'TV' | 'V1' | 'V2' | 'WH' | 'XAA' | 'YY', required: The UNTDID 7161 code identifying the reason for a charge. [View the enum reference](chargereasoncodeenum)
        - `reason_text` string: Free-text description of the charge. Defaults to the description of the reason code.
      - `description` string, required: The description of the line item
      - `discounts` ApiV1ZatcaDocumentReportLineDiscountWrite[]: Discounts applied to the line item
        - `amount` number, double: The total discount amount, including tax when the document uses tax-inclusive prices.
        - `base_amount` number, double: The amount on which the discount percentage is applied
        - `percent` number, double: The percent of the discount
        - `reason` '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' | '29' | '30' | '31' | '32' | '33' | '34' | '35' | '36' | '37' | '38' | '39' | '40' | '41' | '42' | '44' | '45' | '46' | '47' | '48' | '49' | '50' | '51' | '52' | '53' | '54' | '55' | '56' | '57' | '58' | '59' | '60' | '61' | '62' | '63' | '64' | '65' | '66' | '67' | '68' | '69' | '70' | '71' | '72' | '73' | '74' | '75' | '76' | '77' | '78' | '79' | '80' | '81' | '82' | '83' | '84' | '85' | '86' | '87' | '88' | '89' | '90' | '91' | '92' | '93' | '94' | '95' | '96' | '97' | '98' | '99' | '100' | '101' | '102' | '103' | '104' | '105', required: The UNTDID 5189 code identifying the reason for a discount or allowance. [View the enum reference](discountreasoncodeenum)
      - `identifiers` ApiV1ZatcaDocumentLineIdentifiersWrite: Optional customer, supplier, and standard identifiers for a ZATCA line item.
        - `customer_id` string: The customer-assigned item code, if supplied
        - `standard_id` ApiV1ZatcaDocumentLineStandardItemIdentifierWrite: A registered item code and the scheme used to identify its code system.
          - `scheme` string, required: The code system for the standard item identifier, for example GTIN
          - `value` string, required: The non-empty standard item code
        - `supplier_id` string: The supplier-assigned item code, if supplied
      - `item` string, required: The name of the line item
      - `quantity` number, double, required: The quantity of the line item
      - `tax` ApiV1ZatcaDocumentReportTaxWrite, required: The tax category, rate, and exemption reason applied to an amount of a ZATCA document.
        - `exemption_reason` 'VATEX-SA-29' | 'VATEX-SA-29-7' | 'VATEX-SA-30' | 'VATEX-SA-32' | 'VATEX-SA-32(bis)' | 'VATEX-SA-33' | 'VATEX-SA-34-1' | 'VATEX-SA-34-2' | 'VATEX-SA-34-3' | 'VATEX-SA-34-4' | 'VATEX-SA-34-5' | 'VATEX-SA-35' | 'VATEX-SA-36' | 'VATEX-SA-DIPLOMAT' | 'VATEX-SA-DUTYFREE' | 'VATEX-SA-EDU' | 'VATEX-SA-HEA' | 'VATEX-SA-MLTRY' | 'VATEX-SA-OOS' | 'VATEX-SA-ROYALDECREE': ZATCA tax exemption reason code. [View the enum reference](exemptionreasonenum)
        - `exemption_reason_text` string: The reason an out-of-scope (`O`) amount is outside the scope of VAT, sent as written with the code `VATEX-SA-OOS`. Without it, the reason sent is `exemption_reason`, or else "Supply outside the scope of VAT" in both languages, the document language first.
        - `percent` number, double, required: The percent of the tax (e.g. 15)
        - `type` 'E' | 'O' | 'S' | 'Z', required: The UNTDID 5305 VAT category code applied to a tax amount. [View the enum reference](taxcategorycodeenum)
      - `unit_of_measure` string: The unit of measure of the line item
      - `unit_price` number, double, required: The price of the line item per unit amount
    - `note` string: Additional information about the document
    - `payment_means` ApiV1ZatcaDocumentReportPaymentMeansRequiredWrite, required: The payment means of a ZATCA credit or debit note, with the reason for issuing it.
      - `account_id` string: The account number, IBAN, to which the transfer should be made. In the case of factoring this account is owned by the factor.
      - `code` '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' | '29' | '30' | '31' | '32' | '33' | '34' | '35' | '36' | '37' | '38' | '39' | '40' | '41' | '42' | '43' | '44' | '45' | '46' | '47' | '48' | '49' | '50' | '51' | '52' | '53' | '54' | '55' | '56' | '57' | '58' | '59' | '60' | '61' | '62' | '63' | '64' | '65' | '66' | '67' | '68' | '70' | '74' | '75' | '76' | '77' | '78' | '91' | '92' | '93' | '94' | '95' | '96' | '97', required: The UNTDID 4461 code identifying the payment method. [View the enum reference](paymentmeanscodeenum)
      - `issue_reason` string, required: The reason for issuing the document
      - `payment_terms` string: The payment terms, if mode of payment is credit. Free text
    - `prepayments` ApiV1ZatcaDocumentPrepaymentLineWrite[]: Pre-payments used to partially pay this document
      - `amount` number, double, required: The amount from prepayment used at this tax rate
      - `issue_datetime` string, date-time, required: The issue datetime in UTC of the prepayment. Acts as a fallback for prepayments that were not reported.
      - `reference` string, required: The prepayment invoice number
      - `tax` ApiV1ZatcaDocumentReportTaxWrite, required: The tax category, rate, and exemption reason applied to an amount of a ZATCA document.
        - `exemption_reason` 'VATEX-SA-29' | 'VATEX-SA-29-7' | 'VATEX-SA-30' | 'VATEX-SA-32' | 'VATEX-SA-32(bis)' | 'VATEX-SA-33' | 'VATEX-SA-34-1' | 'VATEX-SA-34-2' | 'VATEX-SA-34-3' | 'VATEX-SA-34-4' | 'VATEX-SA-34-5' | 'VATEX-SA-35' | 'VATEX-SA-36' | 'VATEX-SA-DIPLOMAT' | 'VATEX-SA-DUTYFREE' | 'VATEX-SA-EDU' | 'VATEX-SA-HEA' | 'VATEX-SA-MLTRY' | 'VATEX-SA-OOS' | 'VATEX-SA-ROYALDECREE': ZATCA tax exemption reason code. [View the enum reference](exemptionreasonenum)
        - `exemption_reason_text` string: The reason an out-of-scope (`O`) amount is outside the scope of VAT, sent as written with the code `VATEX-SA-OOS`. Without it, the reason sent is `exemption_reason`, or else "Supply outside the scope of VAT" in both languages, the document language first.
        - `percent` number, double, required: The percent of the tax (e.g. 15)
        - `type` 'E' | 'O' | 'S' | 'Z', required: The UNTDID 5305 VAT category code applied to a tax amount. [View the enum reference](taxcategorycodeenum)
    - `reference_contract_id` string: The referenced contract number, if supplied
    - `reference_document_number` string, required: The document number of the document that is being credited
    - `reference_purchase_order_id` string: The customer purchase order number, if supplied
    - `supplier` ApiV1ZatcaDocumentReportSupplierWrite, required: The supplier of a ZATCA document.
      - `address` ApiV1ZatcaDocumentReportSupplierAddressWrite, required: The supplier address on a ZATCA document. Street, building number, postal code, city, district, and country are required.
        - `additional_street` string: The second line of the supplier address
        - `building` string, required: The supplier building number; must be four digits
        - `city` string, required: The supplier city
        - `country` 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AQ' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BV' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GS' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HM' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PN' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TC' | 'TD' | 'TF' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'UM' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW' | '1A' | 'XI', required: A country or territory code accepted by ZATCA for a document party address. [View the enum reference](countrycodeenum)
        - `district` string, required: The supplier district
        - `postal_code` string, required: The supplier postal code; must be five digits
        - `province` string: The supplier province or state
        - `street` string, required: The supplier street
      - `identification` ApiV1ZatcaDocumentReportSupplierIdentificationWrite, required: An identification of the supplier of a ZATCA document, such as its commercial registration.
        - `type` 'CRN' | 'MLS' | 'SAG' | 'MOM' | '700' | 'OTH', required: The identifier type used for the supplier party in an e-invoice. [View the enum reference](supplierpartyidentificationenum)
        - `value` string, required: Value of the identification method
      - `name` string, required: The name of the supplier
    - `supply_date` string, date, required: The date of the product or service was supplied
    - `supply_end_date` string, date: The end date of the supply period. Required when a simplified document has the SUMMARY indicator.
    - `tax_amount_type` 'E' | 'I': Whether amounts include or exclude tax. [View the enum reference](taxamounttypeenum)
    - `tax_total` number, double: The tax total amount in SAR currency
  - `language` 'ar' | 'en': The language of a document or response. [View the enum reference](languageenum)
  - `metadata` object: The metadata of the document. Keys cannot contain `.` or start with `$`.
  - `reference` string: The reference of the document
  - `template` ApiV1ZatcaDocumentSendTemplateWrite: The custom template used to generate the document PDF.
    - `config` ApiV1ZatcaDocumentSendTemplateConfigWrite: The configuration of the custom template used to generate the document PDF.
      - `charges` ApiV1ZatcaDocumentSendTemplateConfigAllowancesWrite[]: Configuration for charges provided
        - `labels` ApiV1ZatcaDocumentSendTemplateConfigAllowancesLabelsWrite, required: A label in English and Arabic.
          - `ar` string, required: The label in Arabic.
          - `en` string, required: The label in English.
        - `reasons` string[], required: The reason codes of the discounts or charges shown in the group.
      - `discounts` ApiV1ZatcaDocumentSendTemplateConfigAllowancesWrite[]: Configuration for discounts provided
        - `labels` ApiV1ZatcaDocumentSendTemplateConfigAllowancesLabelsWrite, required: A label in English and Arabic.
          - `ar` string, required: The label in Arabic.
          - `en` string, required: The label in English.
        - `reasons` string[], required: The reason codes of the discounts or charges shown in the group.
    - `context` unknown
    - `id` string: The id of the custom template to be used for PDF generation

## Response `200`

- ApiV1ZatcaDocumentValidationRead: The result of validating a ZATCA document before reporting it, with its calculated totals.
  - `calculated_payable_amount_gross` number, double, required: Calculated payable amount gross.
  - `calculated_payable_amount_net` number, double, required: Calculated payable amount net.
  - `calculated_payable_amount_tax` number, double, required: Calculated payable amount tax.
  - `calculated_prepaid_amount_gross` number, double, required: Calculated prepaid amount gross.
  - `calculated_prepaid_amount_net` number, double, required: Calculated prepaid amount net.
  - `calculated_prepaid_amount_tax` number, double, required: Calculated prepaid amount tax.
  - `calculated_total_amount_gross` number, double, required: Calculated total amount gross.
  - `calculated_total_amount_net` number, double, required: Calculated total amount net.
  - `calculated_total_amount_tax` number, double, required: Calculated total amount tax.
  - `channels` ApiV1ZatcaDocumentValidationChannelRead[], required: Channels of the document.
    - `medium` string, required: The medium of the channel.
    - `recipients` ApiV1ZatcaDocumentValidationChannelRecipientsRead, required: The email recipients of a channel.
      - `bcc` string[], required: The recipients in `bcc` field.
      - `cc` string[], required: The recipients in `cc` field.
      - `to` string[], required: The recipients in `to` field.
  - `currency` string, required: Currency of the document.
  - `customer` string, required: The customer name; an empty string means no name was collected for a simplified document.
  - `document_number` string, required: The document number.
  - `issue_datetime` string, date-time, required: The issue datetime.
  - `provided_tax_total` number, double, required: Total taxes.

## Changes

- **2026-11-03** `6b4a622bbb4f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wafeq/apis/wafeq-zatca-api/changes/zatca/credit-notes/validate/post.md)

---

[API](https://skmtc.dev/wafeq/apis/wafeq-zatca-api.md) - [All operations](https://skmtc.dev/wafeq/apis/wafeq-zatca-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wafeq/apis/wafeq-zatca-api/revisions/6b4a622bbb4f?raw)
