MarminDeveloper Docs

Generate invoice XML


Generates the UAE e-invoicing compliant XML representation of the invoice. See the right panel for request examples.

Path parameters

ParameterTypeRequiredDescription
idstring
Required
The ID of the invoice.
Response

Status code: 200 OK

Response headers:

HeaderDescription
Content-Typeapplication/xml

Response body: Returns the XML content as a string containing the UBL 2.1 XML representation of the invoice.

<?xml version="1.0" encoding="UTF-8"?>
<!-- UBL 2.1 Invoice XML (truncated) -->
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
  <cbc:ID>INV-001</cbc:ID>
  <!-- ... -->
</Invoice>
Error responses

StatusDescription
401 UnauthorizedAuthentication required or invalid token.
403 ForbiddenUser not authorized to access this invoice.
404 Not FoundInvoice not found.
500 Internal Server ErrorAn error occurred while processing the request.
Next