# Fetch prescriptions using test-data on Development Environment

**URL:** <https://developer.community.nhs.uk/t/fetch-prescriptions-using-test-data-on-development-environment/423>\
**Category:** Electronic Prescription Service (EPS) FHIR\
**Tags:** fhir, error-code\
**Created:** [5 July 2023 12:25 UTC](https://developer.community.nhs.uk/t/fetch-prescriptions-using-test-data-on-development-environment/423 "2023-07-05T12:25:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sameer.jaffrani](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@sameer.jaffrani](https://developer.community.nhs.uk/u/sameer.jaffrani)\
**Post date:** [5 July 2023 12:25 UTC](https://developer.community.nhs.uk/t/fetch-prescriptions-using-test-data-on-development-environment/423/1 "2023-07-05T12:25:49Z")

</div>

Dear Support,

I hope this message finds you well. I have successfully configured an application on our Development Environment to test the EPS FHIR API. Following the provided documentation, I have also set up test data on the Dev Environment. My objective is to gain a clear understanding of how to effectively utilize the EPS FHIR API in order to retrieve the prescriptions I have created in the Development Environment.

![image](https://europe1.discourse-cdn.com/nhsdigitaldeveloper/original/1X/6d5aef53b4506f96851158756d201b1330aa2261.png)

I have successfully obtained the bearer token using the Token API. However, when I attempt to retrieve the prescriptions using the FHIR API and include the token, I encounter an error, which is depicted in the attached screenshot.

 ![image](https://europe1.discourse-cdn.com/nhsdigitaldeveloper/original/1X/d9ad8d03b8c5f7cc235da471fcf1e8ce01e61cf7.png)

Furthermore, I would appreciate clarification regarding the “nhsd-session-urid” key. I noticed this key was mentioned in the documentation for the sandbox environment previously. Could you kindly advise on how I can retrieve this key specifically for the Development Environment?

Thank you for your assistance in addressing these concerns. I greatly appreciate your support.

Regards,  
Sameer

---

<div class="post-metadata">

**Author:** ![greenbox03](https://avatars.discourse-cdn.com/v4/letter/g/e79b87/32.png) [@greenbox03](https://developer.community.nhs.uk/u/greenbox03)\
**Post date:** [16 July 2023 21:51 UTC](https://developer.community.nhs.uk/t/fetch-prescriptions-using-test-data-on-development-environment/423/2 "2023-07-16T21:51:20Z")

</div>

cant see error code like below?

```auto
"coding": [{
				"system": "https://fhir.nhs.uk/STU3/ValueSet/Spine-ErrorOrWarningCode-1",
				"code": "INVALID_NHS_NUMBER",
				"dispay": "Invalid NHS number"
			}]

```
