ZATCA Response
ZATCA ERROR (400)
Reason: Bad Request
Response: {"validationResults":{"infoMessages":[],"warningMessages":[{"type":"WARNING","code":"BR-25","category":"EN_16931","message":"Each Invoice line (BG-25) shall contain the Item name (BT-153).","status":"WARNING"},{"type":"WARNING","code":"BR-KSA-F-06-C40","category":"KSA","message":"Field character limits for Invoice transaction code (KSA-2) have not been met. The minimum limit is 7 characters and the maximum limit is 9 characters.","status":"WARNING"},{"type":"WARNING","code":"BR-KSA-09","category":"KSA","message":"Seller address must contain street name (BT-35), building number (KSA-17), postal code (BT-38), city (BT-37), district (KSA-3), country code (BT-40). For more information please access this link: https://splonline.com.sa/en/national-address-1/","status":"WARNING"}],"errorMessages":[{"type":"ERROR","code":"INVOICE_UUID_VALIDATION","category":"MISSING_UUID_IN_INVOICE","message":"UUID ERROR","status":"ERROR"},{"type":"ERROR","code":"XSD_ZATCA_INVALID","category":"XSD validation","message":"Schema validation failed; XML does not comply with UBL 2.1 standards in line with ZATCA specifications. ERROR: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 176; cvc-elt.1.a: Cannot find the declaration of element 'Invoice'.","status":"ERROR"},{"type":"ERROR","code":"BR-CO-04","category":"EN_16931","message":"Each Invoice line (BG-25) shall be categorized with an Invoiced item VAT category code (BT-151).","status":"ERROR"},{"type":"ERROR","code":"BR-KSA-05","category":"KSA","message":"The invoice type code (BT-3) must be equal to one of value from the subset of UN/CEFACT code list 1001, D.16B agreed for KSA electronic invoices. Please refer paragraph 11.2.1 of XML implementation Standards.","status":"ERROR"},{"type":"ERROR","code":"BR-KSA-06","category":"KSA","message":"The invoice transaction code (KSA-2) must exist and respect the following structure: NNPNESBCG where NN (positions 1 and 2) = invoice subtype: - 01 for tax invoice - 02 for simplified tax invoice P (position 3) = 3rd Party invoice transaction, 0 for false, 1 for true; N (position 4) = Nominal invoice transaction, 0 for false, 1 for true; E (position 5) = Exports invoice transaction, 0 for false, 1 for true; S (position 6) = Summary invoice transaction, 0 for false, 1 for true; B (position 7) = Self billed invoice transaction, 0 for false, 1 for true; C (position 8) = continuous supply invoice transaction, 0 for false, 1 for true; G (position 9) = B2G invoice transaction, 0 for false, 1 for true.","status":"ERROR"},{"type":"ERROR","code":"BR-KSA-CL-02","category":"KSA","message":"All currencyID attributes (BT-5) must have the same value as the invoice currency code (BT-5), except for the invoice total VAT amount in accounting currency (BT-111).","status":"ERROR"},{"type":"ERROR","code":"invalid-certificate","category":"CERTIFICATE_ERRORS","message":"Production CSID format is not valid","status":"ERROR"}],"status":"ERROR"},"clearanceStatus":"NOT_CLEARED","clearedInvoice":null}
Back