Versions Compared

Key

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

...

{
  "Data": {
    "Transaction": [
      {
        "AccountId": "00345897",
        "TransactionId": "2257",
        "TransactionReference": "Transaction Ref",
        "StatementReference": [
          "Statement Ref"
        ],
        "CreditDebitIndicator": "Credit",
        "Status": "Booked",
        "BookingDateTime": "2020-03-24T06:03:00.348+03:00”,
        "ValueDateTime": "2020-03-24T06:03:00.348+03:00”,
        "Amount": {
          "Amount": "1000",
          "Currency": "BHD"
        },
        "ChargeAmount": {
          "Amount": "50",
          "Currency": "BHD"
        },
        "CurrencyExchange": {
          "SourceCurrency": "BHD",
          "TargetCurrency": "BHD",
          "UnitCurrency": "BHD",
          "ExchangeRate": 0.44,
          "ContractIdentification": " ",
          "QuotationDate": "2020-03-24T06:03:00.348+03:00”,
          "InstructedAmount": {
            "Amount": "1000",
            "Currency": "BHD"
          }
        },
        "BankTransactionCode": {
          "Code": "ReceivedCreditTransfer",
          "SubCode": "CreditTransfer"
        },
        "ProprietaryBankTransactionCode": {
          "Code": "Transfer",
          "Issuer": "XYZBank"
        },
        "CardInstrument": {
          "CardSchemeName": "AmericanExpress",
          "AuthorisationType": "ConsumerDevice",
          "Name": "Asif Khan",
          "Identification": "BH10XYZU00100000008876"
        },
      },
    ]
  },

"Links": {
    "Self": "www.TBC.com"
  },
  "Meta": {
    "TotalPages": 02,
    "FirstAvailableDateTime": "2020-03-24T09:10:17.596+03:00”,
    "LastAvailableDateTime": "2020-03-24T09:10:17.596+03:00”
  }

}

4.3.      No Access

In this example, the AISP does not have access to call the transactions endpoint. This will result in a 403 error.

4.3.1     Get Account Transactions Request

GET /accounts/00345897/transactions
Authorisation: 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
Accept: application/json

4.3.2     Get Account Transactions Response

403 Forbidden

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