Access to incoming advice and guidance requests in INT (A023, FHIR STU3)

I’m trying to use https://digital.nhs.uk/developer/api-catalogue/e-referral-service-fhir#post-/STU3/CommunicationRequest/$ers.fetchworklist to access our incoming A&G requests.

As I understand it, I need to sent a listType with code ADVICE_AND_GUIDANCE_REQUESTS as well as a service with value of our own code ?

As soon as I add the 2nd parameter, I get errors (event from curl) saying “dummy error produced by sandbox environment”

What am I doing wrong ? Is this not the correct way to retrieve our own incoming requests ?
I’m doing the same thing for incoming referral requests (A008, FHIR STU3) and that works fine (or at least, doesn’t error)

curl -X POST "https://sandbox.api.service.nhs.uk/referrals/FHIR/STU3/CommunicationRequest/\$ers.fetchworklist"  -H "accept: application/fhir+json" -H "authorization: Bearer g1112R_ccQ1Ebbb4gtHBP1aaaNM" -H "content-type: application/fhir+json" -H "nhsd-end-user-organisation-ods: R69" -H "nhsd-ers-business-function: SERVICE_PROVIDER_CLINICIAN_ADMIN" -H "nhsd-ers-on-behalf-of-user-id: 021600556514" -H "x-correlation-id: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA"  -d '{"resourceType":"Parameters","meta":{"profile":["https://fhir.nhs.uk/STU3/StructureDefinition/eRS-FetchWorklist-Parameters-1"]},"parameter":[{"name":"listType","valueCodeableConcept":{"coding":[{"system":"https://fhir.nhs.uk/STU3/CodeSystem/eRS-CommunicationListSelector-1","code":"ADVICE_AND_GUIDANCE_REQUESTS"}]}},{"name": "service","valueIdentifier":{"system":"http://fhir.nhs.net/Id/ers-service","value": "R69"}}]}' 
{
  "meta": {
    "profile": [
      "https://fhir.nhs.uk/STU3/StructureDefinition/eRS-OperationOutcome-1"
    ]
  },
  "resourceType": "OperationOutcome",
  "issue": [
    {
      "severity": "error",
      "code": "invalid",
      "details": {
        "coding": [
          {
            "system": "https://fhir.nhs.uk/STU3/CodeSystem/eRS-APIErrorCode-1",
            "code": "SANDBOX_ERROR",
            "display": "Sandbox error"
          }
        ]
      },
      "diagnostics": "This is a dummy error produced by sandbox environment. Please use example requests to get success responses and make sure the e-RS Business Function provided in the header matches business role specified in the example title"
    }
  ]
}

Hi @tc1 - You don’t need the service parameter in this case. A023 is currently user-restricted only.