BrotasPay — Referência da API

Postman collection → OpenAPI spec →

Introduction

API REST do BrotasPay: carteira digital de pagamento com Pix, TED, boleto, cartões, onboarding PF/PJ e integrações.

Esta é a referência completa da API pública do BrotasPay — carteira digital de pagamento brasileira (CNPJ 46.186.761/0001-80). Use-a para integrar sua aplicação à nossa infraestrutura de pagamentos: Pix, TED, boleto, cartões, onboarding PF/PJ e mais.

Navegue pelos endpoints no menu lateral esquerdo. Em cada endpoint você encontra exemplos de requisição em cURL e JavaScript, o corpo JSON esperado e as possíveis respostas. Use o botão Send Request 💥 pra testar direto no navegador.

Autenticação: todas as requisições protegidas usam Bearer Token via Laravel Sanctum — obtenha seu token em POST /api/v1/auth/login e envie no header Authorization: Bearer <token>.

Base URL: https://api.brotaspay.com.br Versão atual: v1 Formato: JSON (UTF-8)

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {SEU_TOKEN}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

Obtenha seu token fazendo login em POST /api/v1/auth/login (portal) ou POST /api/v1/admin/auth/login (admin). Envie o token no header Authorization: Bearer <token>.

Admin · 2FA

Setup e gerenciamento de 2FA (TOTP) para admins.

Status do 2FA do admin atual.

GET
https://api.brotaspay.com.br
/api/v1/admin/2fa/status
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/2fa/status" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Gera um novo secret e devolve o otpauth URL para o app autenticador.

POST
https://api.brotaspay.com.br
/api/v1/admin/2fa/setup
requires authentication

Não persiste como ativo enquanto enable() não validar um código.

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/2fa/setup" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Ativa o 2FA validando um código TOTP gerado pelo app autenticador.

POST
https://api.brotaspay.com.br
/api/v1/admin/2fa/enable
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/2fa/enable" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"bngzmi\"
}"

Desativa o 2FA exigindo senha + código TOTP atual.

POST
https://api.brotaspay.com.br
/api/v1/admin/2fa/disable
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/2fa/disable" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"|]|{+-\",
    \"code\": \"vdljni\"
}"

Admin · AML/PLD

Alertas e regras de prevenção à lavagem de dinheiro.

Lista paginada de alertas com filtros.

GET
https://api.brotaspay.com.br
/api/v1/admin/aml/alerts
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/aml/alerts" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"rule_code\": \"b\",
    \"user_id\": 16,
    \"start_date\": \"2026-06-27T15:12:23\",
    \"end_date\": \"2026-06-27T15:12:23\",
    \"per_page\": 22,
    \"page\": 67
}"
Example response:

GET api/v1/admin/aml/alerts/{id}

GET
https://api.brotaspay.com.br
/api/v1/admin/aml/alerts/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the alert.

Example:
architecto
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/aml/alerts/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Atualiza status do alerta (revisão pelo admin).

PATCH
https://api.brotaspay.com.br
/api/v1/admin/aml/alerts/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the alert.

Example:
architecto

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/aml/alerts/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"architecto\",
    \"review_notes\": \"n\"
}"

GET api/v1/admin/aml/rules

GET
https://api.brotaspay.com.br
/api/v1/admin/aml/rules
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/aml/rules" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

PATCH api/v1/admin/aml/rules/{id}

PATCH
https://api.brotaspay.com.br
/api/v1/admin/aml/rules/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the rule.

Example:
architecto

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/aml/rules/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"enabled\": false
}"

Dispara um scan manual.

POST
https://api.brotaspay.com.br
/api/v1/admin/aml/scan
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/aml/scan" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"days\": 1
}"

Admin · Audit Log

Trilha de auditoria de ações destrutivas/sensíveis do admin.

GET api/v1/admin/audit

GET
https://api.brotaspay.com.br
/api/v1/admin/audit
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/audit" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"action\": \"b\",
    \"resource_type\": \"n\",
    \"admin_user_id\": 16,
    \"start_date\": \"2026-06-27T15:12:23\",
    \"end_date\": \"2026-06-27T15:12:23\",
    \"per_page\": 22,
    \"page\": 67,
    \"q\": \"z\"
}"
Example response:

GET api/v1/admin/audit/actions

GET
https://api.brotaspay.com.br
/api/v1/admin/audit/actions
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/audit/actions" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Admin · Billing & MRR

KPIs financeiros baseados em account_plan_assignments (sombra local que vai sendo populada conforme changeUserPlan é chamado).

GET api/v1/admin/billing/overview

GET
https://api.brotaspay.com.br
/api/v1/admin/billing/overview
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/billing/overview" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/admin/billing/timeseries

GET
https://api.brotaspay.com.br
/api/v1/admin/billing/timeseries
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/billing/timeseries" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"days\": 1
}"
Example response:

Lista assignments (current + histórico) paginado.

GET
https://api.brotaspay.com.br
/api/v1/admin/billing/assignments
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/billing/assignments" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"state\": \"ended\",
    \"plan_id\": \"b\",
    \"page\": 22,
    \"per_page\": 7
}"
Example response:

Admin · Boletos

Gestão local de boletos (sombra). Inclui baixa manual e cancelamento com auditoria.

GET api/v1/admin/boletos

GET
https://api.brotaspay.com.br
/api/v1/admin/boletos
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/boletos" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"account_number\": \"b\",
    \"type\": \"n\",
    \"start_date\": \"2026-06-27T15:12:23\",
    \"end_date\": \"2026-06-27T15:12:23\",
    \"q\": \"g\",
    \"page\": 66,
    \"per_page\": 17
}"
Example response:

GET api/v1/admin/boletos/{id}

GET
https://api.brotaspay.com.br
/api/v1/admin/boletos/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the boleto.

Example:
architecto
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/boletos/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

PATCH api/v1/admin/boletos/{id}/status

PATCH
https://api.brotaspay.com.br
/api/v1/admin/boletos/{id}/status
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the boleto.

Example:
architecto

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/boletos/architecto/status" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"architecto\",
    \"reason\": \"n\"
}"

Admin · Exportações

Streaming de CSV para os principais recursos. Não carrega tudo em memória — usa cursor() do Laravel.

GET api/v1/admin/export/manifest

GET
https://api.brotaspay.com.br
/api/v1/admin/export/manifest
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/export/manifest" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/admin/export/{resource}

GET
https://api.brotaspay.com.br
/api/v1/admin/export/{resource}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

resource
string
required
Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/export/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27T15:12:23\",
    \"end_date\": \"2026-06-27T15:12:23\",
    \"limit\": 1
}"
Example response:

Admin · Growth & Retenção

Métricas de produto: funil de ativação, churn, coortes e NPS. Todos os endpoints exigem autenticação admin (Bearer token).

Visão consolidada

GET
https://api.brotaspay.com.br
/api/v1/admin/growth/overview
requires authentication

Atalho que retorna funil + churn + NPS + coortes na mesma chamada para alimentar um dashboard único.

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/growth/overview" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27\",
    \"end_date\": \"2052-07-20\",
    \"survey_tag\": \"n\",
    \"inactivity_days\": 7,
    \"window_days\": 16,
    \"months_back\": 21
}"
Example response:

Funil de ativação

GET
https://api.brotaspay.com.br
/api/v1/admin/growth/funnel
requires authentication

Retorna a contagem de usuários em cada etapa do funil (cadastro → KYC → conta ativa → primeiro depósito → primeira transação enviada).

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

start_date
string

date Data inicial (Y-m-d). Default: 30 dias atrás.

Example:
architecto
end_date
string

date Data final (Y-m-d). Default: hoje.

Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/growth/funnel?start_date=architecto&end_date=architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27\",
    \"end_date\": \"2052-07-20\",
    \"survey_tag\": \"n\",
    \"inactivity_days\": 7,
    \"window_days\": 16,
    \"months_back\": 21
}"
Example response:

Churn e retenção

GET
https://api.brotaspay.com.br
/api/v1/admin/growth/churn
requires authentication

Compara usuários ativos (com transação) na janela atual vs. janela anterior para identificar perda e retenção de base ativa.

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

inactivity_days
integer

Dias de inatividade que definem churn. Default: 30.

Example:
16
window_days
integer

Tamanho da janela de comparação. Default: 90.

Example:
16

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/growth/churn?inactivity_days=16&window_days=16" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27\",
    \"end_date\": \"2052-07-20\",
    \"survey_tag\": \"n\",
    \"inactivity_days\": 7,
    \"window_days\": 16,
    \"months_back\": 21
}"
Example response:

Coortes de retenção semanal

GET
https://api.brotaspay.com.br
/api/v1/admin/growth/cohorts
requires authentication

Agrupa usuários pelo mês de cadastro e mostra a retenção semana a semana (% que voltou a transacionar em cada uma das 8 semanas seguintes).

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

months_back
integer

Quantos meses retroceder. Default: 6.

Example:
16

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/growth/cohorts?months_back=16" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27\",
    \"end_date\": \"2052-07-20\",
    \"survey_tag\": \"n\",
    \"inactivity_days\": 7,
    \"window_days\": 16,
    \"months_back\": 21
}"
Example response:

NPS — Net Promoter Score

GET
https://api.brotaspay.com.br
/api/v1/admin/growth/nps
requires authentication

Score = %promotores (9-10) − %detratores (0-6). Lista também os 10 comentários mais recentes.

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

start_date
string

date Y-m-d.

Example:
architecto
end_date
string

date Y-m-d.

Example:
architecto
survey_tag
string

Filtra por tag da pesquisa (ex: post_onboarding).

Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/growth/nps?start_date=architecto&end_date=architecto&survey_tag=architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27\",
    \"end_date\": \"2052-07-20\",
    \"survey_tag\": \"n\",
    \"inactivity_days\": 7,
    \"window_days\": 16,
    \"months_back\": 21
}"
Example response:

Lista de respostas NPS

GET
https://api.brotaspay.com.br
/api/v1/admin/growth/nps/responses
requires authentication

Lista paginada de respostas NPS individuais para análise qualitativa.

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/growth/nps/responses" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27\",
    \"end_date\": \"2052-07-20\",
    \"survey_tag\": \"n\",
    \"inactivity_days\": 7,
    \"window_days\": 16,
    \"months_back\": 21
}"
Example response:

Admin · Observabilidade

Health do sistema: jobs, filas, webhooks recebidos/processados, falhas recentes.

GET api/v1/admin/observability/overview

GET
https://api.brotaspay.com.br
/api/v1/admin/observability/overview
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/observability/overview" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/admin/observability/jobs/failed

GET
https://api.brotaspay.com.br
/api/v1/admin/observability/jobs/failed
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/observability/jobs/failed" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"queue\": \"b\",
    \"page\": 22,
    \"per_page\": 7
}"
Example response:

POST api/v1/admin/observability/jobs/failed/retry-all

POST
https://api.brotaspay.com.br
/api/v1/admin/observability/jobs/failed/retry-all
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/observability/jobs/failed/retry-all" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

POST api/v1/admin/observability/jobs/failed/{uuid}/retry

POST
https://api.brotaspay.com.br
/api/v1/admin/observability/jobs/failed/{uuid}/retry
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

uuid
string
required
Example:
6ff8f7f6-1eb3-3525-be4a-3932c805afed
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/observability/jobs/failed/6ff8f7f6-1eb3-3525-be4a-3932c805afed/retry" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

DELETE api/v1/admin/observability/jobs/failed/{uuid}

DELETE
https://api.brotaspay.com.br
/api/v1/admin/observability/jobs/failed/{uuid}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

uuid
string
required
Example:
6ff8f7f6-1eb3-3525-be4a-3932c805afed
Example request:
curl --request DELETE \
    "https://api.brotaspay.com.br/api/v1/admin/observability/jobs/failed/6ff8f7f6-1eb3-3525-be4a-3932c805afed" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Série temporal diária (N dias) de webhooks: received vs forwarded vs failed deliveries.

GET
https://api.brotaspay.com.br
/api/v1/admin/observability/webhooks/timeseries
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/observability/webhooks/timeseries" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"days\": 1
}"
Example response:

Admin · Offboarding

Encerramentos de conta: visualiza evidências, registra fechamento legal final.

Fluxo:

  1. Conta é encerrada operacionalmente (closed_at gravado por AccountController::close)
  2. Time legal/compliance revisa as evidências e marca legally_closed_at

GET api/v1/admin/offboarding

GET
https://api.brotaspay.com.br
/api/v1/admin/offboarding
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/offboarding" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"state\": \"all\",
    \"q\": \"b\",
    \"start_date\": \"2026-06-27T15:12:23\",
    \"end_date\": \"2026-06-27T15:12:23\",
    \"page\": 22,
    \"per_page\": 7
}"
Example response:

GET api/v1/admin/offboarding/{id}

GET
https://api.brotaspay.com.br
/api/v1/admin/offboarding/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the offboarding.

Example:
architecto
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/offboarding/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/admin/offboarding/{id}/close-legally

POST
https://api.brotaspay.com.br
/api/v1/admin/offboarding/{id}/close-legally
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the offboarding.

Example:
architecto

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/offboarding/architecto/close-legally" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"legal_notes\": \"b\",
    \"force\": true
}"

POST api/v1/admin/offboarding/{id}/notes

POST
https://api.brotaspay.com.br
/api/v1/admin/offboarding/{id}/notes
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the offboarding.

Example:
architecto

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/offboarding/architecto/notes" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"note\": \"b\"
}"

Admin · Papéis & Permissões

GET api/v1/admin/roles

GET
https://api.brotaspay.com.br
/api/v1/admin/roles
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/roles" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/admin/roles

POST
https://api.brotaspay.com.br
/api/v1/admin/roles
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/roles" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"b\",
    \"name\": \"n\",
    \"description\": \"Animi quos velit et fugiat.\"
}"

PATCH api/v1/admin/roles/{id}

PATCH
https://api.brotaspay.com.br
/api/v1/admin/roles/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the role.

Example:
architecto

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/roles/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"description\": \"Et animi quos velit et fugiat.\"
}"

DELETE api/v1/admin/roles/{id}

DELETE
https://api.brotaspay.com.br
/api/v1/admin/roles/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the role.

Example:
architecto
Example request:
curl --request DELETE \
    "https://api.brotaspay.com.br/api/v1/admin/roles/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Sincroniza papéis de um admin (substitui o set).

PUT
https://api.brotaspay.com.br
/api/v1/admin/users/{userId}/roles
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

userId
integer
required
Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://api.brotaspay.com.br/api/v1/admin/users/1/roles" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"role_ids\": [
        16
    ]
}"

Admin · Reconciliação

Histórico de reconciliações (consulta de webhooks falhados no core e reprocesso local) e disparo manual.

GET api/v1/admin/reconcile

GET
https://api.brotaspay.com.br
/api/v1/admin/reconcile
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/reconcile" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"running\",
    \"page\": 16,
    \"per_page\": 22
}"
Example response:

GET api/v1/admin/reconcile/{id}

GET
https://api.brotaspay.com.br
/api/v1/admin/reconcile/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the reconcile.

Example:
architecto
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/reconcile/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Dispara `php artisan webhooks:reconcile --days=N [--dry-run]`.

POST
https://api.brotaspay.com.br
/api/v1/admin/reconcile/run
requires authentication

Síncrono — fica rodando até terminar.

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/reconcile/run" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"days\": 1,
    \"dry_run\": false
}"

Admin · Search

Busca global (Cmd+K) — retorna resultados unificados de users, accounts, transactions e cards.

GET
https://api.brotaspay.com.br
/api/v1/admin/search
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/search" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"q\": \"b\"
}"
Example response:

Admin · Stats

Estatísticas agregadas para o dashboard administrativo.

Série temporal diária (transações + cadastros) nos últimos N dias.

GET
https://api.brotaspay.com.br
/api/v1/admin/stats/timeseries
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

days
integer

Janela em dias (1-365). Default: 30.

Example:
16
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/stats/timeseries?days=16" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Distribuições por categoria.

GET
https://api.brotaspay.com.br
/api/v1/admin/stats/distribution
requires authentication

Retorna contagens agregadas para uso em gráficos de barra/pizza:

  • Transações por event_name (top 10)
  • Contas por status
  • Usuários por type_account

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/stats/distribution" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Endpoints

GET api/v1/user

GET
https://api.brotaspay.com.br
/api/v1/user
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/user" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/auth/register

POST
https://api.brotaspay.com.br
/api/v1/auth/register
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/register" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\",
    \"document\": \"iyvdljnikhwaykcm\",
    \"phone\": \"yuwpwlvqwrsitcps\",
    \"password\": \"a:x&S$hSn7L\'\",
    \"commercial_name\": \"v\",
    \"responsible_name\": \"l\",
    \"responsible_document\": \"xjklqppwqbewtn\",
    \"responsible_birth_date\": \"27\\/06\\/2026\",
    \"responsible_phone\": \"noqitpxntltcvipo\",
    \"bank\": {
        \"code\": \"j\",
        \"account_type\": \"PP\",
        \"agency\": \"sausgi\",
        \"agency_digit\": \"og\",
        \"account\": \"lrbchgsrzyhcttwb\",
        \"account_digit\": \"km\"
    },
    \"address\": {
        \"zip_code\": \"kftmgos\",
        \"street\": \"g\",
        \"number\": \"tvnbobmzezcrcval\",
        \"district\": \"e\",
        \"city\": \"x\",
        \"state\": \"qz\"
    }
}"

POST api/v1/auth/local-login

POST
https://api.brotaspay.com.br
/api/v1/auth/local-login
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/local-login" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"login\": \"architecto\",
    \"password\": \"|]|{+-\"
}"

POST api/v1/auth/login

POST
https://api.brotaspay.com.br
/api/v1/auth/login
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/login" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"document\": \"architecto\",
    \"password\": \"|]|{+-\",
    \"account_number\": \"architecto\"
}"

POST api/v1/auth/verify-2fa

POST
https://api.brotaspay.com.br
/api/v1/auth/verify-2fa
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/verify-2fa" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"two_factor_token\": \"architecto\",
    \"code\": \"ngzmiy\"
}"

POST api/v1/auth/forgot-password

POST
https://api.brotaspay.com.br
/api/v1/auth/forgot-password
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/forgot-password" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"cpf\": \"architecto\",
    \"login\": \"architecto\"
}"

POST api/v1/auth/reset-password

POST
https://api.brotaspay.com.br
/api/v1/auth/reset-password
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/reset-password" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"cpf\": \"architecto\",
    \"login\": \"architecto\",
    \"token\": \"architecto\",
    \"new_password\": \"ngzmiyvdljnikhwaykcmyuwpwl\"
}"

POST api/v1/auth/logout

POST
https://api.brotaspay.com.br
/api/v1/auth/logout
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/logout" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

POST api/v1/auth/2fa/enable

POST
https://api.brotaspay.com.br
/api/v1/auth/2fa/enable
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/2fa/enable" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"gbailey@example.net\",
    \"password\": \"|]|{+-\"
}"

POST api/v1/auth/2fa/confirm

POST
https://api.brotaspay.com.br
/api/v1/auth/2fa/confirm
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/2fa/confirm" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"verification_token\": \"architecto\",
    \"code\": \"ngzmiy\"
}"

POST api/v1/auth/2fa/disable

POST
https://api.brotaspay.com.br
/api/v1/auth/2fa/disable
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/auth/2fa/disable" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"|]|{+-\"
}"

GET api/v1/auth/2fa/status

GET
https://api.brotaspay.com.br
/api/v1/auth/2fa/status
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/auth/2fa/status" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/auth/login-history

GET
https://api.brotaspay.com.br
/api/v1/auth/login-history
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/auth/login-history" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Status da conta de recebimento + dados bancários.

GET
https://api.brotaspay.com.br
/api/v1/portal/safe2pay/me
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/portal/safe2pay/me" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Saldo da carteira da subconta (disponível/em trânsito).

GET
https://api.brotaspay.com.br
/api/v1/portal/safe2pay/balance
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/portal/safe2pay/balance" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Extrato/repasses da subconta.

GET
https://api.brotaspay.com.br
/api/v1/portal/safe2pay/statement
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/portal/safe2pay/statement" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Cria uma cobrança PIX (recebimento) na subconta do cliente.

POST
https://api.brotaspay.com.br
/api/v1/portal/safe2pay/charges/pix
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/portal/safe2pay/charges/pix" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 27,
    \"description\": \"Et animi quos velit et fugiat.\",
    \"reference\": \"d\",
    \"expiration\": 89,
    \"customer\": {
        \"name\": \"j\",
        \"document\": \"nikhwaykcmyuwpwl\",
        \"email\": \"wleuschke@example.net\"
    }
}"

Cria um boleto na subconta do cliente.

POST
https://api.brotaspay.com.br
/api/v1/portal/safe2pay/charges/boleto
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/portal/safe2pay/charges/boleto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 27,
    \"due_date\": \"27\\/06\\/2026\",
    \"description\": \"Et animi quos velit et fugiat.\",
    \"reference\": \"d\",
    \"customer\": {
        \"name\": \"l\",
        \"document\": \"jnikhwaykcmyuwpw\",
        \"email\": \"emelie.baumbach@example.net\"
    }
}"

POST api/v1/pix/qrcode/static

POST
https://api.brotaspay.com.br
/api/v1/pix/qrcode/static
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/pix/qrcode/static" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 27,
    \"conciliation_id\": \"n\",
    \"recipient_name\": \"architecto\",
    \"addressing_key\": {
        \"type\": \"architecto\",
        \"value\": \"architecto\"
    },
    \"location\": {
        \"city\": \"architecto\",
        \"zip_code\": \"architecto\"
    }
}"

POST api/v1/pix/qrcode/dynamic

POST
https://api.brotaspay.com.br
/api/v1/pix/qrcode/dynamic
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/pix/qrcode/dynamic" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"addressing_key\": {
        \"type\": \"architecto\",
        \"value\": \"architecto\"
    },
    \"conciliation_id\": \"n\",
    \"single_payment\": true,
    \"amount\": 84,
    \"change_amount_type\": \"NOT_ALLOWED\",
    \"recipient_name\": \"architecto\",
    \"expires_at\": \"2026-06-27T15:12:22\",
    \"payer\": {
        \"name\": \"architecto\",
        \"document_number\": \"architecto\",
        \"type\": \"CUSTOMER\",
        \"address\": {
            \"city\": \"architecto\",
            \"state\": \"architecto\",
            \"zip_code\": \"architecto\",
            \"address_line\": \"architecto\",
            \"neighborhood\": \"architecto\"
        }
    }
}"

GET api/v1/plan

GET
https://api.brotaspay.com.br
/api/v1/plan
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/plan" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/notifications

GET
https://api.brotaspay.com.br
/api/v1/notifications
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/notifications" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/notifications/unread-count

GET
https://api.brotaspay.com.br
/api/v1/notifications/unread-count
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/notifications/unread-count" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

PATCH api/v1/notifications/{id}/read

PATCH
https://api.brotaspay.com.br
/api/v1/notifications/{id}/read
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the notification.

Example:
architecto
Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/notifications/architecto/read" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

POST api/v1/notifications/read-all

POST
https://api.brotaspay.com.br
/api/v1/notifications/read-all
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/notifications/read-all" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Retorna o código de indicação do usuário atual (gera se ainda não tem) + estatísticas (total convidados, convertidos).

GET
https://api.brotaspay.com.br
/api/v1/referral
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/referral" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Aplica um código de indicação ao usuário atual.

POST
https://api.brotaspay.com.br
/api/v1/referral/apply
requires authentication

Só funciona se ainda não foi indicado e o código não é o dele mesmo.

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/referral/apply" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"code\": \"bngzmiyvdljnikhw\"
}"

GET api/v1/integration

GET
https://api.brotaspay.com.br
/api/v1/integration
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/integration" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/integration/activate

POST
https://api.brotaspay.com.br
/api/v1/integration/activate
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/integration/activate" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"|]|{+-\"
}"

PATCH api/v1/integration

PATCH
https://api.brotaspay.com.br
/api/v1/integration
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/integration" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"webhook_url\": \"http:\\/\\/www.bailey.biz\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\"
}"

PATCH api/v1/integration/password

PATCH
https://api.brotaspay.com.br
/api/v1/integration/password
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/integration/password" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"password\": \"|]|{+-\"
}"

POST api/v1/integration/rotate-key

POST
https://api.brotaspay.com.br
/api/v1/integration/rotate-key
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/integration/rotate-key" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

DELETE api/v1/integration

DELETE
https://api.brotaspay.com.br
/api/v1/integration
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request DELETE \
    "https://api.brotaspay.com.br/api/v1/integration" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

GET api/v1/integration/webhooks

GET
https://api.brotaspay.com.br
/api/v1/integration/webhooks
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/integration/webhooks" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/integration/webhooks/{id}/retry

POST
https://api.brotaspay.com.br
/api/v1/integration/webhooks/{id}/retry
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the webhook.

Example:
architecto
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/integration/webhooks/architecto/retry" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

POST api/v1/payments/card

POST
https://api.brotaspay.com.br
/api/v1/payments/card
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/payments/card" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 27,
    \"reference\": \"n\",
    \"description\": \"Animi quos velit et fugiat.\",
    \"installments\": 8,
    \"card_token\": \"architecto\",
    \"card\": {
        \"holder\": \"architecto\",
        \"number\": \"architecto\",
        \"expiration\": \"architecto\",
        \"cvv\": \"architecto\"
    },
    \"customer\": {
        \"name\": \"architecto\",
        \"document\": \"architecto\",
        \"email\": \"zbailey@example.net\",
        \"phone\": \"architecto\"
    }
}"

POST api/v1/payments/card/tokenize

POST
https://api.brotaspay.com.br
/api/v1/payments/card/tokenize
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/payments/card/tokenize" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"card\": {
        \"holder\": \"architecto\",
        \"number\": \"architecto\",
        \"expiration\": \"architecto\",
        \"cvv\": \"architecto\"
    }
}"

GET api/v1/banks

GET
https://api.brotaspay.com.br
/api/v1/banks
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/banks" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product\": \"accountPortability\"
}"
Example response:

POST api/v1/boletos

POST
https://api.brotaspay.com.br
/api/v1/boletos
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/boletos" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"alias\": \"b\",
    \"account_number\": \"architecto\",
    \"account_branch\": \"architecto\",
    \"document_number\": \"ngzmiyvdljnikh\",
    \"amount\": 87,
    \"due_date\": \"2026-06-27\",
    \"close_payment\": \"2026-06-27\",
    \"type\": \"Deposit\",
    \"payer\": {
        \"document\": \"aykcmyuwpwlvqw\",
        \"name\": \"r\",
        \"trade_name\": \"s\",
        \"address\": {
            \"zip_code\": \"itcpscql\",
            \"address_line\": \"d\",
            \"number\": \"zsnrwtujwvlxjklq\",
            \"neighborhood\": \"p\",
            \"city\": \"p\",
            \"state\": \"wq\"
        }
    },
    \"interest\": {
        \"start_date\": \"2026-06-27\",
        \"value\": 4,
        \"type\": \"FixedAmount\"
    },
    \"fine\": {
        \"start_date\": \"2026-06-27\",
        \"value\": 25,
        \"type\": \"FixedAmount\"
    },
    \"discount\": {
        \"limit_date\": \"2026-06-27\",
        \"value\": 9,
        \"type\": \"FixedPercentUntilLimitDate\"
    }
}"

GET api/v1/boletos

GET
https://api.brotaspay.com.br
/api/v1/boletos
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/boletos" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27\",
    \"end_date\": \"2026-06-27\",
    \"page\": 16,
    \"per_page\": 22,
    \"order_column\": \"createdAt\",
    \"order_direction\": \"ASC\",
    \"payer_name\": \"g\"
}"
Example response:

GET api/v1/boletos/{authCode}

GET
https://api.brotaspay.com.br
/api/v1/boletos/{authCode}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

authCode
string
required
Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/boletos/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"account_branch\": \"architecto\",
    \"account_number\": \"architecto\"
}"
Example response:

GET api/v1/boletos/{authCode}/print

GET
https://api.brotaspay.com.br
/api/v1/boletos/{authCode}/print
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

authCode
string
required
Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/boletos/architecto/print" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"account_branch\": \"architecto\",
    \"account_number\": \"architecto\"
}"
Example response:

DELETE api/v1/boletos

DELETE
https://api.brotaspay.com.br
/api/v1/boletos
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request DELETE \
    "https://api.brotaspay.com.br/api/v1/boletos" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"authentication_code\": \"architecto\",
    \"account_number\": \"architecto\",
    \"account_branch\": \"architecto\"
}"

POST api/v1/webhooks/safe2pay/{integration}/{sig}

POST
https://api.brotaspay.com.br
/api/v1/webhooks/safe2pay/{integration}/{sig}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

integration
string
required
Example:
564
sig
string
required
Example:
architecto
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/webhooks/safe2pay/564/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

GET api/v1/external/me

GET
https://api.brotaspay.com.br
/api/v1/external/me
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/me" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/external/plan

GET
https://api.brotaspay.com.br
/api/v1/external/plan
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/plan" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Status da subconta + dados bancários do recebedor.

GET
https://api.brotaspay.com.br
/api/v1/external/safe2pay/me
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/safe2pay/me" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Saldo da carteira da subconta (disponível/em trânsito/previsto).

GET
https://api.brotaspay.com.br
/api/v1/external/safe2pay/balance
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/safe2pay/balance" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Extrato/repasses da subconta (mês/ano opcionais).

GET
https://api.brotaspay.com.br
/api/v1/external/safe2pay/statement
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/safe2pay/statement" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Consulta uma transação por id (conciliação/sync).

GET
https://api.brotaspay.com.br
/api/v1/external/safe2pay/transactions/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the transaction.

Example:
architecto
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/safe2pay/transactions/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Consulta uma transação pelo Reference (conciliation_id do consumidor).

GET
https://api.brotaspay.com.br
/api/v1/external/safe2pay/by-reference/{reference}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

reference
string
required
Example:
architecto
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/safe2pay/by-reference/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/external/pix/qrcode/static

POST
https://api.brotaspay.com.br
/api/v1/external/pix/qrcode/static
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/external/pix/qrcode/static" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 27,
    \"conciliation_id\": \"n\",
    \"recipient_name\": \"architecto\",
    \"addressing_key\": {
        \"type\": \"architecto\",
        \"value\": \"architecto\"
    },
    \"location\": {
        \"city\": \"architecto\",
        \"zip_code\": \"architecto\"
    }
}"

POST api/v1/external/pix/qrcode/dynamic

POST
https://api.brotaspay.com.br
/api/v1/external/pix/qrcode/dynamic
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/external/pix/qrcode/dynamic" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"addressing_key\": {
        \"type\": \"architecto\",
        \"value\": \"architecto\"
    },
    \"conciliation_id\": \"n\",
    \"single_payment\": false,
    \"amount\": 84,
    \"change_amount_type\": \"ALLOWED\",
    \"recipient_name\": \"architecto\",
    \"expires_at\": \"2026-06-27T15:12:22\",
    \"payer\": {
        \"name\": \"architecto\",
        \"document_number\": \"architecto\",
        \"type\": \"CUSTOMER\",
        \"address\": {
            \"city\": \"architecto\",
            \"state\": \"architecto\",
            \"zip_code\": \"architecto\",
            \"address_line\": \"architecto\",
            \"neighborhood\": \"architecto\"
        }
    }
}"

GET api/v1/external/banks

GET
https://api.brotaspay.com.br
/api/v1/external/banks
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/banks" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"product\": \"TED\"
}"
Example response:

POST api/v1/external/boletos

POST
https://api.brotaspay.com.br
/api/v1/external/boletos
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/external/boletos" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"alias\": \"b\",
    \"account_number\": \"architecto\",
    \"account_branch\": \"architecto\",
    \"document_number\": \"ngzmiyvdljnikh\",
    \"amount\": 87,
    \"due_date\": \"2026-06-27\",
    \"close_payment\": \"2026-06-27\",
    \"type\": \"Levy\",
    \"payer\": {
        \"document\": \"aykcmyuwpwlvqw\",
        \"name\": \"r\",
        \"trade_name\": \"s\",
        \"address\": {
            \"zip_code\": \"itcpscql\",
            \"address_line\": \"d\",
            \"number\": \"zsnrwtujwvlxjklq\",
            \"neighborhood\": \"p\",
            \"city\": \"p\",
            \"state\": \"wq\"
        }
    },
    \"interest\": {
        \"start_date\": \"2026-06-27\",
        \"value\": 4,
        \"type\": \"Percent\"
    },
    \"fine\": {
        \"start_date\": \"2026-06-27\",
        \"value\": 25,
        \"type\": \"Percent\"
    },
    \"discount\": {
        \"limit_date\": \"2026-06-27\",
        \"value\": 9,
        \"type\": \"FixedAmountUntilLimitDate\"
    }
}"

GET api/v1/external/boletos

GET
https://api.brotaspay.com.br
/api/v1/external/boletos
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/boletos" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27\",
    \"end_date\": \"2026-06-27\",
    \"page\": 16,
    \"per_page\": 22,
    \"order_column\": \"status\",
    \"order_direction\": \"ASC\",
    \"payer_name\": \"g\"
}"
Example response:

GET api/v1/external/boletos/{authCode}

GET
https://api.brotaspay.com.br
/api/v1/external/boletos/{authCode}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

authCode
string
required
Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/boletos/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"account_branch\": \"architecto\",
    \"account_number\": \"architecto\"
}"
Example response:

GET api/v1/external/boletos/{authCode}/print

GET
https://api.brotaspay.com.br
/api/v1/external/boletos/{authCode}/print
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

authCode
string
required
Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/external/boletos/architecto/print" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"account_branch\": \"architecto\",
    \"account_number\": \"architecto\"
}"
Example response:

DELETE api/v1/external/boletos

DELETE
https://api.brotaspay.com.br
/api/v1/external/boletos
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request DELETE \
    "https://api.brotaspay.com.br/api/v1/external/boletos" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"authentication_code\": \"architecto\",
    \"account_number\": \"architecto\",
    \"account_branch\": \"architecto\"
}"

POST api/v1/external/payments/card

POST
https://api.brotaspay.com.br
/api/v1/external/payments/card
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/external/payments/card" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"amount\": 27,
    \"reference\": \"n\",
    \"description\": \"Animi quos velit et fugiat.\",
    \"installments\": 8,
    \"card_token\": \"architecto\",
    \"card\": {
        \"holder\": \"architecto\",
        \"number\": \"architecto\",
        \"expiration\": \"architecto\",
        \"cvv\": \"architecto\"
    },
    \"customer\": {
        \"name\": \"architecto\",
        \"document\": \"architecto\",
        \"email\": \"zbailey@example.net\",
        \"phone\": \"architecto\"
    }
}"

POST api/v1/external/payments/card/tokenize

POST
https://api.brotaspay.com.br
/api/v1/external/payments/card/tokenize
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/external/payments/card/tokenize" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"card\": {
        \"holder\": \"architecto\",
        \"number\": \"architecto\",
        \"expiration\": \"architecto\",
        \"cvv\": \"architecto\"
    }
}"

Cash-out por TRANSFERÊNCIA BANCÁRIA — única forma de saque da Safe2Pay (não há saque por chave PIX). Mesma idempotência do pix().

POST
https://api.brotaspay.com.br
/api/v1/payouts/transfer
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/payouts/transfer" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"receiver_name\": \"b\",
    \"receiver_document\": \"ngzmiyvdljnikhwa\",
    \"amount\": 50,
    \"description\": \"Quo omnis nostrum aut adipisci.\",
    \"reference\": \"p\",
    \"compensation_date\": \"2026-06-27\",
    \"bank\": {
        \"code\": \"w\",
        \"account_type\": \"PP\",
        \"agency\": \"lvqwrs\",
        \"agency_digit\": \"it\",
        \"account\": \"cpscqldzsnrwtujw\",
        \"account_digit\": \"vl\"
    }
}"

Consulta de um payout pela referência/idempotency-key do consumidor.

GET
https://api.brotaspay.com.br
/api/v1/payouts/transfer/{reference}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

reference
string
required
Example:
architecto
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/payouts/transfer/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/payouts/pix

POST
https://api.brotaspay.com.br
/api/v1/payouts/pix
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/payouts/pix" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"pix_key\": \"b\",
    \"amount\": 39,
    \"description\": \"Animi quos velit et fugiat.\",
    \"reference\": \"d\",
    \"pix_key_type\": \"cpf\"
}"

Consulta de um payout pela referência/idempotency-key do consumidor.

GET
https://api.brotaspay.com.br
/api/v1/payouts/pix/{reference}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

reference
string
required
Example:
architecto
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/payouts/pix/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/admin/login

POST
https://api.brotaspay.com.br
/api/v1/admin/login
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/login" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"gbailey@example.net\",
    \"password\": \"|]|{+-\",
    \"totp_code\": \"vdljni\"
}"

POST api/v1/admin/logout

POST
https://api.brotaspay.com.br
/api/v1/admin/logout
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/logout" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

GET api/v1/admin/me

GET
https://api.brotaspay.com.br
/api/v1/admin/me
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/me" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/admin/transactions

GET
https://api.brotaspay.com.br
/api/v1/admin/transactions
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/transactions" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27T15:12:22\",
    \"end_date\": \"2052-07-20\",
    \"page\": 22,
    \"per_page\": 7,
    \"search\": \"z\",
    \"direction\": \"OUT\",
    \"transaction_type_code\": \"p2p\",
    \"status\": \"RETURN\",
    \"order_column\": \"createdAt\",
    \"order_direction\": \"DESC\"
}"
Example response:

GET api/v1/admin/environments

GET
https://api.brotaspay.com.br
/api/v1/admin/environments
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/environments" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/admin/environments

POST
https://api.brotaspay.com.br
/api/v1/admin/environments
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/environments" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Lista consumidores (integrações) e o ambiente em que estão.

GET
https://api.brotaspay.com.br
/api/v1/admin/environments/consumers
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/environments/consumers" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Saldo + próximos repasses (extrato) da carteira Safe2Pay do ambiente.

GET
https://api.brotaspay.com.br
/api/v1/admin/environments/{environment_id}/balance
requires authentication

Só Safe2Pay tem carteira; HiperBanco devolve "unsupported".

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

environment_id
integer
required

The ID of the environment.

Example:
1
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/environments/1/balance" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

PATCH api/v1/admin/environments/{environment_id}

PATCH
https://api.brotaspay.com.br
/api/v1/admin/environments/{environment_id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

environment_id
integer
required

The ID of the environment.

Example:
1
Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/environments/1" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Define o ambiente como padrão (usado por consumidores sem atribuição).

POST
https://api.brotaspay.com.br
/api/v1/admin/environments/{environment_id}/default
requires authentication

Garante exclusividade do flag is_default.

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

environment_id
integer
required

The ID of the environment.

Example:
1
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/environments/1/default" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Testa a conexão com o provedor usando as credenciais salvas.

POST
https://api.brotaspay.com.br
/api/v1/admin/environments/{environment_id}/test
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

environment_id
integer
required

The ID of the environment.

Example:
1
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/environments/1/test" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Atribui um consumidor a um ambiente (migração gradual por sistema).

POST
https://api.brotaspay.com.br
/api/v1/admin/integrations/{integration_id}/environment
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

integration_id
integer
required

The ID of the integration.

Example:
3

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/integrations/3/environment" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payment_environment_id\": 16
}"

Lista clientes com subconta Safe2Pay + plano de comissão atual.

GET
https://api.brotaspay.com.br
/api/v1/admin/clients
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/clients" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Status da subconta + saldo (se ativa).

GET
https://api.brotaspay.com.br
/api/v1/admin/clients/{user_id}/subaccount
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
1
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/clients/1/subaccount" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Cria/Reprovisiona a subconta do cliente.

POST
https://api.brotaspay.com.br
/api/v1/admin/clients/{user_id}/subaccount
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
1

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/clients/1/subaccount" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"commercial_name\": \"n\",
    \"document\": \"gzmiyvdljnikhway\",
    \"responsible_name\": \"k\",
    \"responsible_document\": \"cmyuwpwlvqwrsi\",
    \"responsible_birth_date\": \"27\\/06\\/2026\",
    \"responsible_phone\": \"tcpscqldzsnrwtuj\",
    \"email\": \"schultz.audrey@example.org\",
    \"bank\": {
        \"code\": \"k\",
        \"account_type\": \"PP\",
        \"agency\": \"lqppwq\",
        \"agency_digit\": \"be\",
        \"account\": \"wtnnoqitpxntltcv\",
        \"account_digit\": \"ip\"
    },
    \"address\": {
        \"zip_code\": \"ojsausg\",
        \"street\": \"i\",
        \"number\": \"oglrbchgsrzyhctt\",
        \"complement\": \"w\",
        \"district\": \"b\",
        \"city\": \"k\",
        \"state\": \"mk\"
    }
}"

Propaga o plano de comissão atual para a subconta (Marketplace/Update).

POST
https://api.brotaspay.com.br
/api/v1/admin/clients/{user_id}/subaccount/sync
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
1
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/clients/1/subaccount/sync" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

GET api/v1/admin/commission-plans

GET
https://api.brotaspay.com.br
/api/v1/admin/commission-plans
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/commission-plans" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/admin/commission-plans

POST
https://api.brotaspay.com.br
/api/v1/admin/commission-plans
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/commission-plans" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

PATCH api/v1/admin/commission-plans/{commissionPlan_id}

PATCH
https://api.brotaspay.com.br
/api/v1/admin/commission-plans/{commissionPlan_id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

commissionPlan_id
integer
required

The ID of the commissionPlan.

Example:
1
Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/commission-plans/1" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

DELETE api/v1/admin/commission-plans/{commissionPlan_id}

DELETE
https://api.brotaspay.com.br
/api/v1/admin/commission-plans/{commissionPlan_id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

commissionPlan_id
integer
required

The ID of the commissionPlan.

Example:
1
Example request:
curl --request DELETE \
    "https://api.brotaspay.com.br/api/v1/admin/commission-plans/1" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Define como padrão (exclusivo).

POST
https://api.brotaspay.com.br
/api/v1/admin/commission-plans/{commissionPlan_id}/default
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

commissionPlan_id
integer
required

The ID of the commissionPlan.

Example:
1
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/commission-plans/1/default" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Atribui um plano de comissão a um cliente (null = volta ao padrão).

POST
https://api.brotaspay.com.br
/api/v1/admin/clients/{user_id}/commission-plan
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
1

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/clients/1/commission-plan" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"commission_plan_id\": 16
}"

GET api/v1/admin/webhooks/event-names

GET
https://api.brotaspay.com.br
/api/v1/admin/webhooks/event-names
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/webhooks/event-names" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/admin/webhooks/messages

GET
https://api.brotaspay.com.br
/api/v1/admin/webhooks/messages
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/webhooks/messages" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2026-06-27\",
    \"end_date\": \"2026-06-27\",
    \"state\": \"Failed\",
    \"event_name\": \"architecto\",
    \"context\": \"architecto\",
    \"page\": 22,
    \"page_size\": 7
}"
Example response:

POST api/v1/admin/webhooks/messages/{id}/reprocess

POST
https://api.brotaspay.com.br
/api/v1/admin/webhooks/messages/{id}/reprocess
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the message.

Example:
architecto
Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/webhooks/messages/architecto/reprocess" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

GET api/v1/admin/webhooks/reconcile-logs

GET
https://api.brotaspay.com.br
/api/v1/admin/webhooks/reconcile-logs
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/webhooks/reconcile-logs" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET api/v1/admin/webhooks

GET
https://api.brotaspay.com.br
/api/v1/admin/webhooks
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/webhooks" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"Disabled\",
    \"page\": 16,
    \"page_size\": 22
}"
Example response:

POST api/v1/admin/webhooks

POST
https://api.brotaspay.com.br
/api/v1/admin/webhooks
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/webhooks" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"context\": \"Customer\",
    \"uri\": \"http:\\/\\/bailey.com\\/\",
    \"event_name\": \"architecto\"
}"

PATCH api/v1/admin/webhooks/bulk-update

PATCH
https://api.brotaspay.com.br
/api/v1/admin/webhooks/bulk-update
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/webhooks/bulk-update" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"ids\": [
        \"architecto\"
    ],
    \"uri\": \"n\"
}"

PATCH api/v1/admin/webhooks/{id}

PATCH
https://api.brotaspay.com.br
/api/v1/admin/webhooks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the webhook.

Example:
architecto

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/webhooks/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"uri\": \"http:\\/\\/www.bailey.biz\\/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html\"
}"

DELETE api/v1/admin/webhooks/{id}

DELETE
https://api.brotaspay.com.br
/api/v1/admin/webhooks/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the webhook.

Example:
architecto
Example request:
curl --request DELETE \
    "https://api.brotaspay.com.br/api/v1/admin/webhooks/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

GET api/v1/admin/plans

GET
https://api.brotaspay.com.br
/api/v1/admin/plans
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/plans" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page\": 16,
    \"per_page\": 22,
    \"search\": \"g\",
    \"order_column\": \"availability\",
    \"order_direction\": \"ASC\"
}"
Example response:

POST api/v1/admin/plans

POST
https://api.brotaspay.com.br
/api/v1/admin/plans
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/plans" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=b"\
    --form "description=Eius et animi quos velit et."\
    --form "benefits=architecto"\
    --form "plan_default=1"\
    --form "availability=architecto"\
    --form "visibility=architecto"\
    --form "type_account=PJ"\
    --form "days_until_first_payment=39"\
    --form "price=84"\
    --form "contract=@/tmp/php5Bs6sq" 

GET api/v1/admin/plans/{id}

GET
https://api.brotaspay.com.br
/api/v1/admin/plans/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the plan.

Example:
architecto
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/plans/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

PATCH api/v1/admin/plans/{id}

PATCH
https://api.brotaspay.com.br
/api/v1/admin/plans/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
multipart/form-data
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the plan.

Example:
architecto

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/plans/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "name=b"\
    --form "description=Et animi quos velit et fugiat."\
    --form "benefits=d"\
    --form "plan_default="\
    --form "availability="\
    --form "visibility=1"\
    --form "type_account=PJ"\
    --form "days_until_first_payment=37"\
    --form "price=9"\
    --form "price_pix=52"\
    --form "price_ted=8"\
    --form "price_billet=75"\
    --form "price_p2p=7"\
    --form "price_generate_dynamic_qr_code_pix=87"\
    --form "price_generate_static_qr_code_pix=39"\
    --form "price_receive_dynamic_qr_code_pix=50"\
    --form "price_receive_static_qr_code_pix=62"\
    --form "bill_settlement_price=54"\
    --form "price_withdraw=38"\
    --form "quantity_generate_dynamic_qr_code_pix=50"\
    --form "quantity_generate_static_qr_code_pix=72"\
    --form "quantity_receive_dynamic_qr_code_pix=61"\
    --form "quantity_receive_static_qr_code_pix=67"\
    --form "quantity_pix=61"\
    --form "quantity_ted=89"\
    --form "quantity_billet=34"\
    --form "quantity_periodo=3"\
    --form "quantity_p2p=22"\
    --form "quantity_bill_settlement=4"\
    --form "contract=@/tmp/phpZZDwHU" 

DELETE api/v1/admin/plans/{id}

DELETE
https://api.brotaspay.com.br
/api/v1/admin/plans/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the plan.

Example:
architecto
Example request:
curl --request DELETE \
    "https://api.brotaspay.com.br/api/v1/admin/plans/architecto" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

GET api/v1/admin/plans/{id}/accounts

GET
https://api.brotaspay.com.br
/api/v1/admin/plans/{id}/accounts
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the plan.

Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/plans/architecto/accounts" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page\": 16,
    \"per_page\": 22,
    \"search\": \"g\"
}"
Example response:

GET api/v1/admin/plans/{accountId}/billing-history

GET
https://api.brotaspay.com.br
/api/v1/admin/plans/{accountId}/billing-history
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

accountId
string
required
Example:
architecto

Body Parameters

Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/plans/architecto/billing-history" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"page\": 16,
    \"per_page\": 22
}"
Example response:

PUT api/v1/admin/plans/{accountId}/assign

PUT
https://api.brotaspay.com.br
/api/v1/admin/plans/{accountId}/assign
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

accountId
string
required
Example:
architecto

Body Parameters

Example request:
curl --request PUT \
    "https://api.brotaspay.com.br/api/v1/admin/plans/architecto/assign" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"new_plan_id\": \"architecto\"
}"

GET api/v1/admin/users

GET
https://api.brotaspay.com.br
/api/v1/admin/users
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/users" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/admin/users

POST
https://api.brotaspay.com.br
/api/v1/admin/users
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/users" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\",
    \"password\": \"|]|{+-\"
}"

DELETE api/v1/admin/users/{id}

DELETE
https://api.brotaspay.com.br
/api/v1/admin/users/{id}
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the user.

Example:
1
Example request:
curl --request DELETE \
    "https://api.brotaspay.com.br/api/v1/admin/users/1" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

GET api/v1/admin/profile

GET
https://api.brotaspay.com.br
/api/v1/admin/profile
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/profile" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

PATCH api/v1/admin/profile

PATCH
https://api.brotaspay.com.br
/api/v1/admin/profile
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/profile" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"b\",
    \"email\": \"zbailey@example.net\"
}"

PATCH api/v1/admin/profile/password

PATCH
https://api.brotaspay.com.br
/api/v1/admin/profile/password
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request PATCH \
    "https://api.brotaspay.com.br/api/v1/admin/profile/password" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"current_password\": \"architecto\",
    \"new_password\": \"architecto\"
}"

GET api/v1/admin/email-test/templates

GET
https://api.brotaspay.com.br
/api/v1/admin/email-test/templates
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/admin/email-test/templates" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

POST api/v1/admin/email-test/send

POST
https://api.brotaspay.com.br
/api/v1/admin/email-test/send
requires authentication

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/admin/email-test/send" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"template\": \"architecto\",
    \"to\": \"zbailey@example.net\"
}"

Portal · NPS

Coleta de NPS dentro do app autenticado.

Verificar elegibilidade da pesquisa

GET
https://api.brotaspay.com.br
/api/v1/nps/eligibility
requires authentication

Retorna se o usuário deve ver o prompt de NPS (ainda não respondeu nesta tag nos últimos 90 dias).

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

survey_tag
string

Tag da pesquisa para checar.

Example:
post_onboarding
Example request:
curl --request GET \
    --get "https://api.brotaspay.com.br/api/v1/nps/eligibility?survey_tag=post_onboarding" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

Enviar resposta NPS

POST
https://api.brotaspay.com.br
/api/v1/nps
requires authentication

Registra uma resposta de NPS do usuário autenticado. A categoria (promoter/passive/detractor) é derivada do score.

Headers

Authorization
Example:
Bearer {SEU_TOKEN}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.brotaspay.com.br/api/v1/nps" \
    --header "Authorization: Bearer {SEU_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"score\": 9,
    \"comment\": \"Atendimento rápido.\",
    \"survey_tag\": \"post_onboarding\",
    \"source\": \"app\"
}"