this is my curl
curl --location --request POST ‘https://dev.abdm.gov.in/gateway/v0.5/subscription-requests/cm/init’ \
–header ‘X-CM-ID: sbx’ \
–header ‘Authorization: Bearer 0UVKP53f-fpw’ \
–header ‘Content-Type: application/json’ \
–header ‘Cookie: TS011c04bd=01445fed047d0e6344ee36b9db9e76f835bd0bcc93770f460f76af0cc250b676a1640b18c8929148ae9011f797659349395d34fb13’ \
–data-raw '{
“requestId”: “9d751695-98c2-46d9-aed0-9aaec9fae32c”,
“timestamp”: “2023-01-27T09:59:29.644Z”,
“subscription”: {
"purpose": {
"text": "Self Requested",
"code": "PATRQT",
"refUri": "string"
},
"patient": {
"id": "manthan.dubey@sbx"
},
"hiu": {
"id": "karkinos"
},
"categories": [
"LINK",
"DATA"
],
"period": {
"from": "2010-01-26T22:43:51.743Z",
"to": "2031-01-26T22:43:51.743Z"
}
}
}’ and here’s the response i’m getting everytime
{
“requestId”: “83d6b7da-531a-4a77-909b-d2faf11af45e”,
“error”: {
“code”: 2500,
“message”: “Error in making call to target system Content type ‘text/plain’ not supported for bodyType=in.projecteka.gateway.clients.model.CmErrorResponse”
},
“timestamp”: [
2023,
1,
27,
9,
54,
22,
847270000
],
“resp”: {
“requestId”: “6a6b0ed6-568b-43f8-9677-1b8b29962be5”
}
}
Not able to figure out what’s the issue
Please Help
@IntegrationSupport @mdubey @sukreet @nishit.charania