Skip to content

STA ConnectorBCB Integration Made Simple

Elixir/Phoenix application for bidirectional file exchange with Brazil Central Bank's STA WebService

STA Connector

Language / Idioma

EnglishPortugues
Getting StartedPrimeiros Passos
API ReferenceReferencia API
ArchitectureArquitetura
DeploymentImplantacao

Quick Overview

STA Connector provides a robust bridge between your systems and Brazil Central Bank's STA (Sistema de Transferencia de Arquivos) WebService.

+-------------------+         +------------------------+         +-------------------+
|   Your Systems    |<------->|     STA Connector      |<------->|      BCB STA      |
|    (REST API)     |         |   (Elixir/Phoenix)     |         |   (SOAP/HTTPS)    |
+-------------------+         +------------------------+         +-------------------+
                                         |
                              +----------v----------+
                              |   OTP Supervision   |
                              |       Tree          |
                              +----------+----------+
                                         |
                    +--------------------+--------------------+
                    |                    |                    |
           +--------v--------+  +--------v--------+  +--------v--------+
           |  STA.Client     |  |  File.Worker    |  |  Parser.Registry|
           |  (GenServer)    |  |  (GenServer)    |  |  (GenServer)    |
           +-----------------+  +-----------------+  +-----------------+
                                         |
                              +----------v----------+
                              |   Admin Portal      |
                              |   (Vue 3 + Vite)    |
                              +----------+----------+
                                         |
                              +----------v----------+
                              |  Phoenix Channels   |
                              |    (WebSocket)      |
                              +---------------------+

Supported BCB Systems

SystemDescriptionDirection
CCSCustomer Consultation SystemInbound/Outbound
CIRCredit Information RegistryInbound
CMPMeans of Payment ControlInbound
STRReserve Transfer SystemInbound/Outbound
SPIInstant Payment System (PIX)Inbound/Outbound
CAMForeign Exchange SystemInbound
LDLDeferred SettlementInbound
DICTPIX DirectoryInbound/Outbound

Getting Started

bash
# Clone the repository
git clone https://github.com/FluxiqBR/sta
cd sta

# Install dependencies
mix deps.get

# Configure environment
cp config/dev.secret.exs.example config/dev.secret.exs
nano config/dev.secret.exs  # Add your credentials

# Setup database
mix ecto.setup

# Start the Phoenix server
mix phx.server

# Or start with interactive shell
iex -S mix phx.server

# Access the admin portal
open http://localhost:4000

Read the full getting started guide

Technology Stack

ComponentTechnology
BackendElixir 1.15+, Phoenix 1.7, OTP
DatabasePostgreSQL 15, Ecto
HTTP ClientFinch
XML ParsingSweetXml
FrontendVue 3, Vite, Pinia
Real-timePhoenix Channels (WebSocket)
DeploymentDocker, Kubernetes
DocsVitePress

Documentation

Released under the MIT License.