As of yesterday some DEP eRS API are returning 500 error codes

The following is returning a 500 internal error as of yesterday:

'https://dep.api.service.nhs.uk/referrals-dep/FHIR/R4/Practitioner?_query=onBehalfOf’ \
–header ‘Authorization: Bearer n5iarExq1e3EDyGKew3KUAcjemJa’ \
–header ‘NHSD-End-User-Organisation-ODS: RTX’ \
–header ‘NHSD-eRS-Business-Function: SERVICE_PROVIDER_CLINICIAN_ADMIN’ \
–header ‘X-Correlation-ID: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA’ \
–body ‘’

The following still returns a valid response, so it’s not all API:

'https://dep.api.service.nhs.uk/referrals-dep/FHIR/R4/PractitionerRole’ \
–header ‘Authorization: Bearer n5iarExq1e3EDyGKew3KUAcjemJa’ \
–header ‘X-Correlation-ID: 85ca4b21-c327-47c1-9594-69dfc500ea7c’ \
–header ‘Accept: application/fhir+json’ \
–body ‘’

Hi Rob,

Thanks for posting please could you provide

  • Application ID

  • X-Correlation-ID

  • X-Request-ID

  • Date and time the call was made

Could you also let us know if anything else came into the error - and also if this is still occuring?

Hi Tony,

Yes, the issue is still occurring. We don’t have an X-Request-ID, but our application ID is 6e0409c6-0514-4944-a436-2b5afd43cc2b and the X-Correlation-ID: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA was at just before 10am yesterday. If you need an exact time I can send another request.

Thanks, Rob

Hi Tony,

We have just run again with the same details at 16:44. This is the response:

{
“resourceType”: “OperationOutcome”,
“meta”: {
“lastUpdated”: “2026-04-10T15:44:20.238Z”,
“profile”: [
"https://www.hl7.org/fhir/R4/operationoutcome.html"
]
},
“issue”: [
{
“severity”: “error”,
“code”: “exception”,
“details”: {
“coding”: [
{
“system”: "https://fhir.nhs.uk/CodeSystem/NHSD-API-ErrorOrWarningCode",
“code”: “SERVICE_ERROR”
}
]
},
“diagnostics”: “Internal Server Error”
}
]
}

Thanks, Rob

Please can you take a look at this one also @George_Craft

@Rob_Stevenson

Couple of additional questions which may help, in case some of the e-RS setup is missing, which may make this call fail.

The smartcard you are using - does this have roles at RTX, and have you got the SPCA function on that card?

If the above is correct:

1 - have you assigned yourself into the workgroups associated with the services you are testing in e-RS

2 - have you assigned clinicians to the the same workgroups (this is also required)

Hi Tony,

Yes, this same user was getting the correct response on Tuesday and we haven’t changed anything.

Thanks, Rob

Thanks Rob, @George_Craft over to you again :slight_smile: might need a look at the DEP logs

No problem, i will pick this up shortly :slight_smile:

Good afternoon,

Are you able to confirm whether just this specific endpoint 'https://dep.api.service.nhs.uk/referrals-dep/FHIR/R4/Practitioner?_query=onBehalfOf’ is not working, or if any other endpoints are failing too?

Kind regards,

George Craft

Hi there, we have seen similar issues and have tested and have replicated the 500 error, could you confirm the last time you were able to successfully test these endpoints?

Marking as solved - APIM roll-back successful. Endpoints now working again.