I’m working on integrating the ZATCA Reporting API into our system to report flight tickets and hotel bookings to the government. I’ve been through a lot of resources, but I’m still unsure about a few things and looking for some clear guidance. I need help with the following: Where to find the proper UBL 2.1 XSD that I can use to generate Java classes for UBL invoices, how to generate the Java classes using JAXB, and how to prepare and send the invoice data to the ZATCA reporting endpoint properly. I understand the XML must be canonicalized, Base64 encoded, and then sent to the /reporting/single/invoice
endpoint, but I need a clear step-by-step guide or a sample to follow. If anyone has gone through this process and can point me in the right direction with clear guidance, I would really appreciate it. In short: I need clear steps to generate the UBL 2.1 XML, encode it, and send it to ZATCA’s reporting endpoint. Thanks in advance for any help!