MarminDeveloper Docs

Generate purchase credit note XML


Generates the UAE e-invoicing compliant XML representation of the purchase credit note.

GET /api/purchase-credit-notes/{id}/xml
Path parameters

ParameterTypeRequiredDescription
idstring
Required
The ID of the purchase credit note.
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 credit note.

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 credit note.

{
  "errors": {
    "message": "Not authorized to perform this operation"
  }
}
404 Not Found

Purchase credit note not found.

{
  "errors": {
    "message": "Purchase credit note not found"
  }
}
500 Internal Server Error

An error occurred while processing the request.

{
  "errors": {
    "message": "An error occurred"
  }
}
Next