Lean Tech

Lean Tech

July 10, 2023 | permanent

Fintech #

tags
Open Banking, Open Banking in Saudi Arabia

leantech website

Product Demo

Founder name is Alfaleh son of Energy, Hisham AlFaleh

AIS #

AIS API ref

Available Data through APIs #

  1. Get accounts
       {
      "status": "OK",
      "payload": {
        "accounts": [
          {
            "account_id": "73a70c83-7f82-4266-a680-56474f910b50",
            "name": "Current Account",
            "currency_code": "AED",
            "type": "CURRENT",
            "iban": "AE000000627910454054",
            "account_number": "7910454054"
          },
          {
            "account_id": "13dd6e3c-806c-4845-8689-722228b9e8d7",
            "name": "Savings Account",
            "currency_code": "AED",
            "type": "SAVINGS",
            "iban": "AE000000224146267989",
            "account_number": "4146267989"
          },
          {
            "account_id": "38386bdb-9b3c-443b-8fd7-9d6eef86ae4b",
            "name": "Credit Account",
            "currency_code": "AED",
            "type": "CREDIT",
            "iban": "AE000000526321933201",
            "account_number": "6321933201",
            "credit": {
              "card_number_last_four": "1399",
              "limit": 167.75,
              "next_payment_due_date": "2022-03-12",
              "next_payment_due_amount": 162.6
            }
          }
        ],
        "type": "accounts"
      },
      "results_id": "a20a3aa9-f091-426f-b732-d1633f31a8e1",
      "message": "Data successfully retrieved",
      "timestamp": "2022-09-20T09:15:11.580362482Z"
    }
    
  2. Get balance
    {
      "status": "OK",
      "payload": {
        "balance": 1002852.68,
        "currency_code": "AED",
        "account_id": "73a70c83-7f82-4266-a680-56474f910b50",
        "account_name": "Current Account",
        "account_type": "CURRENT",
        "type": "balance"
      },
      "results_id": "8edf62d1-9fab-4d9f-a599-6258e76ef277",
      "message": "Data successfully retrieved",
      "timestamp": "2022-09-20T09:50:49.596138125Z"
    }
    
  3. Get Identity
    {
    "status": "OK",
    "payload": {
        "full_name": "Ambrose Bogan",
        "mobile_number": "+9712435838 x8223",
        "gender": "MALE",
        "national_identity_number": "316952800000",
        "birth_date": "2023-02-07",
        "email_address": "concha.heaney@gmail.com",
        "address": "Tawanna Ferry",
        "type": "identity"
    },
    "results_id": "bc7b662a-8b84-485e-a90a-13ba48e21b8a",
    "message": "Data successfully retrieved",
    "timestamp": "2022-09-20T09:44:56.193804209Z"
    }
    
  4. Get Transactions No enrichment here
       {
      "status": "OK",
      "payload": {
        "transactions": [
          {
            "id": "1f745f1d-1865-4d10-be99-cb9f7a20abfb",
            "description": "Cash deposit AED 10000",
            "amount": 10000,
            "currency_code": "AED",
            "index": 0,
            "pending": false,
            "timestamp": "2022-09-12T00:00:00Z"
          },
          {
            "id": "0a8c3fd2-7f94-4095-a6dc-6eee8400d9b7",
            "description": "AMAZON.COM*S37EV3Y93 AMZN.COM/BILL USA",
            "amount": -443.96,
            "currency_code": "AED",
            "index": 0,
            "pending": true,
            "timestamp": "2022-09-11T00:00:00Z"
          }
        ],
        "type": "transactions"
      },
      "results_id": "3ef57520-68bb-4ee1-b732-bdb01ae9131a",
      "message": "Data successfully retrieved",
      "timestamp": "2022-09-20T16:04:04.270526478Z"
    }
    
    With enrichment here
        curl -X POST 'https://sandbox.leantech.me/v1/transactions' \
       --header 'Content-Type: application/json' \
       --header 'lean-app-token: YOUR_APP_TOKEN' \
       --data-raw '{
         "entity_id": "f08fb010-878f-407a-9ac2-a7840fb56185",
         "account_id": "01bb8b3f-8462-470b-b2ed-14eb15b95fa2",
         "start_date": "2020-03-01",
         "end_date": "2020-03-15",
         "insights": true
       }'
    
       # result
       {
      "status": "OK",
      "payload": {
        "transactions": [
          {
            "id": "01e39a9c-a4ff-3429-a079-968ad1bbb0a3",
            "description": "ALETIHAD CREDIT BUREAU ABU DHABI AE",
            "amount": 84685.18,
            "currency_code": "AED",
            "pending": false,
            "timestamp": "2021-01-31T00:00:00Z",
            "insights": {
              "description_cleansed": "ALETIHAD CREDIT BUREAU ABU DHABI AE",
              "category": "LOANS_AND_INVESTMENTS",
              "category_confidence": 0.99,
              "type": "TRANSFER",
              "type_confidence": 1
            }
          }
        ]
      }
    }
    
  5. Get Results
  6. Entities
       [
      {
        "id": "9aeb067a-9c1a-3631-a6f3-e912c6f4354b",
        "customer_id": "beb7697d-d0f2-4ec7-b169-af3700822235",
        "bank_identifier": "LEANMB1_SAU",
        "permissions": {
          "identity": true,
          "accounts": true,
          "balance": true,
          "transactions": true
        },
        "bank_type": "RETAIL"
      },
      {
        "id": "9837095b-9d2d-3957-bdd5-ccfcf50aff49",
        "customer_id": "beb7697d-d0f2-4ec7-b169-af3700822235",
        "bank_identifier": "LEANMB2_SAU",
        "permissions": {
          "identity": true,
          "accounts": true,
          "balance": true,
          "transactions": true
        },
        "bank_type": "RETAIL"
      }
    ]
    

PIS #

Categorized Transactions #

Our data insights algorithm identifies and assigns each transaction into one of 16 pre-defined categories for you ref

Contacts #

Shared by Saaed #

emails: mohammed.albissi@leantech.me +966543090800 gregoire.lavoute@leantech.me

Trying APIs #

(pyvenv-activate "~/.envs/azmx-cms")
cert_file_path = "/Users/jaavedkhan/Downloads/AzmX/AzmX_certificate.crt"
key_file_path = "/Users/jaavedkhan/Downloads/AzmX/AzmX_private_key.pem"
server_public_cert_path= "/Users/jaavedkhan/Downloads/lean_public_cert_chain.pem"

cert = (cert_file_path, key_file_path)
url = "https://api.sa.leantech.me/data/v2/accounts?async=false&page=0&size=50&entity_id=dfd&force_refresh=false&verbose=false"

headers = {
    "accept": "*/*",
    "lean-app-token": "0f5fd6a7-7da6-4b93-8b7a-9720fea2dbd9"
}

response = requests.get(url, headers=headers, cert=cert, verify=server_public_cert_path)

print(response.text)


Go to random page

Previous Next