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)
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>.
Setup e gerenciamento de 2FA (TOTP) para admins.
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" Não persiste como ativo enquanto enable() não validar um código.
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" 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\"
}"
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\"
}"
Alertas e regras de prevenção à lavagem de dinheiro.
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
}"
The ID of the alert.
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" The ID of the alert.
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\"
}"
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" The ID of the rule.
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
}"
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
}"
Trilha de auditoria de ações destrutivas/sensíveis do admin.
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\"
}"
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" KPIs financeiros baseados em account_plan_assignments (sombra local que vai
sendo populada conforme changeUserPlan é chamado).
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" 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
}"
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
}"
Gestão local de boletos (sombra). Inclui baixa manual e cancelamento com auditoria.
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
}"
The ID of the boleto.
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" The ID of the boleto.
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\"
}"
Streaming de CSV para os principais recursos. Não carrega tudo em memória — usa cursor() do Laravel.
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" 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
}"
Métricas de produto: funil de ativação, churn, coortes e NPS. Todos os endpoints exigem autenticação admin (Bearer token).
Atalho que retorna funil + churn + NPS + coortes na mesma chamada para alimentar um dashboard único.
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
}"
Retorna a contagem de usuários em cada etapa do funil (cadastro → KYC → conta ativa → primeiro depósito → primeira transação enviada).
date Data inicial (Y-m-d). Default: 30 dias atrás.
date Data final (Y-m-d). Default: hoje.
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
}"
Compara usuários ativos (com transação) na janela atual vs. janela anterior para identificar perda e retenção de base ativa.
Dias de inatividade que definem churn. Default: 30.
Tamanho da janela de comparação. Default: 90.
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
}"
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).
Quantos meses retroceder. Default: 6.
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
}"
Score = %promotores (9-10) − %detratores (0-6). Lista também os 10 comentários mais recentes.
date Y-m-d.
date Y-m-d.
Filtra por tag da pesquisa (ex: post_onboarding).
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
}"
Lista paginada de respostas NPS individuais para análise qualitativa.
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
}"
Health do sistema: jobs, filas, webhooks recebidos/processados, falhas recentes.
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" 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
}"
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" 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" 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" 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
}"
Encerramentos de conta: visualiza evidências, registra fechamento legal final.
Fluxo:
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
}"
The ID of the offboarding.
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" The ID of the offboarding.
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
}"
The ID of the offboarding.
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\"
}"
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" 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.\"
}"
The ID of the role.
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.\"
}"
The ID of the role.
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" 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
]
}"
Histórico de reconciliações (consulta de webhooks falhados no core e reprocesso local) e disparo manual.
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
}"
The ID of the reconcile.
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" Síncrono — fica rodando até terminar.
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
}"
Busca global (Cmd+K) — retorna resultados unificados de users, accounts, transactions e cards.
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\"
}"
Estatísticas agregadas para o dashboard administrativo.
Janela em dias (1-365). Default: 30.
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" Retorna contagens agregadas para uso em gráficos de barra/pizza:
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" 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" 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\"
}
}"
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\": \"|]|{+-\"
}"
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\"
}"
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\"
}"
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\"
}"
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\"
}"
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" 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\": \"|]|{+-\"
}"
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\"
}"
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\": \"|]|{+-\"
}"
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" 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" 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" 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" 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" 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\"
}
}"
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\"
}
}"
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\"
}
}"
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\"
}
}
}"
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" 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" 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" The ID of the notification.
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" 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" 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" Só funciona se ainda não foi indicado e o código não é o dele mesmo.
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\"
}"
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" 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\": \"|]|{+-\"
}"
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\"
}"
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\": \"|]|{+-\"
}"
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" 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" 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" The ID of the webhook.
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" 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\"
}
}"
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\"
}
}"
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\"
}"
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\"
}
}"
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\"
}"
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\"
}"
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\"
}"
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\"
}"
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" 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" 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" 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" 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" 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" The ID of the transaction.
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" 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" 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\"
}
}"
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\"
}
}
}"
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\"
}"
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\"
}
}"
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\"
}"
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\"
}"
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\"
}"
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\"
}"
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\"
}
}"
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\"
}
}"
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\"
}
}"
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" 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\"
}"
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" 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\"
}"
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" 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" 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\"
}"
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" 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" 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" Só Safe2Pay tem carteira; HiperBanco devolve "unsupported".
The ID of the environment.
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" The ID of the environment.
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" Garante exclusividade do flag is_default.
The ID of the environment.
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" The ID of the environment.
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" The ID of the integration.
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
}"
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" The ID of the user.
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" The ID of the user.
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\"
}
}"
The ID of the user.
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" 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" 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" The ID of the commissionPlan.
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" The ID of the commissionPlan.
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" The ID of the commissionPlan.
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" The ID of the user.
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
}"
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" 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
}"
The ID of the message.
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" 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" 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
}"
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\"
}"
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\"
}"
The ID of the webhook.
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\"
}"
The ID of the webhook.
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" 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\"
}"
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" The ID of the plan.
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" The ID of the plan.
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" The ID of the plan.
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" The ID of the plan.
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\"
}"
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
}"
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\"
}"
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" 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\": \"|]|{+-\"
}"
The ID of the user.
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" 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" 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\"
}"
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\"
}"
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" 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\"
}"
Coleta de NPS dentro do app autenticado.
Retorna se o usuário deve ver o prompt de NPS (ainda não respondeu nesta tag nos últimos 90 dias).
Tag da pesquisa para checar.
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" Registra uma resposta de NPS do usuário autenticado. A categoria (promoter/passive/detractor) é derivada do score.
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\"
}"