Open Banking - Identify the transaction is a debit or credit

Not applicable

How to identify from the response of "Account transaction >> /acr:token/transactions", whether its a debit transaction or a credit transaction. The response has the following fields, which among these fields should be used ?? :

[
  {
    "account_number": _,
    "amount": _,
    "booking_code": _,
    "booking_date": "_,
    "currency": _,
    "subject": _,
    "transaction_type": _,
    "transaction_type_details": {
      "remote_iban": "_",
      "remote_bic": "_",
      "remote_name": _
    },
    "value_date": _,
    "id": _,
    "created_at": _,
    "updated_at": _
  },
0 3 180
3 REPLIES 3

@Prashanth Subrahmanyam , Any help here ?

Hi @Vishal Bokaria, thanks for the question.

The idea was that the field 'transaction_type' is used to indicate the kind of transaction made. However, I hear you. A field that indicates the type such as credit / debit will be quite useful.

Currently, the only API that writes 'creates' transaction entries is the payment API. Because it is a payment API, all the transactions will be 'debit' transactions. So, I am not sure it will help you much.

Would it be possible for you to elaborate on a use case that you are looking to build? Then we can enhance the APIs and add the capability that you are looking for.

Hi @Prashanth Subrahmanyam

The field 'transaction_type' contains the value for e.g 'sepa_credit_transfer', which can be either debit or credit transaction.

We are consuming the open banking API for showing the transactions overview, balance etc. Transaction overview, has both the debit and credit transactions and the user interface displays them differently. So, we wanted the API to provide us with both Debit/Credit transactions, this would have helped us in our development/testing of different practical scenarios.

Hope that answers your question.