Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The accounts resource is used by an AISP to retrieve full list of accounts and account information that the PSU customer has authorised to access.

...

S.No.

Resource

HTTP Operation

Endpoint

Mandatory

Scope

Grant Type

Idempotency Key

Parameters

Request Object

Response Object

2.1

accounts

GET

GET /accounts

Mandatory

accounts

Authorization Authorisation Code

No

Pagination

 

OBReadAccount

2.2

accounts

GET

GET/accounts

/{accountsIdAccountId}

Mandatory

accounts

Authorization Authorisation Code

No

 

 

OBReadAccount

2.1.        GET/accounts

...

An AISP will be given the full list of accounts (the AccountId(s)) that the PSU customer has authorised the AISP to access. The AccountId(s) returned may then be used to retrieve other resources for a specific AccountId. The selection of authorised accounts happens only at the ASPSP's interface.

...

  • The Account and Servicer structure has been designed to:

    • Reflect the DebtorAccount and DebtorAgent (and similarly for , CreditorAccount and CreditorAgent ) structures in the PISP use case.

    • Having a SchemeName for the Account and Servicer blocks means we can be flexible to accommodate multiple types of accounts.

  • For common Domestic Bahrain identification schemes:

    • Account/Account

      • Where " BH.OBF.IBAN" is specified as the SchemeName, the Identification field must be populated with the full IBAN.

    • Account/Servicer

  • The SecondaryIdentification field is used to identify an account in addition to the primary Account/Identification field. SecondaryIdentification may be populated with a roll number for building societies, or a currency code where an account has multiple currency sub-accounts.

      • Where " BH.OBF.IBAN" is populated as the SchemeName, the Identification field must be populated with the BIC.

...

 [GG1]@Dinesh to confirm

3.4.        Permission Codes

...

Name

Occurrence

XPath

Enhanced Definition

Class

Codes

Pattern

OBReadAccount

 

OBReadAccount

 

OBReadAccount

 

 

Data

1..1

OBReadAccount/Data

 

OBReadAccount/Data

 

 

Account

0..n

OBReadAccount/Data/Account

Unambiguous identification of the account to which credit and debit entries are made.

OBReadAccount/Data/Account

 

 

AccountId

1..1

OBReadAccount/Data/Account/AccountId

A unique and immutable identifier used to identify the account resource. This identifier has no meaning to the account owner.

String

 

 

Status

0..1

OBReadAccount/Data/Account/Status

Specifies the status of account resource in code form.

String

 Enum:

  • Enabled

  • Disabled

  • Deleted

  • ProForma

  • Pending

 

StatusUpdateDateTime

0..1

OBReadAccount/Data/Account/StatusUpdateDateTime

Date and time at which the resource status was updated.

DateTime

 

 

Currency

1..1

OBReadAccount/Data/Account/Currency

Identification of the currency in which the account is held. Usage: Currency should only be used in case one and the same account number covers several currencies and the initiating party needs to identify which currency needs to be used for settlement on the account.

String

 

^[A-Z]{3,3}$

AccountType

1..1

OBReadAccount/Data/Account/AccountType

Specifies the type of account (personal or business).

String

 Enum:

  • Business

  • Personal

 

AccountSubType

1..1

OBReadAccount/Data/Account/AccountSubType

Specifies the sub type of account (product family group).

String

Enum:

  • ChargeCard

  • CreditCard

  • CurrentAccount

  • EMoney

  • Loan

  • Mortgage

  • PrePaidCard

  • Savings

 

Description

0..1

OBReadAccount/Data/Account/Description

Specifies the description of the account type.

String

 

 

Nickname

0..1

OBReadAccount/Data/Account/Nickname

The nickname of the account, assigned by the account owner in order to provide an additional means of identification of the account.

String

 

 

OpeningDate

0..1

OBReadAccount/Data/Account/OpeningDate

Date on which the account and related basic services are effectively operational for the account owner.

DateTime

 

 

MaturityDate

0..1

OBReadAccount/Data/Account/MaturityDate

Maturity date for the account.

DateTime

 

 

Account

0..n

OBReadAccount/Data/Account/Account

Provides the details to identify an account.

OBReadAccount/Data/Account/Account

 

 

SchemeName 

1..1

OBReadAccount/Data/Account/Account/SchemeName

Name of the identification scheme, in a coded form as published in an external list.

OBExternalAccountIdentificationCode

 Enum:

  • BH.OBF.BBANBH.OBF.IBANBH.OBF.PAN

 

Identification

1..1

OBReadAccount/Data/Account/Account/Identification

Identification assigned by an institution to identify an account. This identification is known by the account owner.

String

 

 

Name

0..1

OBReadAccount/Data/Account/Account/Name

The account name is the name or names of the account owner(s) represented at an account level, as displayed by the ASPSP's online channels. Note, the account name is not the product name or the nickname of the account.

String

 

 

SecondaryIdentification

0..1

OBReadAccount/Data/Account/Account/SecondaryIdentification

This is secondary identification of the account, as assigned by the account servicing institution. This can be used by building societies to additionally identify accounts with a roll number (in addition to a sort code and account number combination).

String

 

 

Servicer

0..1

OBReadAccount/Data/Account/Servicer

Party that manages the account on behalf of the account owner, that is manages the registration and booking of entries on the account, calculates balances on the account and provides information about the account.

OBReadAccount/Data/Account/Servicer

 

 

SchemeName

1..1

OBReadAccount/Data/Account/Servicer/SchemeName

Name of the identification scheme, in a coded form as published in an external list.

String

Enum:

  • BH.OBF.BICFI 

 

Identification

1..1

OBReadAccount/Data/Account/Servicer/Identification

Unique and unambiguous identification of the servicing institution.

String

 

 

...

The call to GET /accounts is the first step after an account-request is authorised. This will allow the AISP to discover which accounts (and AccountId values) are associated with the authorisation of consent. In this scenario, AccountId 00348765 has a building society roll number; and AccountId 00345897 does not.

4.1.1     Request

GET /accounts
AuthorizationAuthorisation: Bearer 4ZopnFZFKjr5zDsicSQpLL
x-fapi-auth-date: Tue, 18 Mar 2020 19:43:31 GMT+03:00
x-fapi-customer-ip-address: 204.35.213.15
x-fapi-interaction-id: 75bdc714-b2dg-7676-c759-780d6815689f
Accept: application/json

...

{
  "Data": {
    "Account": [
      {
        "AccountId": "00348765",
        "Status": "Enabled",
        "StatusUpdateDateTime": "2020-03-23T08:27:44.180Z"180+03:00”,
        "Currency": "BHD",
        "AccountType": "Business",
        "AccountSubType": "CurrentAccount",
        "Description": "CurrentAccount",
        "Nickname": "Bills",
        "OpeningDate": "2020-03-23T08:27:44.180Z"180+03:00”,
        "MaturityDate": "2020-03-23T08:27:44.180Z"180+03:00”
      },
      {
        "AccountId": "00345897",
        "Status": "Enabled",
        "StatusUpdateDateTime": "2020-03-23T08:27:44.180Z"180+03:00”,
        "Currency": "BHD",
        "AccountType": "Personal",
        "AccountSubType": "SavingsAccount",
        "Description": "SavingsAccount",
        "Nickname": "Household",
        "OpeningDate": "2020-03-23T08:27:44.180Z"180+03:00”,
        "MaturityDate": "2020-03-23T08:27:44.180Z"180+03:00”,
        "Account": [
          {
            "SchemeName": "BH.OBF.IBAN",
            "Identification": "BH10BBKU00100000008876",
            "Name": "Asif Khan",
            "SecondaryIdentification": "00025"
          }
        ],
        "Servicer": {
          "SchemeName": "BH.OBF.IBAN",
          "Identification": "BH10CBBU00100000004598"
        }
      }
    ]
  },
 "Links": {
    "Self": "www.TBC.com"
  },
  "Meta": {
    "TotalPages": 02,
    "FirstAvailableDateTime": "2020-03-12T09:10:17.596Z"596+03:00”,
    "LastAvailableDateTime": "2020-03-12T09:10:17.596Z"596+03:00”
  }

}

4.2.       Specific Account

...

4.2.1     Request

GET /accounts/00348765
AuthorizationAuthorisation: Bearer 4ZopnFZFKjr5zDsicSQpLL
x-fapi-auth-date: FriTue, 20 18 Mar 2020 1119:0743:31 GMT+03 GMT:00
x-fapi-customer-ip-address: 204.35.213.15
x-fapi-interaction-id: 75bdc714-b2dg-7676-c759-780d6815689f
Accept: application/json

...

200 OK

x-fapi-interaction-id: 75bdc714-b2dg-7676-c759-780d6815689f

Content-Type: application/json

{
    "Data": {
        "FilePaymentIdAccount": "764356",
    "ConsentId": "565656",
    "CreationDateTime": "2020-03-20T11:07:04.048Z",
    [
      {
        "AccountId": "00348765",
        "Status": "InitiationCompletedEnabled",
            "StatusUpdateDateTime": "2020-03-20T1123T08:0727:04.048Z",
    "Charges": [
      {
        "ChargeBearer": "BorneByCreditor",
        "Type": "TO_BE_CONFIRMED",
        "Amount": {
          "Amount": "2.38",
          "44.180+03:00”,
        "Currency": "BHD"
        }
      }
    ],
    "Initiation        "AccountType": {
       "FileType": "BH.OBF.PaymentInitiation",
      "FileHashBusiness",
        "AccountSubType": "jhkgas5768a/s78asCurrentAccount",
      "FileReference        "Description": "41536789CurrentAccount",
      "NumberOfTransactions        "Nickname": "10Bills",
      "ControlSum        "OpeningDate": 0,
      "RequestedExecutionDateTime ": "2020-03-20T0923T08:1427:32.115Z",
      "LocalInstrument": "EFT-CSCT-DNS",
      "DebtorAccount": {
        "SchemeName": "IBAN",
        "Identification": "BH10CBBU00100000008876",
        "Name": "Albert John",
        "SecondaryIdentification": "00023"
      },
      "RemittanceInformation": {
        "RemittanceDescription": "External Ops Code 34251",
        "Reference": "XYZ-101"
      },
    },
    "MultiAuthorisation": {
      "Status": "Authorised",
      "NumberRequired": 1,
      "NumberReceived": 1,
      "LastUpdateDateTime": "2020-03-20T11:07:04.048Z",
      "ExpirationDateTime": "2020-03-20T11:07:04.048Z"
    }
  },
  44.180+03:00”,
        "MaturityDate": "2020-03-23T08:27:44.180+03:00”
      },
    ]
  },
 "Links": {
        "Self": "www.TBC.com"
    },
    "Meta": {
        "TotalPages": 102,
        "FirstAvailableDateTime": "2020-03-20T0912T09:10:17.596Z"596+03:00”,
        "LastAvailableDateTime": "2020-03-20T0912T09:10:17.596Z"
  }596+03:00”
  } 

}