v1

latestOpenAPI 3.0.12026-08-0674476716.0 KB
Accounts

Get account information

The GET /accounts/{accountId} endpoint retrieves the information for a specific bank account.

get/accounts/{accountId}

Path parameters

accountIdstring

The system-generated, unique bank account id, which specifies the account for which the information is requested.

Headers

on-behalf-ofstring required

The tokenId represents the consent granted by the user (PSU).

token-customer-ip-addressstring ipv4

The user's IP address if the user is currently logged in with the TPP. If the customer IP address is supplied (recommended), it is inferred that the user is present during the session (<i>i.e.</i>, the request is user-initiated; adding a customer-initiated = true header makes this explicit). For AIS calls, if the customer's IP address is not provided in the request, the bank assumes it is a TPP-initiated request and may limit the TPP to 4 TPP-initiated access attempts within a given 24-hour period.

Response

Successful response

Example response

{
  "account": {
    "accountDetails": {
      "accountHolderName": "John Arthur Smith",
      "bic": "BOFIIE2D",
      "identifier": "iban",
      "accountIdentifiers": [
        {
          "bankgiro": {
            "bankgiroNumber": "56781234"
          }
        }
      ],
      "ProviderAccountDetails": {
        "cma9AccountDetails": {
          "accountType": "PERSONAL_ACCOUNT",
          "accountSubtype": "CURRENT_ACCOUNT",
          "address": [
            {
              "address": {
                "city": "Berlin",
                "conscriptionNumber": "2831",
                "country": "DE",
                "district": "Friedrichshain",
                "flats": "21A - 21C",
                "full": "Fifth house on the left after the village oak, Smalltown, Smallcountry",
                "hamlet": "Botzowviertel",
                "houseName": "Grossen Blauen Haus",
                "houseNumber": "123",
                "place": "Arnswalder Platz",
                "postCode": "10243",
                "province": "BC",
                "state": "CA",
                "street": "Hans-Otto-Strasse",
                "subdistrict": "Friedrichshain Nord",
                "suburb": "Altona Meadows Suburb"
              },
              "addressType": "BUSINESS"
            }
          ],
          "description": "Personal",
          "emailAddress": "john.smith@email.com",
          "mobile": "07999 123456",
          "name": "John Smith",
          "partyId": "68973542",
          "partyNumber": "24354657",
          "partyType": "JOINT",
          "phone": "020 123 4567"
        }
      },
      "status": "Active",
      "type": [
        "SAVINGS"
      ],
      "currency": "EUR"
    },
    "bankId": "ob-modelo",
    "id": "a:8DbPteGnytmMbKXdnWTReeRB6cYWKXZ84JgLTBC7fKL4:5zKcENpV",
    "name": "John A Smith"
  }
}