Skip to content

API Reference

Complete documentation for all service endpoints.

SPI Simulator (Go)

Base URL: http://localhost:3002

Health Check

GET /spi/health

Response:

json
{
  "status": "ok",
  "service": "spi-simulator-go",
  "version": "1.0.0",
  "timestamp": "2026-06-26T10:00:00Z"
}

Create Payment (pacs.008)

POST /spi/pacs.008
Content-Type: application/xml

Request:

xml
<?xml version="1.0" encoding="UTF-8"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pacs.008.001.08">
  <FIToFICstmrCdtTrf>
    <GrpHdr>
      <MsgId>PACS00820260626001</MsgId>
      <CreDtTm>2026-06-26T10:00:00</CreDtTm>
      <NbOfTxs>1</NbOfTxs>
      <TtlIntrBkSttlmAmt Ccy="BRL">150.00</TtlIntrBkSttlmAmt>
      <IntrBkSttlmDt>2026-06-26</IntrBkSttlmDt>
      <SttlmInf>
        <SttlmMtd>CLRG</SttlmMtd>
      </SttlmInf>
    </GrpHdr>
    <CdtTrfTxInf>
      <PmtId>
        <EndToEndId>E2E202606260001</EndToEndId>
        <TxId>TX202606260001</TxId>
      </PmtId>
      <InstgAgt>
        <FinInstnId>
          <ClrSysMmbId>
            <MmbId>12345678</MmbId>
          </ClrSysMmbId>
        </FinInstnId>
      </InstgAgt>
      <Dbtr>
        <Nm>Mateus Siqueira</Nm>
      </Dbtr>
      <CdtrAgt>
        <FinInstnId>
          <ClrSysMmbId>
            <MmbId>87654321</MmbId>
          </ClrSysMmbId>
        </FinInstnId>
      </CdtrAgt>
      <Cdtr>
        <Nm>Empresa Teste LTDA</Nm>
      </Cdtr>
      <IntrBkSttlmAmt Ccy="BRL">150.00</IntrBkSttlmAmt>
      <ChrgBr>SLEV</ChrgBr>
    </CdtTrfTxInf>
  </FIToFICstmrCdtTrf>
</Document>

Response (200):

xml
<?xml version="1.0" encoding="UTF-8"?>
<Document>
  <FIToFIPmtStsRpt>
    <GrpHdr>
      <MsgID>PACS002E2E202606260001</MsgID>
      <CreDtTm>2026-06-26T10:00:00Z</CreDtTm>
      <NbOfTxs>1</NbOfTxs>
      <TtlIntrBkSttlmAmt Ccy="BRL">150.00</TtlIntrBkSttlmAmt>
    </GrpHdr>
    <TxInfAndSts>
      <OrgnlEndToEndId>E2E202606260001</OrgnlEndToEndId>
      <TxSts>ACCP</TxSts>
    </TxInfAndSts>
  </FIToFIPmtStsRpt>
</Document>

Errors:

  • 400 — Invalid XML
  • 409 — Duplicate EndToEndId
  • 422 — Invalid amount

List Transactions

GET /spi/transactions

Get Transaction

GET /spi/transactions/:endToEndId

DICT Simulator (Go)

Base URL: http://localhost:3003

Create Pix Key

POST /dict/keys
Content-Type: application/json

Request:

json
{
  "keyType": "CPF",
  "keyValue": "12345678901",
  "accountId": "acc_001",
  "ispb": "12345678",
  "branch": "0001",
  "accountNumber": "12345",
  "accountType": "CHECKING",
  "holderName": "Mateus Siqueira"
}

Key Types: CPF, CNPJ, EMAIL, PHONE, RANDOM

Get Key

GET /dict/keys/:keyType/:keyValue

List Keys

GET /dict/keys

Delete Key

DELETE /dict/keys/:id

ISO 8583 Simulator

Base URL: http://localhost:3004

Endpoints

MethodEndpointDescription
POST/iso8583/acquirer/authorizeAuthorization request
POST/iso8583/acquirer/financialFinancial transaction
POST/iso8583/acquirer/reversalReversal request
POST/iso8583/issuer/authorizeIssuer authorization
POST/iso8583/issuer/financialIssuer financial
POST/iso8583/issuer/reversalIssuer reversal
GET/admin/cardsList test cards
POST/admin/cardsCreate test card
POST/admin/resetReset all cards

Workflow Engine

Base URL: http://localhost:3005

Workflows

MethodEndpointDescription
GET/workflowsList workflows
POST/workflowsCreate workflow
GET/workflows/:idGet workflow
PUT/workflows/:idUpdate workflow
DELETE/workflows/:idDelete workflow
POST/workflows/:id/executionsStart execution
GET/executions/:idGet execution status

Open Finance Simulator

Base URL: http://localhost:3006

Consents

MethodEndpointDescription
POST/open-banking/consents/v1/consentsCreate consent
GET/open-banking/consents/v1/consents/:idGet consent
DELETE/open-banking/consents/v1/consents/:idRevoke consent

Accounts

MethodEndpointDescription
GET/open-banking/accounts/v1/accountsList accounts
GET/open-banking/accounts/v1/accounts/:idGet account
GET/open-banking/accounts/v1/accounts/:id/balancesGet balances
GET/open-banking/accounts/v1/accounts/:id/transactionsGet transactions

Payments

MethodEndpointDescription
POST/open-banking/payments/v1/pix/paymentsInitiate payment
GET/open-banking/payments/v1/pix/paymentsList payments

NFS-e Integration

Base URL: http://localhost:3007

MethodEndpointDescription
POST/nfse/issueIssue invoice
GET/nfse/:idGet invoice
GET/nfse/:id/xmlGet invoice XML

Report System

Base URL: http://localhost:3008

MethodEndpointDescription
POST/reports/generateGenerate report
GET/reports/:idGet report
GET/reports/:id/downloadDownload report
GET/reportsList reports

Leaky Bucket

Base URL: http://localhost:3009

MethodEndpointDescription
POST/auth/registerRegister client
POST/auth/tokenGet access token
POST/pix/queryQuery Pix (rate limited)
POST/graphqlGraphQL endpoint