# EMIS-X Partner API File Record API

**URL:** https://openhealthhub.org/t/emis-x-partner-api-file-record-api/3037
**Category:** NHS Spine & APIs Support
**Created:** [30 July 2026 09:09 UTC](https://openhealthhub.org/t/emis-x-partner-api-file-record-api/3037 "2026-07-30T09:09:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![irfansyed](https://openhealthhub.org/letter_avatar_proxy/v4/letter/i/dec6dc/32.png) [@irfansyed](https://openhealthhub.org/u/irfansyed)
#### Post date: [30 July 2026 09:09 UTC](https://openhealthhub.org/t/emis-x-partner-api-file-record-api/3037/1 "2026-07-30T09:09:24Z")

</div>

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.
