Sweeping Accounts V2 - List Payment Initiation API

Visão Geral

Esta API permite a listagem de consentimentos de sweeping accounts. Este tipo de consentimento permite que uma instituição iniciadora de pagamento realize múltiplas transferências automáticas de uma conta do usuário pagador para outras contas do mesmo, respeitando limites configurados pelo próprio usuário.

Endpoint

GET /open-keys/itp/api/v2/sweeping-accounts/v2/payment-initiation

Autenticação

A API requer autenticação OAuth2 com uma das seguintes permissões:

  • journey: Para fluxos que utilizam redirecionamento à detentora de conta
  • app: Para integrações diretas via API

O token de acesso deve ser enviado no header:

Authorization: Bearer {access_token}

Estrutura da Requisição

Parâmetros que podem ser enviados

{
  "status": "PENDING" | "AWAITING_AUTHORISATION" | "CANCELLED" | "EXPIRED" | "AUTHORISED" | "CONSUMED" | "REJECTED" | "FINISHED",
  "initialDate": "2025-11-01",
  "finalDate": "2025-11-30",
  "page": 1,
	"pageSize": 10
}

Campos da Requisição

Nível Raiz

CampoTipoObrigatórioDescrição
statusStringNãoStatus do consentimento
initialDateStringNãoFiltro de data inicial para criação do consentimento
finalDateStringNãoFiltro de data final para criação do consentimento
pageNumberNãoPágina atual da listagem
pageSizeNumberNãoQuantidade de itens por página

Formato de Datas

As datas devem seguir o padrão ISO:

  • Formato: YYYY-MM-DD
  • Exemplo: "2025-11-19"

Exemplo de Requisição (cURL)

curl --location 'https://api.exemplo.com/open-keys/itp/api/v2/sweeping-accounts/v2/payment-initiation?status=AUTHORISED&initialDate=2025-11-28&finalDate=2025-11-27&page=1&pageSize=10' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Exemplo de Requisição (JavaScript/Node.js)

const axios = require('axios');

let config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'https://api.exemplo.com/open-keys/itp/api/v2/sweeping-accounts/v2/payment-initiation?status=AUTHORISED&initialDate=2025-11-28&finalDate=2025-11-27&page=1&pageSize=10',
  headers: { 
    'Authorization': '••••••'
  }
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

Exemplo de Requisição (Python)

import requests

url = "https://api.exemplo.com/open-keys/itp/api/v2/sweeping-accounts/v2/payment-initiation?status=AUTHORISED&initialDate=2025-11-28&finalDate=2025-11-27&page=1&pageSize=10"

payload = {}
headers = {
  'Authorization': '••••••'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Resposta da API

Sucesso (200 OK)

A API retorna um objeto contendo:

{
    "data": [
        {
            "brandId": "69025598418e4eda09274a00",
            "redirectUrl": "http://localhost:8080/callback",
            "data": {
                "creditors": [
                    {
                        "name": "João Silva",
                        "cpfCnpj": "12345678909",
                        "personType": "PESSOA_NATURAL"
                    }
                ],
                "loggedUser": {
                    "document": {
                        "identification": "12345678909",
                        "rel": "CPF"
                    }
                },
                "recurringConfiguration": {
                    "sweeping": {
                        "totalAllowedAmount": "10000.00",
                        "transactionLimit": "150.00",
                        "periodicLimits": {
                            "day": {
                                "quantityLimit": 5,
                                "transactionLimit": "25.00"
                            },
                            "week": {
                                "quantityLimit": 5,
                                "transactionLimit": "100.00"
                            },
                            "month": {
                                "quantityLimit": 5,
                                "transactionLimit": "300.00"
                            },
                            "year": {
                                "quantityLimit": 5,
                                "transactionLimit": "10000.00"
                            }
                        },
                        "startDateTime": "2025-11-27T16:00:00Z"
                    }
                }
            },
            "journeySessionId": "692984fb19d981221c9d242c",
            "applicationId": "68a482d2b3ee755e8bbdec8a",
            "paymentInitiationApi": "SWEEPING_ACCOUNTS_V2",
            "tokenId": "692984fb764d31221c1e01cc",
            "createdAt": "2025-11-28T11:18:19.384Z",
            "updatedAt": "2025-11-28T11:18:28.488Z",
            "authorizationUrl": "https://api-openfinance.opb.bricks.demo.fsapps.io/orgs/bricks/auth?client_id=CSYrcp9dzeRdUWbuXLFiF&request_uri=urn%3Aietf%3Aparams%3Aoauth%3Arequest_uri%3ASclR4cO5ruUf5amgJcoMu",
            "ofConsentId": "6929850319d981221c9d242f",
            "journeySession": {
                "journeyId": "6927467b7220f7158cb60b3f",
                "paymentInitiationData": {
                    "creditors": [
                        {
                            "name": "João Silva",
                            "cpfCnpj": "12345678909",
                            "personType": "PESSOA_NATURAL"
                        }
                    ],
                    "loggedUser": {
                        "document": {
                            "identification": "12345678909",
                            "rel": "CPF"
                        }
                    },
                    "recurringConfiguration": {
                        "sweeping": {
                            "totalAllowedAmount": "10000.00",
                            "transactionLimit": "150.00",
                            "periodicLimits": {
                                "day": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "25.00"
                                },
                                "week": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "100.00"
                                },
                                "month": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "300.00"
                                },
                                "year": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "10000.00"
                                }
                            },
                            "startDateTime": "2025-11-27T16:00:00Z"
                        }
                    }
                },
                "redirectUrl": "http://localhost:8080/callback",
                "paymentInitiationApi": "SWEEPING_ACCOUNTS_V2",
                "applicationClientId": "openkeys_287f10e6-7917-4ff7-8291-e885a9e9076d",
                "applicationId": "68a482d2b3ee755e8bbdec8a",
                "tokenId": "692984fb764d31221c1e01cc",
                "journeySessionStageId": "692984fb19d981221c9d242b",
                "status": "AUTHORISED",
                "statusHistory": [
                    {
                        "updatedAt": "2025-11-28T11:18:19.361Z",
                        "status": "PENDING"
                    },
                    {
                        "updatedAt": "2025-11-28T11:18:28.463Z",
                        "status": "AWAITING_AUTHORISATION"
                    },
                    {
                        "updatedAt": "2025-11-28T11:21:42.274Z",
                        "status": "AUTHORISED"
                    }
                ],
                "createdAt": "2025-11-28T11:18:19.361Z",
                "updatedAt": "2025-11-28T11:21:42.274Z",
                "paymentInitiationId": "692984fb19d981221c9d242d",
                "id": "692984fb19d981221c9d242c",
                "token": {
                    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2OTI5ODRmYjc2NGQzMTIyMWMxZTAxY2MiLCJpc3MiOiJvcGVuLWtleXMtaXRwLXYyIiwiYXpwIjoib3BlbmtleXNfMjg3ZjEwZTYtNzkxNy00ZmY3LTgyOTEtZTg4NWE5ZTkwNzZkIiwic2NvcGUiOiJqb3VybmV5IiwiaWF0IjoxNzY0MzI4Njk5LCJleHAiOjE3NjQzMzIzNTl9.QARQ_xWcNzCtMPILJYSiYFEAp527Zk0wmk0knsWgvus",
                    "createdAt": "2025-11-28T11:18:19.280Z",
                    "updatedAt": "2025-11-28T11:18:19.280Z",
                    "id": "692984fb764d31221c1e01cc"
                }
            },
            "id": "692984fb19d981221c9d242d",
            "ofConsent": {
                "paymentInitiationId": "692984fb19d981221c9d242d",
                "consentId": "urn:bricks-demo:231be033-3f54-4d7f-8783-cb037a60e687",
                "organization_id": "c55ceb2e-c9fb-4989-8ed1-39208d6d7951",
                "brand_id": "3a40d894-f3c2-47e3-97c2-d9a04cdac63c",
                "authorization_url": "https://api-openfinance.opb.bricks.demo.fsapps.io/orgs/bricks/auth?client_id=CSYrcp9dzeRdUWbuXLFiF&request_uri=urn%3Aietf%3Aparams%3Aoauth%3Arequest_uri%3ASclR4cO5ruUf5amgJcoMu",
                "consent_id": "urn:bricks-demo:231be033-3f54-4d7f-8783-cb037a60e687",
                "code_verifier": "3cvQ7XgBLdzQbHUirulBDbI4EJD90oexuPGEFQHNCSU",
                "nonce": "9bUszWowvhD_juk7i0Y2o0omCcIYzYi1-lUVRMgCC3c",
                "state": "692984fb19d981221c9d242d",
                "redirect_uri": "https://smartkeys-wl.celcoin.hml.fsapps.io/callback",
                "scope": "openid recurring-payments recurring-consent:urn:bricks-demo:231be033-3f54-4d7f-8783-cb037a60e687",
                "consentTerm": 0,
                "consentTermUnit": "M",
                "creationDateTime": "2025-11-28T11:18:22.000Z",
                "creditors": [
                    {
                        "personType": "PESSOA_NATURAL",
                        "cpfCnpj": "12345678909",
                        "name": "João Silva"
                    }
                ],
                "events": [
                    {
                        "date": "2025-11-28T11:18:22.000Z",
                        "event": "AWAITING_AUTHORISATION"
                    },
                    {
                        "date": "2025-11-28T11:18:27.606Z",
                        "event": "REDIRECTED"
                    },
                    {
                        "date": "2025-11-28T11:21:35.181Z",
                        "event": "CODE_GENERATED"
                    },
                    {
                        "date": "2025-11-28T11:21:41.452Z",
                        "event": "AUTHORISED"
                    }
                ],
                "journey": [],
                "kind": "AUTOMATIC_PAYMENT",
                "loggedUser": {
                    "document": {
                        "identification": "12345678909",
                        "rel": "CPF"
                    }
                },
                "organizationLogo": "https://finansystech-pub.s3.sa-east-1.amazonaws.com/f_logo.svg",
                "organizationName": "Finansystech Banking Demo Auth Server",
                "ownerBrandId": "3a40d894-f3c2-47e3-97c2-d9a04cdac63c",
                "ownerId": "c55ceb2e-c9fb-4989-8ed1-39208d6d7951",
                "recurringConfiguration": {
                    "sweeping": {
                        "totalAllowedAmount": "10000.00",
                        "transactionLimit": "150.00",
                        "periodicLimits": {
                            "day": {
                                "quantityLimit": 5,
                                "transactionLimit": "25.00"
                            },
                            "week": {
                                "quantityLimit": 5,
                                "transactionLimit": "100.00"
                            },
                            "month": {
                                "quantityLimit": 5,
                                "transactionLimit": "300.00"
                            },
                            "year": {
                                "quantityLimit": 5,
                                "transactionLimit": "10000.00"
                            }
                        },
                        "startDateTime": "2025-11-27T16:00:00.000Z",
                        "useOverdraftLimit": true
                    }
                },
                "recurringConsentId": "urn:bricks-demo:231be033-3f54-4d7f-8783-cb037a60e687",
                "status": "AUTHORISED",
                "statusUpdateDateTime": "2025-11-28T11:21:41.452Z",
                "transactions": [],
                "access_token": "CvrxLpyqWGM-8nwy7pA3rDTrCAjCOSZQCSZjTug-N65",
                "expires_at": 1764329801,
                "id_token": "eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlZMdThGLXgybk9JRlp2em5RcmwwbDQ1TkdmS0Y0aFpHQ0pUNy1peTVpRWcifQ.eyJzdWIiOiI3OWI1ZjU0OTE4NjI4Y2M3ZjZhOTAwYTM4NmQxNGEwNCIsImFjciI6InVybjpicmFzaWw6b3BlbmJhbmtpbmc6bG9hMiIsIm5vbmNlIjoiOWJVc3pXb3d2aERfanVrN2kwWTJvMG9tQ2NJWXpZaTEtbFVWUk1nQ0MzYyIsImF0X2hhc2giOiJFRENYbl9ZQ2xTYU9KVllOc0p5cWJBIiwiYXVkIjoiQ1NZcmNwOWR6ZVJkVVdidVhMRmlGIiwiZXhwIjoxNzY0MzMyNTAxLCJpYXQiOjE3NjQzMjg5MDEsImlzcyI6Imh0dHBzOi8vYXBpLW9wZW5maW5hbmNlLm9wYi5icmlja3MuZGVtby5mc2FwcHMuaW8vb3Jncy9icmlja3MifQ.Xd1-ybxA3xwpdTVLIlAp_-BAF_Ftj5V0gWcHI5fElhSR7UGlsOviLUak0esB6AFgpGqHjoQJwQnmYpN2D5h5KDgUENYs0kSLC6V6Z3nTi4ED3IJg_Ycp0IiI-tTgSUzHK9GCE-YrZsZEIjXQmgJbST-OKcURssWvJYPfsQ5uEt3cHUOqJy4kI4OOaCZSIjVdOXKWcx9vgZvQMWQv8Ueq9AqbjbtL_AxD_QYfPfJTpPq--V-Sm0i9USPn3_GV86didkpM5QxU3UIokNrzaiGvfRc_PgF_pNSTN_YlrPZcVciSY2JS7zVzZ59eVQFaO0tQou0CRxS0N7vAj92ySUF5mQ",
                "refresh_token": "f_mrIlM5Hw1TboI-5XOTJFaPZvu6ABCkHXdTo1j5v8h",
                "token_type": "Bearer",
                "id": "6929850319d981221c9d242f"
            },
            "ofPayments": [],
            "brand": {
                "AuthorisationServerId": "3a40d894-f3c2-47e3-97c2-d9a04cdac63c",
                "ApiFamilyType": {
                    "payments-pix-recurring-payments-automatic": true,
                    "payments-pix-recurring-payments": true,
                    "enrollments": true,
                    "payments-pix": true
                },
                "CustomerFriendlyDescription": "Finansystech Banking Demo Auth Server",
                "CustomerFriendlyLogoUri": "https://finansystech-pub.s3.sa-east-1.amazonaws.com/f_logo.svg",
                "CustomerFriendlyName": "Finansystech Banking Demo Auth Server",
                "Flags": {
                    "Suporta Contas PF": [
                        "Suporta Contas PF"
                    ],
                    "Suporta Contas PJ": [
                        "Suporta Contas PJ"
                    ]
                },
                "OpenIDDiscoveryDocument": "https://api-openfinance.opb.bricks.demo.fsapps.io/orgs/bricks/.well-known/openid-configuration",
                "OrganisationId": "69025584418e4eda0927453c",
                "OrganisationName": "CELCOIN INSTITUICAO DE PAGAMENTO S.A.",
                "ParentAuthorisationServerId": null,
                "id": "69025598418e4eda09274a00"
            }
        },
        {
            "brandId": "69025598418e4eda09274a00",
            "redirectUrl": "http://localhost:8080/callback",
            "data": {
                "creditors": [
                    {
                        "name": "João Silva",
                        "cpfCnpj": "12345678909",
                        "personType": "PESSOA_NATURAL"
                    }
                ],
                "loggedUser": {
                    "document": {
                        "identification": "12345678909",
                        "rel": "CPF"
                    }
                },
                "recurringConfiguration": {
                    "sweeping": {
                        "totalAllowedAmount": "10000.00",
                        "transactionLimit": "150.00",
                        "periodicLimits": {
                            "day": {
                                "quantityLimit": 5,
                                "transactionLimit": "25.00"
                            },
                            "week": {
                                "quantityLimit": 5,
                                "transactionLimit": "100.00"
                            },
                            "month": {
                                "quantityLimit": 5,
                                "transactionLimit": "300.00"
                            },
                            "year": {
                                "quantityLimit": 5,
                                "transactionLimit": "10000.00"
                            }
                        },
                        "startDateTime": "2025-11-27T16:00:00Z"
                    }
                }
            },
            "journeySessionId": "692866120a5c83dde37661ae",
            "applicationId": "68a482d2b3ee755e8bbdec8a",
            "paymentInitiationApi": "SWEEPING_ACCOUNTS_V2",
            "tokenId": "69286611764d31dde338c146",
            "createdAt": "2025-11-27T14:54:10.034Z",
            "updatedAt": "2025-11-27T14:54:30.694Z",
            "authorizationUrl": "https://api-openfinance.opb.bricks.demo.fsapps.io/orgs/bricks/auth?client_id=CSYrcp9dzeRdUWbuXLFiF&request_uri=urn%3Aietf%3Aparams%3Aoauth%3Arequest_uri%3Ar9QofLCoK56Ho_riONaOu",
            "ofConsentId": "692866250a5c83dde37661b1",
            "journeySession": {
                "journeyId": "6927467b7220f7158cb60b3f",
                "paymentInitiationData": {
                    "creditors": [
                        {
                            "name": "João Silva",
                            "cpfCnpj": "12345678909",
                            "personType": "PESSOA_NATURAL"
                        }
                    ],
                    "loggedUser": {
                        "document": {
                            "identification": "12345678909",
                            "rel": "CPF"
                        }
                    },
                    "recurringConfiguration": {
                        "sweeping": {
                            "totalAllowedAmount": "10000.00",
                            "transactionLimit": "150.00",
                            "periodicLimits": {
                                "day": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "25.00"
                                },
                                "week": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "100.00"
                                },
                                "month": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "300.00"
                                },
                                "year": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "10000.00"
                                }
                            },
                            "startDateTime": "2025-11-27T16:00:00Z"
                        }
                    }
                },
                "redirectUrl": "http://localhost:8080/callback",
                "paymentInitiationApi": "SWEEPING_ACCOUNTS_V2",
                "applicationClientId": "openkeys_287f10e6-7917-4ff7-8291-e885a9e9076d",
                "applicationId": "68a482d2b3ee755e8bbdec8a",
                "tokenId": "69286611764d31dde338c146",
                "journeySessionStageId": "692866110a5c83dde37661ad",
                "status": "AUTHORISED",
                "statusHistory": [
                    {
                        "updatedAt": "2025-11-27T14:54:10.014Z",
                        "status": "PENDING"
                    },
                    {
                        "updatedAt": "2025-11-27T14:54:30.671Z",
                        "status": "AWAITING_AUTHORISATION"
                    },
                    {
                        "updatedAt": "2025-11-27T14:58:57.059Z",
                        "status": "AUTHORISED"
                    }
                ],
                "createdAt": "2025-11-27T14:54:10.014Z",
                "updatedAt": "2025-11-27T14:58:57.059Z",
                "paymentInitiationId": "692866120a5c83dde37661af",
                "id": "692866120a5c83dde37661ae",
                "token": {
                    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2OTI4NjYxMTc2NGQzMWRkZTMzOGMxNDYiLCJpc3MiOiJvcGVuLWtleXMtaXRwLXYyIiwiYXpwIjoib3BlbmtleXNfMjg3ZjEwZTYtNzkxNy00ZmY3LTgyOTEtZTg4NWE5ZTkwNzZkIiwic2NvcGUiOiJqb3VybmV5IiwiaWF0IjoxNzY0MjU1MjQ5LCJleHAiOjE3NjQyNTg5MDl9.03aI9iQTjxM6NMFxlCLCQ2_cXgJn607QLCNdtDIm9qg",
                    "createdAt": "2025-11-27T14:54:09.953Z",
                    "updatedAt": "2025-11-27T14:54:09.953Z",
                    "id": "69286611764d31dde338c146"
                }
            },
            "id": "692866120a5c83dde37661af",
            "ofConsent": {
                "paymentInitiationId": "692866120a5c83dde37661af",
                "consentId": "urn:bricks-demo:91098dc1-f3c3-42f9-9ead-ebd05e3ca3c9",
                "organization_id": "c55ceb2e-c9fb-4989-8ed1-39208d6d7951",
                "brand_id": "3a40d894-f3c2-47e3-97c2-d9a04cdac63c",
                "authorization_url": "https://api-openfinance.opb.bricks.demo.fsapps.io/orgs/bricks/auth?client_id=CSYrcp9dzeRdUWbuXLFiF&request_uri=urn%3Aietf%3Aparams%3Aoauth%3Arequest_uri%3Ar9QofLCoK56Ho_riONaOu",
                "consent_id": "urn:bricks-demo:91098dc1-f3c3-42f9-9ead-ebd05e3ca3c9",
                "code_verifier": "OvP_ZHZ7oJ28SDc_Oz4PILFjVNflK4TQADtmRfTiA5g",
                "nonce": "SsE72e6KWANm-hbLC5vHMKVotOBQNtrts1qDk2p-bU0",
                "state": "692866120a5c83dde37661af",
                "redirect_uri": "https://smartkeys-wl.celcoin.hml.fsapps.io/callback",
                "scope": "openid recurring-payments recurring-consent:urn:bricks-demo:91098dc1-f3c3-42f9-9ead-ebd05e3ca3c9",
                "consentTerm": 0,
                "consentTermUnit": "M",
                "creationDateTime": "2025-11-27T14:54:13.000Z",
                "creditors": [
                    {
                        "personType": "PESSOA_NATURAL",
                        "cpfCnpj": "12345678909",
                        "name": "João Silva"
                    }
                ],
                "events": [
                    {
                        "date": "2025-11-27T14:54:13.000Z",
                        "event": "AWAITING_AUTHORISATION"
                    },
                    {
                        "date": "2025-11-27T14:54:29.777Z",
                        "event": "REDIRECTED"
                    },
                    {
                        "date": "2025-11-27T14:58:49.431Z",
                        "event": "CODE_GENERATED"
                    },
                    {
                        "date": "2025-11-27T14:58:56.231Z",
                        "event": "AUTHORISED"
                    }
                ],
                "journey": [],
                "kind": "AUTOMATIC_PAYMENT",
                "loggedUser": {
                    "document": {
                        "identification": "12345678909",
                        "rel": "CPF"
                    }
                },
                "organizationLogo": "https://finansystech-pub.s3.sa-east-1.amazonaws.com/f_logo.svg",
                "organizationName": "Finansystech Banking Demo Auth Server",
                "ownerBrandId": "3a40d894-f3c2-47e3-97c2-d9a04cdac63c",
                "ownerId": "c55ceb2e-c9fb-4989-8ed1-39208d6d7951",
                "recurringConfiguration": {
                    "sweeping": {
                        "totalAllowedAmount": "10000.00",
                        "transactionLimit": "150.00",
                        "periodicLimits": {
                            "day": {
                                "quantityLimit": 5,
                                "transactionLimit": "25.00"
                            },
                            "week": {
                                "quantityLimit": 5,
                                "transactionLimit": "100.00"
                            },
                            "month": {
                                "quantityLimit": 5,
                                "transactionLimit": "300.00"
                            },
                            "year": {
                                "quantityLimit": 5,
                                "transactionLimit": "10000.00"
                            }
                        },
                        "startDateTime": "2025-11-27T16:00:00.000Z",
                        "useOverdraftLimit": true
                    }
                },
                "recurringConsentId": "urn:bricks-demo:91098dc1-f3c3-42f9-9ead-ebd05e3ca3c9",
                "status": "AUTHORISED",
                "statusUpdateDateTime": "2025-11-27T14:58:56.231Z",
                "transactions": [],
                "access_token": "l4VjITdFBX-27Y47IIcsEYZB56mmU3giyRG92Rvtu5x",
                "expires_at": 1764256436,
                "id_token": "eyJhbGciOiJQUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlZMdThGLXgybk9JRlp2em5RcmwwbDQ1TkdmS0Y0aFpHQ0pUNy1peTVpRWcifQ.eyJzdWIiOiI3OWI1ZjU0OTE4NjI4Y2M3ZjZhOTAwYTM4NmQxNGEwNCIsImFjciI6InVybjpicmFzaWw6b3BlbmJhbmtpbmc6bG9hMiIsIm5vbmNlIjoiU3NFNzJlNktXQU5tLWhiTEM1dkhNS1ZvdE9CUU50cnRzMXFEazJwLWJVMCIsImF0X2hhc2giOiJURXVkOWduVkNFOGNLRmxvUnVVUVN3IiwiYXVkIjoiQ1NZcmNwOWR6ZVJkVVdidVhMRmlGIiwiZXhwIjoxNzY0MjU5MTM2LCJpYXQiOjE3NjQyNTU1MzYsImlzcyI6Imh0dHBzOi8vYXBpLW9wZW5maW5hbmNlLm9wYi5icmlja3MuZGVtby5mc2FwcHMuaW8vb3Jncy9icmlja3MifQ.JvFhv5lw3-81e4P1adUSVzhZgfN3YnzytnA9cSHW3srGLs1KdmYbtaDewSaRuaOi6ZRdhF5SUSjkNLojxrlhkH3nSPu0k-qsA0z6WEf8xeO4yEcA5mgfp5UsKB7YcaAyH1hTSvQGTIe3kPDzCTu3qipYGBbFNOsqT6iqeqg2IMV4PMGsWIAl5asAzkp0qdkON3nbWh3yoQqcf_PQe2-BBogUdNuTWlb7ZIRvP2UD3mrkplm-xxTwMscDA7s-7hbzYDSKR_fS8iNw4rPb80d0PlOUnEe79VxSUQag8I1XHQrXoUsIEurgQl3Yc0z1OTugZItuy6M1CveRH3bISNRFIA",
                "refresh_token": "q9HFxmSAauTLhQKz6dFByva9BFq5dcH5sGkJNo8kv38",
                "token_type": "Bearer",
                "id": "692866250a5c83dde37661b1"
            },
            "ofPayments": [],
            "brand": {
                "AuthorisationServerId": "3a40d894-f3c2-47e3-97c2-d9a04cdac63c",
                "ApiFamilyType": {
                    "payments-pix-recurring-payments-automatic": true,
                    "payments-pix-recurring-payments": true,
                    "enrollments": true,
                    "payments-pix": true
                },
                "CustomerFriendlyDescription": "Finansystech Banking Demo Auth Server",
                "CustomerFriendlyLogoUri": "https://finansystech-pub.s3.sa-east-1.amazonaws.com/f_logo.svg",
                "CustomerFriendlyName": "Finansystech Banking Demo Auth Server",
                "Flags": {
                    "Suporta Contas PF": [
                        "Suporta Contas PF"
                    ],
                    "Suporta Contas PJ": [
                        "Suporta Contas PJ"
                    ]
                },
                "OpenIDDiscoveryDocument": "https://api-openfinance.opb.bricks.demo.fsapps.io/orgs/bricks/.well-known/openid-configuration",
                "OrganisationId": "69025584418e4eda0927453c",
                "OrganisationName": "CELCOIN INSTITUICAO DE PAGAMENTO S.A.",
                "ParentAuthorisationServerId": null,
                "id": "69025598418e4eda09274a00"
            }
        },
        {
            "brandId": "69025598418e4eda09274a00",
            "redirectUrl": "http://localhost:8080/callback",
            "data": {
                "creditors": [
                    {
                        "name": "João Silva",
                        "cpfCnpj": "12345678909",
                        "personType": "PESSOA_NATURAL"
                    }
                ],
                "loggedUser": {
                    "document": {
                        "identification": "12345678909",
                        "rel": "CPF"
                    }
                },
                "recurringConfiguration": {
                    "sweeping": {
                        "totalAllowedAmount": "10000.00",
                        "transactionLimit": "150.00",
                        "periodicLimits": {
                            "day": {
                                "quantityLimit": 5,
                                "transactionLimit": "25.00"
                            },
                            "week": {
                                "quantityLimit": 5,
                                "transactionLimit": "100.00"
                            },
                            "month": {
                                "quantityLimit": 5,
                                "transactionLimit": "300.00"
                            },
                            "year": {
                                "quantityLimit": 5,
                                "transactionLimit": "10000.00"
                            }
                        },
                        "startDateTime": "2025-11-27T16:00:00Z"
                    }
                }
            },
            "journeySessionId": "69284a8e0503bd3e61c3b8d8",
            "applicationId": "68a482d2b3ee755e8bbdec8a",
            "paymentInitiationApi": "SWEEPING_ACCOUNTS_V2",
            "tokenId": "69284a8e764d313e6124fad1",
            "createdAt": "2025-11-27T12:56:46.702Z",
            "updatedAt": "2025-11-27T12:57:00.606Z",
            "authorizationUrl": "https://api-openfinance.opb.bricks.demo.fsapps.io/orgs/bricks/auth?client_id=CSYrcp9dzeRdUWbuXLFiF&request_uri=urn%3Aietf%3Aparams%3Aoauth%3Arequest_uri%3AX5A5cBH3rPXxN1F-H8uog",
            "ofConsentId": "69284a9b0503bd3e61c3b8db",
            "journeySession": {
                "journeyId": "6927467b7220f7158cb60b3f",
                "paymentInitiationData": {
                    "creditors": [
                        {
                            "name": "João Silva",
                            "cpfCnpj": "12345678909",
                            "personType": "PESSOA_NATURAL"
                        }
                    ],
                    "loggedUser": {
                        "document": {
                            "identification": "12345678909",
                            "rel": "CPF"
                        }
                    },
                    "recurringConfiguration": {
                        "sweeping": {
                            "totalAllowedAmount": "10000.00",
                            "transactionLimit": "150.00",
                            "periodicLimits": {
                                "day": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "25.00"
                                },
                                "week": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "100.00"
                                },
                                "month": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "300.00"
                                },
                                "year": {
                                    "quantityLimit": 5,
                                    "transactionLimit": "10000.00"
                                }
                            },
                            "startDateTime": "2025-11-27T16:00:00Z"
                        }
                    }
                },
                "redirectUrl": "http://localhost:8080/callback",
                "paymentInitiationApi": "SWEEPING_ACCOUNTS_V2",
                "applicationClientId": "openkeys_287f10e6-7917-4ff7-8291-e885a9e9076d",
                "applicationId": "68a482d2b3ee755e8bbdec8a",
                "tokenId": "69284a8e764d313e6124fad1",
                "journeySessionStageId": "69284a8e0503bd3e61c3b8d7",
                "status": "AWAITING_AUTHORISATION",
                "statusHistory": [
                    {
                        "updatedAt": "2025-11-27T12:56:46.680Z",
                        "status": "PENDING"
                    },
                    {
                        "updatedAt": "2025-11-27T12:57:00.582Z",
                        "status": "AWAITING_AUTHORISATION"
                    }
                ],
                "createdAt": "2025-11-27T12:56:46.680Z",
                "updatedAt": "2025-11-27T12:57:00.583Z",
                "paymentInitiationId": "69284a8e0503bd3e61c3b8d9",
                "id": "69284a8e0503bd3e61c3b8d8",
                "token": {
                    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI2OTI4NGE4ZTc2NGQzMTNlNjEyNGZhZDEiLCJpc3MiOiJvcGVuLWtleXMtaXRwLXYyIiwiYXpwIjoib3BlbmtleXNfMjg3ZjEwZTYtNzkxNy00ZmY3LTgyOTEtZTg4NWE5ZTkwNzZkIiwic2NvcGUiOiJqb3VybmV5IiwiaWF0IjoxNzY0MjQ4MjA2LCJleHAiOjE3NjQyNTE4NjZ9.v2x0XujKmmqQhgq7uQ4JposIM8Ru5Jb3FVa6eqUlNdM",
                    "createdAt": "2025-11-27T12:56:46.621Z",
                    "updatedAt": "2025-11-27T12:56:46.621Z",
                    "id": "69284a8e764d313e6124fad1"
                }
            },
            "id": "69284a8e0503bd3e61c3b8d9",
            "ofConsent": {
                "paymentInitiationId": "69284a8e0503bd3e61c3b8d9",
                "consentId": "urn:bricks-demo:fd438e60-f2c3-4686-ae39-7873e9ce9b5e",
                "organization_id": "c55ceb2e-c9fb-4989-8ed1-39208d6d7951",
                "brand_id": "3a40d894-f3c2-47e3-97c2-d9a04cdac63c",
                "authorization_url": "https://api-openfinance.opb.bricks.demo.fsapps.io/orgs/bricks/auth?client_id=CSYrcp9dzeRdUWbuXLFiF&request_uri=urn%3Aietf%3Aparams%3Aoauth%3Arequest_uri%3AX5A5cBH3rPXxN1F-H8uog",
                "consent_id": "urn:bricks-demo:fd438e60-f2c3-4686-ae39-7873e9ce9b5e",
                "code_verifier": "pM5u640pw5wEbCECBvP0eNxYHeu2hlWtm9qtd9UwIAk",
                "nonce": "R9HayK5iC5nrbqJa_71jdoSOo1xdjKfP7fVHYuQK1xo",
                "state": "69284a8e0503bd3e61c3b8d9",
                "redirect_uri": "https://smartkeys-wl.celcoin.hml.fsapps.io/callback",
                "scope": "openid recurring-consent:urn:bricks-demo:fd438e60-f2c3-4686-ae39-7873e9ce9b5e recurring-payments",
                "consentTerm": 0,
                "consentTermUnit": "M",
                "creationDateTime": "2025-11-27T12:56:54.000Z",
                "creditors": [
                    {
                        "personType": "PESSOA_NATURAL",
                        "cpfCnpj": "12345678909",
                        "name": "João Silva"
                    }
                ],
                "events": [
                    {
                        "date": "2025-11-27T12:56:54.000Z",
                        "event": "AWAITING_AUTHORISATION"
                    },
                    {
                        "date": "2025-11-27T12:56:59.736Z",
                        "event": "REDIRECTED"
                    }
                ],
                "journey": [],
                "kind": "AUTOMATIC_PAYMENT",
                "loggedUser": {
                    "document": {
                        "identification": "12345678909",
                        "rel": "CPF"
                    }
                },
                "organizationLogo": "https://finansystech-pub.s3.sa-east-1.amazonaws.com/f_logo.svg",
                "organizationName": "Finansystech Banking Demo Auth Server",
                "ownerBrandId": "3a40d894-f3c2-47e3-97c2-d9a04cdac63c",
                "ownerId": "c55ceb2e-c9fb-4989-8ed1-39208d6d7951",
                "recurringConfiguration": {
                    "sweeping": {
                        "totalAllowedAmount": "10000.00",
                        "transactionLimit": "150.00",
                        "periodicLimits": {
                            "day": {
                                "quantityLimit": 5,
                                "transactionLimit": "25.00"
                            },
                            "week": {
                                "quantityLimit": 5,
                                "transactionLimit": "100.00"
                            },
                            "month": {
                                "quantityLimit": 5,
                                "transactionLimit": "300.00"
                            },
                            "year": {
                                "quantityLimit": 5,
                                "transactionLimit": "10000.00"
                            }
                        },
                        "startDateTime": "2025-11-27T16:00:00.000Z",
                        "useOverdraftLimit": true
                    }
                },
                "recurringConsentId": "urn:bricks-demo:fd438e60-f2c3-4686-ae39-7873e9ce9b5e",
                "status": "AWAITING_AUTHORISATION",
                "statusUpdateDateTime": "2025-11-27T12:56:54.000Z",
                "transactions": [],
                "id": "69284a9b0503bd3e61c3b8db"
            },
            "brand": {
                "AuthorisationServerId": "3a40d894-f3c2-47e3-97c2-d9a04cdac63c",
                "ApiFamilyType": {
                    "payments-pix-recurring-payments-automatic": true,
                    "payments-pix-recurring-payments": true,
                    "enrollments": true,
                    "payments-pix": true
                },
                "CustomerFriendlyDescription": "Finansystech Banking Demo Auth Server",
                "CustomerFriendlyLogoUri": "https://finansystech-pub.s3.sa-east-1.amazonaws.com/f_logo.svg",
                "CustomerFriendlyName": "Finansystech Banking Demo Auth Server",
                "Flags": {
                    "Suporta Contas PF": [
                        "Suporta Contas PF"
                    ],
                    "Suporta Contas PJ": [
                        "Suporta Contas PJ"
                    ]
                },
                "OpenIDDiscoveryDocument": "https://api-openfinance.opb.bricks.demo.fsapps.io/orgs/bricks/.well-known/openid-configuration",
                "OrganisationId": "69025584418e4eda0927453c",
                "OrganisationName": "CELCOIN INSTITUICAO DE PAGAMENTO S.A.",
                "ParentAuthorisationServerId": null,
                "id": "69025598418e4eda09274a00"
            },
            "ofPayments": []
        }
    ],
    "meta": {
        "total": 3,
        "page": 1,
        "pageSize": 10,
        "totalPages": 1
    }
}

Erros Comuns

401 Unauthorized

{
    "error": "Unauthorized",
    "message": "Token inválido ou expirado"
}

Solução: Verifique se o token de acesso é válido e possui as permissões necessárias (journey ou app).