Skip to main content

API services responses

Written by Maxime

Bank

/api/bank/{bankId}

{
"success": false,
"data": "Bank with Id = 123 does not exist."
}

/api/bank/{bankId}/authorize

{
"success": false,
"data": "Bank with Id = 1313 does not exist."
}

HU:

bankId= 156

Rp:

{
​"success": false,
​"data": "Step1_en-gb.json does not exist."
​}

{
"success": false,
"data": "Bank with Id = 12121 does not exist."
}

HU:

babkId= 156

Rp:

The specified CGI application encountered an error and the server terminated the process.

/api/bank/session

{
"success": false,
"message": "No API client with external ID = '111' found."
}

/api/bank/session/{sessionId}

{
"success": false,
"data": "sessionId does not exist."
}

HU:

empty response

Bank Account

/api/bankaccount/{accountId}

{
"success": false,
"data": "BankAccount with Id = 321 does not exist."
}

/api/bankaccount

HU:

/api/bankaccount?userId=

/api/bankaccount/status

{
"success": false,
"data": "BankAccount with Id = 13131 does not exist."
}

HU:

{
​"success": true,
​"data": []
​}

/api/bankaccount/{iban}/payment

{
"success": false,
"message": "No API client with external ID = '111' found."
}

HU:

{
​"success": true,
​"data": []
​}

{
"success": false,
"message": "No API client with external ID = '221' found."
}

HU:

{
​"success": false,
​"data": "Internal Server Error"
​}

500 Internal Server Error

Time:624 ms

Size:200 B

/api/bankaccount/{iban}/payment/{paymentID}

HU:

we are nota abel initiate a payment, so we do not have paymentId

/api/bankaccount/{accountId}/delete

{
"success": false,
"data": "BankAccount with Id = 232 does not exist."
}

Consent

/api/consent

{
"success": false,
"data": "User not found; external id=00000000122. does not exist."
}

HU:

{
​"success": true,
​"data": {
​"consents": [
​{
​"createDate": "2018-08-14T09:00:55.88",
​"bank": null,
​"accountNumbers": [
​"BE72063633194716"
​],
​"consentStatus": "inactive"
​},
​}

{
"success": false,
"data": "Consent with UserId, BankId, IBAN = { UserId = 333, BankId = 114, IBAN = 3333 } does not exist."
}

HU:

not tested

Country

/api/country

{
"success": false,
"message": "No API client with external ID = 'kbb' found."
}

HU:

{
​"success": true,
​"data": [
​{
​"languageCode": "nl",
​"currencyCode": "EUR",
​"dialCode": "+32",
​"flagUrl": "/img/Country/Flag/flag-of-Netherlands.png",
​"flagUrlHash": "48DD678DD7D0AEF1AF711DD3D7FE60C0E7A21B2F",
​"fullName": "Belgium",
​"isoCode": "be",
​"alternativeISOCode": null
​},
​]
​}

/api/country/{isoCode}/bank

{
"success": false,
"message": "No API client with external ID = 'kbb' found."
}

HU:

success": true,
​"data": [
​{
​"swiftBicCode": "CREGBEBB",
​"logo": "/img/Bank/Icons/[email protected]",
​"logoUrlHash": "E4DCC8C36F65F249FDBCBFB2433E56155D733F63",
​"country": {
​"languageCode": "en",
​"currencyCode": "EUR",
​"dialCode": "+36",
​"flagUrl": "/img/Country/Flag/flag-of-Hungary.png",
​"flagUrlHash": "49CF257B6ED6F1B53E1B898AEA837905151714F4",
​"fullName": "Hungary",
​"isoCode": "hu",
​"alternativeISOCode": null
​},
​"migrateToBankId": null,
​"id": 149,
​"name": "CBC",
​"officialName": "CBC",
​"isPisp": true,
​"isPisForceAccount": true,
​"provider": {
​"providerId": 7,
​"provider": "KBC PSD2 Provider",
​"providerType": "api",
​"dynamicDataPath": "value",
​"dynamicDataRegex": "[0-9]{8}"
​},
​"authenticationMethod": null,
​"isAisForceAccount": true
​},

Image

/api/image/{bankAccountId}

{
"success": false,
"data": "BankAccount with Id = 553 does not exist."
}

HU:

{
​"success": true,
​"data": {
​"image": null,
​"id": 712
​}
​}

{
"errorCode": "badRequest",
"errorMessage": "Attached file cannot be empty"
}

{
"success": false,
"data": "BankAccount with Id = 553 does not exist."
}

Payment

/api/payment

Status

/api/status/check

{
"success": false,
"data": null
}

/api/status/version

{
"success": false,
"message": "No API client with external ID = 'kbb' found."
}

HU:

{
​"success": true,
​"data": {
​"version": "PSD2HUB API version 2.2 (build 28.09.2018 22399)"
​}
​}

Transaction

/api/transaction/{transactionId}

{
"success": false,
"data": "BankAccount with Id = 1541 does not exist."
}

/api/transaction

{
"success": false,
"data": "Transaction with Id = 183461 does not exist."
}

HU:

{
​"success": true,
​"data": {
​"items": [
​{
​"id": 183461,
​"title": "Order No. 8569KR",
​"sender": "Nola W. Preston",
​"senderAddress": "257-6545 Metus Street, Lalbahadur Nagar",
​"senderAccount": "56 4289 5677 5000 8733 0000 8722",
​"recipient": "Alan Mclean",
​"recipientAddress": "P.O. Box 935, 8878 Lobortis Street, St. Petersburg",
​"recipientAccount": "34 4389 5677 5000 6789 9877 8890",
​"operationAmount": 544.21,
​"operationCurrencyCode": "EUR",
​"bankName": "Red Bank",
​"bankBranch": "St. Petersburg",
​"accountingDate": "2016-06-28T10:20:10"
​}
​],
​"totalItemsCount": 1,
​"pageNumber": 1,
​"pageSize": 10,
​"totalPagesCount": 1
​}

User

/api/user

{
"success": false,
"data": {
"": [
"A non-empty request body is required."
]
}
}

/api/user/{userId}

{
"success": false,
"data": "User with ExternalId = 2423 does not exist."
}

Bądź pierwszą osobą, która doda reakcję

Did this answer your question?