Q (Sandbox):
We try to execute the authentication in Postman by calling:
POST /business/v5/authorize
endpoint and receive the following error ("code": "error.validation", "description": "Expected type or array but got String"):
Body:
{
"account_list": [
"ALL"
],
"authentication_method": "QR_RDR",
"country": "DK",
"duration": 3600,
"language": "en",
"max_tx_history": 10,
"redirect_uri": "https://developer.nordeaopenbanking.com",
"scope": [
"ACCOUNTS_BASIC",
"ACCOUNTS_BALANCES",
"ACCOUNTS_DETAILS",
"ACCOUNTS_TRANSACTIONS",
"PAYMENTS_MULTIPLE"
],
"skip_account_selection": true,
"state": "{redacted}"
}
API Response:
{
"group_header": {
"message_identification": "6d5325671dd409d8c18d8843749e57ea",
"creation_date_time": "2024-12-10T07:59:55.658045974Z",
"http_code": 400
},
"error": {
"request": {
"url": "/v5/authorize"
},
"failures": [
{
"code": "error.validation",
"description": "Expected type or array but got String",
"path": "authentication_method",
"type": "TypeMismatch"
Why is that?
A:
Please refer to our documentation:
Access authorization API specific documentation (Business Access Authorization)
And here:
Redirect Access Authorization (Business Access Authorization API)
are the authentication methods allowed: