X-CM-ID header field value required

To be able to fire requests/ callbacks when acting as an HIP, we need to incorporate ‘X-CM-ID’ in the header fields. This value was not provided in the application shortlisted email.
Can you tell me how to get this value?

X-CM-ID = NDHM
same as the alias of the Consent Managerr.

Hi,

Getting this upon setting X-CM-ID as ‘NDHM’.
{“error”:{“code”:2500,“message”:“No mapping found for X-CM-ID”}}

I meant - header name X-CM-ID, the value is NDHM. I dont think capitalization matters, but use “ndhm” if not.

@angshuonline
{
‘Authorization’: <access_token>
‘X-CM-ID’: ‘ndhm’
}

This is sending me the same error as above…does not matter if value is ‘ndhm’ or ‘NDHM’

Can you try with X-CM-ID header value with “sbx”?

curl --location --request POST 'https://dev.ndhm.gov.in/gateway/v0.5/patients/find' \
--header 'X-CM-ID: sbx' \
--header 'Authorization: Bearer <access-token-received-from-sessions-api-call>' \
--header 'Content-Type: application/json' \
--data-raw '{
  "requestId": "24292066-0006-4dd8-93e1-41acb5482678",
  "timestamp": "2020-09-15T12:37:38.088Z",
  "query": {
    "patient": {
      "id": "test.test.0012@sbx"
    },
    "requester": {
      "type": "HIU",
      "id": "10000002"
    }
  }
}'


This is working as expected with ‘sbx’. Thanks

Hai @_aman_verma @angshuonline @IntegrationSupport, Now I am executing M3 API where I am getting No mapping found for X-CM-ID for the (M3)Request Health Information API I am attaching reference below what I need to pass for X-CM-ID in headers as a HIU

Hi ramakrishna,
Please use key as X-CM-ID in headers and not X-CM_ID

Regards,
FIME