Pix Automático Integration (Brazil Recurring Pix)

    by Diego Godoi

    1

    It is replacing boleto and card subscriptions for gyms, schools, SaaS, utilities and memberships.

    Free

    Security scanned

    Works with the AI Agents you already use

    Pix Automático Integration (Brazil Recurring Pix)

    Example session with this skill installed

    We run a gym chain and want to charge R$ 119.90 per month via Pix Automático, starting 10/12/2026, with retries if the debit fails. Customers sign up on our website. Our bank is already enabled. Design the flow and give me the first payloads.

    • Read your context and instructions
    • Compiled the pix autom tico

    Exemplo com dados fictícios.

    Fluxo recomendado: Jornada 2 (QR de autorização)

    O cliente se cadastra no site e escaneia um QR para autorizar no app do banco — sem pagamento imediato (a 1ª mensalidade vence em 10/12).

    Sequência

    1. POST /locrec → loc.id
    2. POST /rec com loc e politicaRetentativa: PERMITE_3R_7D → idRec (prefixo RR)
    3. Mostrar dadosQR.pixCopiaECola no site
    4. Webhook /webhookrec → status APROVADA
    5. Para cada ciclo, POST /cobr entre D-10 e D-2
    6. Webhook /webhookcobr → tentativa PAGA ou REJEITADA → POST /cobr/{txid}/retentativa/{data}

    Escopos: payloadlocationrec.write, rec.write, rec.read, cobr.write, webhookrec.write, webhookcobr.write.

    Payload validado

    {"vinculo": {"objeto": "Plano Mensal Academia", "contrato": "CT-2026-0042",
      "devedor": {"cpf": "52998224725", "nome": "Fulano de Tal"}},
     "calendario": {"dataInicial": "2026-12-10", "periodicidade": "MENSAL"},
     "valor": {"valorRec": "119.90"}, "politicaRetentativa": "PERMITE_3R_7D", "loc": 108}
    

    validar-rec → válido, 0 erros.

    Calendário (com ajuste de dia útil)

    CicloVencimentoEnviar cobr entre
    110/12/202630/11 e 08/12
    211/01/2027 (10/01 é domingo)01/01 e 09/01
    310/02/202731/01 e 08/02

    (código Node.js do cliente OAuth mTLS e do handler de webhook segue abaixo)

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Recurring billing with Pix, without reading 10,000 lines of spec

    Pix Automático lets Brazilian customers authorize recurring debits once, from their bank app. It is replacing boleto and card subscriptions for gyms, schools, SaaS, utilities and memberships. The API is powerful but detailed. This skill gives your agent the spec knowledge and local validators.

    What it does

    • Picks the right journey (push, QR authorization, QR with immediate payment, payment plus authorization offer) for your business case.
    • Designs the call sequence with exact endpoints and OAuth scopes: /locrec, /rec, /solicrec, /cobr, retries and webhooks (/webhookrec, /webhookcobr).
    • Generates and validates IDs: idRec (RR/RN prefix matching the retry policy, ISPB, date, unique suffix) and txid (26-35 chars).
    • Validates payloads locally before you hit the bank: periodicity enums, value format, mutually exclusive fields, dates, CPF/CNPJ check digits (including alphanumeric CNPJ), tax object rules.
    • Builds the billing calendar (weekly to yearly, end-of-month handling, business-day adjustment) with the D-10 to D-2 sending window.
    • Maps every status and rejection/cancellation code into a state machine for your database.
    • Writes the integration code in your stack (Python, Node, PHP) with mTLS auth, idempotency and webhook handling, plus a sandbox test plan.

    Based on the Banco Central Pix API specification. Your bank's base URL and limits still come from its developer portal.

    Based on the Banco Central Pix API spec (v2.11) as of November 2026. Does not call your bank: base URLs, credentials, mTLS certificates and limits come from your PSP's developer portal. The D-10 to D-2 sending window should be confirmed with your PSP.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Software
    Python 3.8+Pix Automático enabled by your bank (PSP)

    Permissions

    Terminal / Shell
    Read Files
    Network Access
    Listed9 days ago

    What's inside

    Frequently Asked Questions

    No. It designs, validates and writes code locally. You run the code against your bank's sandbox and production with your own credentials.

    Any bank that implements the Banco Central Pix API standard for Pix Automático. Base URLs, auth details and limits come from your bank's developer portal.

    Yes. It covers valorMinimoRecebedor (variable amount with a floor), the payer's maximum limit and the rules that change with it.

    Python, Node.js and PHP out of the box, and any other stack you ask for. Secrets always come from environment variables or a secret manager.

    The SKILL.md workflow, a Python helper to generate and validate idRec, txid and payloads and to build the billing calendar (standard library only), and an API reference with journeys, endpoints, scopes, enums and rules.

    Yes. It answers in the language you write in; API field names and enums stay exactly as in the Banco Central spec.

    New in APIs & Backend

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    Free