V0.5/users/auth/confirm

{
“requestId”: “$guid”,
“timestamp”: “${DateFormat(“yyyy-MM-dd’T’HH:mm:ss.SSSSSS’Z’”).format(DateTime.now().toUtc().add(Duration(seconds: 200)))}”,
“transactionId”: “$transactionId”,
“credential”: {
“demographic”: {
“name”: “$nAME”,
“gender”: “$gENDER”,
“dateOfBirth”: “$dob”,
“identifier”: [{
“type”: “MOBILE”,
“value”: “$mob”
}]
}
}
}
Response

{
“requestId”: “07842a91-14dd-4d9f-b505-036241d4a69f”,
“error”: {
“code”: 2500,
“message”: “Cannot deserialize instance of in.projecteka.consentmanager.user.model.Identifier out of START_ARRAY token\n at [Source: (io.netty.buffer.ByteBufInputStream); line: 1, column: 254] (through reference chain: in.projecteka.consentmanager.user.model.UserAuthConfirmRequest[“credential”]->in.projecteka.consentmanager.user.model.AuthCredentialDetail[“demographic”]->in.projecteka.consentmanager.user.model.DemographicDetail[“identifier”])”
},
“timestamp”: [2024, 1, 19, 5, 48, 17, 828873000],
“resp”: {
“requestId”: “40307db7-b5d0-45bc-93bd-40e2c50972f6”
}
}
@IntegrationSupport
Please give me the Correct curl for this API

Hi @GrapesDev1
Please refer this -

2 Likes

@GrapesDev1

you are not passing the values correcty, here I am sharing the cURL for this request -

curl --location ‘https://dev.abdm.gov.in/gateway/v0.5/users/auth/confirm
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE3MDU2NTQ0ODgsImlhdCI6MTcwNTY1MzI4OCwianRpIjoiMDFh4X3Rlc3Rfc2MiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjIwMyJ9.al3sprvc1Ugoce7pIbLAFf7gp2zn_KBVjGO7zGZ8BdSd-Yi8fclWbCABPo_epwnOKym2xlAiod5seSwtrE18kFN2fxkKHU1vSJboJn6__flddwldVChOzQt06n-jHE16jc2EwBXSQuwKFBBCWTqSOYwkIkS6_nzx8Ss87QP6hJaXB4OPsHKuIeKvo6gyu4UI8ugMMotAegS_dI6Fj83gDipHL0QeI_P0R9rQc7WBPL42M5LzC3vIpRC4ISm_31AGPs-OQ-18un8sllmhX5bPUoa71xdAZTuGwUYyprYlYfi9U4WKyHEXltUlplQP3Ejq2K9EkubqwuWHDpdsxXaTCg’
–header ‘X-CM-ID: sbx’
–header ‘Content-Type: application/json’
–data '{
“requestId”: “89009521-484a-48db-99a7-45b49d4f0cc4”,
“timestamp”: “2024-01-19T11:41:49.179Z”,
“transactionId”: “cf831a8e-3f68-4a27-942e-72ca1fe01afa”,
“credential”: {
“demographic”: {
“name”: “”,
“gender”: “M”,
“dateOfBirth”: “2000-01-01”
}

}

}’

@IntegrationSupport

1 Like