Generate purchase invoice XML
Generates the UAE e-invoicing compliant XML representation of the purchase invoice.
GET /api/purchase-invoices/{id}/xmlPath parameters
Response
Status code: 200 OK
Response headers:
Content-Type: application/xml
Response body:
Returns the XML content as a string containing the UBL 2.1 XML representation of the purchase invoice.
Error responses
401 Unauthorized
Authentication required or invalid token.
{
"errors": {
"message": "Authentication required or invalid token"
}
}403 Forbidden
User not authorized to access this purchase invoice.
{
"errors": {
"message": "Not authorized to perform this operation"
}
}404 Not Found
Purchase invoice not found.
{
"errors": {
"message": "Purchase invoice not found"
}
}500 Internal Server Error
An error occurred while processing the request.
{
"errors": {
"message": "An error occurred"
}
}