# EMIS-X Partner API File Record API **Category:** [NHS Spine & APIs Support](https://openhealthhub.org/c/nhs-spine/25) **Created:** 2026-07-30 09:09 UTC **Views:** 18 **Replies:** 0 **URL:** https://openhealthhub.org/t/emis-x-partner-api-file-record-api/3037 --- ## Post #1 by @irfansyed Hi all, I am currently testing the EMIS-X Partner API endpoint: `POST /partner/api/v1/medicalRecord/FileRecord?patientNumber=3` The patient number is valid, and we are able to retrieve organisation, user, location, and location type details from `GetOrganisation`. However, when sending the `FileRecord` payload in JSON format, we receive the following error: `500 - There was an error generating the XML document.` I also tried sending an XML payload, but that returned: `400 - An error occurred while deserializing input data.` Has anyone faced this issue before with `FileRecord`? Could someone please confirm the expected request body format for filing a simple text comment as a new consultation? A minimum valid JSON or XML example would be very helpful. Thanks. --- **Canonical:** https://openhealthhub.org/t/emis-x-partner-api-file-record-api/3037 **Original content:** https://openhealthhub.org/t/emis-x-partner-api-file-record-api/3037