Q: (Sandbox) Why am I getting "415 error.validation Unknown reason" when sending the following request:
curl -X POST 'https://api.nordeaopenbanking.com/business/v5/authorize' \
--header 'X-Nordea-Originating-Date: Mon, 19 Feb 2024 12:42:02 GMT' \
--header 'X-Nordea-Originating-Host: api.nordeaopenbanking.com' \
--header 'Signature: SKIP_SIGNATURE_VALIDATION_FOR_SANDBOX' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Digest: sha-256=LTqOi/7x123xzJJv2MG5mXFrq1BS/qAB+v8CoeoumD8=' \
--header 'x-ibm-client-id: fae7e12345b3e3318d387be198861234' \
--header 'X-IBM-Client-Secret: ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇' \
--data-urlencode 'country="DK"' \
--data-urlencode 'duration=3600' \
--data-urlencode 'redirect_uri="https://test.com"' \
--data-urlencode 'scope=["ACCOUNTS_BASIC"]' \
--data-urlencode 'state="fakeState"
Response:
{"group_header":{"message_identification":"0c1ece9eccbabc1234cfc62b9af123de","creation_date_time":"2024-02-19T12:16:21.101241619Z","http_code":415},"error":{"request":{"url":"/v5/authorize"},"failures":[{"code":"error.validation","description":"Unknown reason"}]}}
A: The correct header for a POST /authorize request is 'Content-Type': 'application/json'
Refer also to: