Timestamp format required in V3 M1 API Calls

@IntegrationSupport
The postman collection, constantly gives the error for the simple timestamp format as :

{
“code”: “ABDM-1016”,
“message”: “Invalid Timestamp”
}

The API request is :
URL : https://abhasbx.abdm.gov.in/abha/api/v3/enrollment/enrol/byAadhaar
body : {
“authData”: {
“authMethods”: [
“otp”
],
“otp”: {
“timeStamp”: “{{current_simple_timestamp}}”,
“txnId”: “{{lastResponseTxnId}}”,
“otpValue”: “fZ7cZ+v/SZI3A7z/W2mieoO427GTW3s71Gh8J3L+W0ZbXcqjPXEFJSOIk6GzbiEO1eTU/smbtB9OqMDv17zoU/l/jq2v6F+zAX+QOloW3q5Bby0ngh6prRvG9lx4lBppZial1SLgCkMWqXl7h1qZyZ83nbOHY6CgBBBDIIUM4ZHlwy/HxvuWLroPd2J98T004aW4PFMAlaARLTiAa4N3YKrxQXFwMwGsEaWIQ5VkGE1sD08ajmkyGDgEgFTQcm0pIGE827zB8sSSbsPaLbfurw7X8j7hP5Atci8FCa31E03Rz24BQDUBr0oQA7XmGRrlwnbrBAbZgWi9LLqyT6tWqo5evEgyUMor+Qc0DNHh49vtrCRQvk4rgjdZijmXgHfZp0S7gcUoXVfz9Z0hRaKXjKbDvlCoru23Nkaxs1iAq8QLa0y8Nz5X37mmdp9hj+T/mXE/tSN/WuPT/AIhCh9qtFlcLUjN3pnhUhNx4vv+CyS75pEUa647YQKn9LqUj77giElOwoiJXDnUCqi9VO0sQWR2EG4G8K0kB2mkRYUdy7ibhXiXrPxWCJLenoJsHQYtNWAS4p28Z32vVuj9TBbvMRcYzFLgVqA7CfA9LNY519SFq4KBNVDWVp6q5CDvGhNYBVDZhHAKwf2GiFzwqzwG9VmiQt5kziSMDNsVWQIDzJM=”,
“mobile”: “<>”
}
},
“consent”: {
“code”: “abha-enrollment”,
“version”: “1.4”
}
}

“timeStamp”: “2023-09-15 11:35:44”

I am receiving the OTP correctly when calling theg generate OTP API.

@PratikLodha For V3 related queries please write to – abdm.sarch4@nha.gov.in

@PratikLodha @IntegrationSupport I’m facing same issue. Getting response

{
"code": "ABDM-1016",
"message": "Invalid Timestamp"
}

Did you find any solution for this?

I was able to resolve the issue. Need to send header named with TIMESTAMP with value of current iso date string. It was going with some other format.
If any one still looking for solution please note.

v3/enrollment/request/otp API requires a header TIMESTAMP which expects date in yyyy-MM-dd’T’HH:mm:ss.SSS

whereas v3/enrollment/enrol/byAadhar expects the value in yyyy-MM-dd HH:mm:ss.SSS format.

Hope this helps.

1 Like