LHDN Signing API Documentation

Base URL: {baseUrl}

API Version: 1.0

Sign XML Document

HTTP Method

POST


Endpoint

/sign_doc


Request Body

The request body must contain the XML document to be signed.

Content-Type: application/xml

Schema: ```xml<document><data>Example</data></document>```


Example

```xml<document><data>Example</data></document>```

200 Responses

Signed XML document

Content-Type: application/xml
Schema:```xml<signedDocument
<data>Example</data<signature</signature
</signedDocument>```

400 Responses

Invalid input

Content-Type: application/xml

Schema:```xml<error><message>Invalid input</message></error>```

500 Responses

Internal server error

Content-Type: application/xml

Schema:```xml<error><message>Internal server error</message></error>```

Summary

signDocument: Signs the provided XML document and returns the signed XML.

Tags

Signer-controller

Components

Schemas: None

Responses: Described under the endpoint responses.

Request Bodies: Described under the request body for the endpoint.