# EMIS Partner API

**URL:** https://openhealthhub.org/t/emis-partner-api/2839
**Category:** NHS Spine & APIs Support
**Created:** [7 May 2025 08:00 UTC](https://openhealthhub.org/t/emis-partner-api/2839 "2025-05-07T08:00:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![bhargav](https://openhealthhub.org/letter_avatar_proxy/v4/letter/b/dfb087/32.png) [@bhargav](https://openhealthhub.org/u/bhargav)
#### Post date: [7 May 2025 08:00 UTC](https://openhealthhub.org/t/emis-partner-api/2839/1 "2025-05-07T08:00:00Z")

</div>

Hi  
We have recently got access to partner api. Can anyone share sample xml snippet for file record call as we are unable to file attachments. Getting Invalid (-1) error response.

---

<div class="post-metadata">

### Author: ![mayfield.g.kev](https://openhealthhub.org/user_avatar/openhealthhub.org/mayfield.g.kev/32/648_2.png) [@mayfield.g.kev](https://openhealthhub.org/u/mayfield.g.kev)
#### Post date: [7 May 2025 08:08 UTC](https://openhealthhub.org/t/emis-partner-api/2839/2 "2025-05-07T08:08:28Z")

</div>

You have the file to be uploaded on the same server as your api?  
The filename in the XML matches this?  
The file can be accessed by the API?

---

<div class="post-metadata">

### Author: ![bhargav](https://openhealthhub.org/letter_avatar_proxy/v4/letter/b/dfb087/32.png) [@bhargav](https://openhealthhub.org/u/bhargav)
#### Post date: [7 May 2025 08:12 UTC](https://openhealthhub.org/t/emis-partner-api/2839/3 "2025-05-07T08:12:00Z")

</div>

Hi.  
Thanks for the reply. I have kept the file in the same folder where EMIS is installed. Yes the filename in address field is same. But getting error Transform Failed: \nObject reference not set to an instance of an object. If there is sample xml snippet it will be helpful.

---

<div class="post-metadata">

### Author: ![mayfield.g.kev](https://openhealthhub.org/user_avatar/openhealthhub.org/mayfield.g.kev/32/648_2.png) [@mayfield.g.kev](https://openhealthhub.org/u/mayfield.g.kev)
#### Post date: [7 May 2025 08:23 UTC](https://openhealthhub.org/t/emis-partner-api/2839/4 "2025-05-07T08:23:36Z")

</div>

If you can post what you have I can check it against our transform?

---

<div class="post-metadata">

### Author: ![bhargav](https://openhealthhub.org/letter_avatar_proxy/v4/letter/b/dfb087/32.png) [@bhargav](https://openhealthhub.org/u/bhargav)
#### Post date: [7 May 2025 08:27 UTC](https://openhealthhub.org/t/emis-partner-api/2839/5 "2025-05-07T08:27:03Z")

</div>

Sure I will send it via personal message.

---

<div class="post-metadata">

### Author: ![bhargav](https://openhealthhub.org/letter_avatar_proxy/v4/letter/b/dfb087/32.png) [@bhargav](https://openhealthhub.org/u/bhargav)
#### Post date: [7 May 2025 08:55 UTC](https://openhealthhub.org/t/emis-partner-api/2839/6 "2025-05-07T08:55:01Z")

</div>

Hi I have sent through messages
