Generate E-Invoice From Xml

Send a Standard valid signed E-Invoice XML file to ZATCA for clearance or reporting

Request Body Params

ParameterData TypeField ValidationsDescription
uuidstringMandatory, should be uniqeA unique identifier for the invoice.
deviceIdstringMandatoryThe deviceID registered with in our servers.
invoiceNumberstringMandatory-.
signedXmlInvoicestringMandatoryencoded base64 of the xml invoice

Example Request

{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "deviceId": "8f14e45f-e10c-4fc9-8f0b-e10e8b1e8e7f",
  "invoiceNumber": "INV-10001",
  "signedXmlInvoice": "PHhtbD48aW52b2ljZT5FeGFtcGxlIEludm9pY2UgQ29udGVudDwvaW52b2ljZT48L3htbD4="
}

Response Example

{
  "status": "completed",
  "warningMessages": [],
  "errorMessages": [],
  "qrCode": "{qrCode}",
  "signedInvoice": "",
  "invoiceHash": "",
  "invoiceCounter": 2
}

Response Params

ParameterData TypeDescription
statusstringstatus of the invoice reporting process. either "failed" or "completed"
warningMessageslist of warningMessagewhen the invoice receives an "Accepted with Warnings" status from ZATCA, a list of warnings will be provided detailing the issues identified
errorMessageslist of errorMessage.when the invoice status "failed" you will get list of errorMessages.
qrCodestring.Rendered QR code image in base64 encoded PNG format.
signedInvoicestring.Encoded XML invoice submitted to ZATCA.
invoiceHashstring.unique hash that indicates the specific sequence of that invoice within the device's transaction log
invoiceCounterinteger.The total number of invoices generated from that specific device

warningMessage and ErrorMessage Object

ParameterData TypeDescription
typestringThe type of issue encountered
codestringA code identifying the specific issue
categorystringThe general category of the issue
messagestringA brief explanation of the issue
statusstringThe current status of the issue
Language
Credentials
Header
Click Try It! to start a request and see the response here!