Aller au contenu

Environnement de développement : contenu en cours de rédaction, rien ne pointe vers la production.

Sommaire de la documentation

banks

Version 0.1.02 opérations

Active banks of a country (public)

GET/banks

Banks first, then La Poste Tunisienne and the payment institutions (kind), each by name. The dashboard passes the country of the organisation.

Paramètres

  • countryanyquery

    ISO 3166-1 alpha-2 country, TN by default

Réponses

  • 200

    • codestringobligatoire

      BCT code in Tunisia (the two first digits of a RIB), Bank Al-Maghrib code (three digits) in Morocco

    • countrystringobligatoire

      ISO 3166-1 alpha-2 country of the bank

    • kindstringobligatoire

      postal for La Poste Tunisienne, payment_institution for IZI: they hold merchant accounts but are not banks

      • enum: "bank", "postal", "payment_institution"
    • namestringobligatoire
    • shortNamestringobligatoire
    • isSmtMemberbooleanobligatoire

      Member of SMT: can issue a ClicToPay affiliation

    • swiftCodestring

      Absent when unknown

    • logoUrlstring

      Logo URL: the logo served by GET /banks/{code}/logo, or an override set by Konnect; absent when none

  • 400invalid_query

Exemples de code

curl -X GET "$KONNECT_API_URL/banks"

Exemple : 200

[
  {
    "code": "24",
    "country": "TN",
    "kind": "bank",
    "name": "Banque de Tunisie et des Emirats",
    "shortName": "BTE",
    "isSmtMember": true,
    "swiftCode": "BCMAMAMCXXX",
    "logoUrl": "https://api.konnect.network/banks/24/logo"
  }
]