Responses

This page showcases the responses for the einvoice API. The responses remains the same for either input type

200 (OK) / 202 (Accepted) / 400 (Bad Request)

B2B

If ZATCA has processed the invoice and we get a valid response back. In this case we return status code given by ZATCA.

B2C

Since we process invoices in offline mode you will only receive a 200 OK if we are able to generate the QR code

Schema

Parameter
Value
Description

message

"Operation Successful/Unsuccessful"

Basic message returned by us

info_messages

[]

List of info messages returned by ZATCA

warning_messages

[]

List of warning messages returned by ZATCA

status

"REPORTED/NOT_REPORTED/CLEARED/NOT_CLEARED"

Reporting/Clearance Status of the invoice retunred by ZATCA

schematron_overall_status

PASS/WARNING/FAIL

over schematron status of the invoice returned by ZATCA

invoice

base64 encoded XML/None

Updated XML document. Value can be Null in case of clearance errors

qr_code

""

Raw QR code generated

icv

123

Invoice Counter Value

invoice_hash

AVBC

Invoice Hash calculated by us for the given XML

invoice_id

1

Invoice ID

invoice_uuid

484fde54-9439-453a-ae33-86b637c43c38

Invoice UUID

Sample Response B2B

Sample Response B2C

422 (Validation Error) / 500

If there was an internal processing error due to incorrect inputs, there was a server crash or schematron validation errors you get the the following response

Parameter
Value
Description

message

Sample Message

Message string which contains the appropriate error message

error_code

1006

Error codes which can be shared to us to get further information regarding the reason for failure

data

{}

Object which returns more information on the specific error

Last updated