//SUCCESS
{
"status": "complete",
"completionData": {
"user": {
"personalNumber": "YYYYMMDDXXXX",
"name": "John Doe",
"givenName": "John",
"surname": "Doe"
},
"device": {
"ipAddress": "192.168.1.1"
},
"cert": {
"notBefore": "2023-01-01T00:00:00Z",
"notAfter": "2025-01-01T00:00:00Z",
"serialNumber": "1234567890"
},
"signature": "base64encodedSignatureData",
"ocspResponse": "base64encodedOcspResponse"
}
}
//ERROR
{
"status": "failed",
"errorCode": "USER_CANCEL",
"details": "The user cancelled the authentication process."
}
Andra vanliga errorCodes:
EXPIRED_TRANSACTION: The transaction expired before completion.
CERTIFICATE_ERROR: There was an issue with the user's certificate.
INTERNAL_ERROR: An internal error occurred in the BankID system.