# Pix Automático Integration (Brazil Recurring Pix)

> Integrate Pix Automático, Brazil's recurring Pix for subscriptions, following the Banco Central API: right journey, /locrec → /rec → /solicrec → /cobr flow, webhooks, idRec/txid generation, payload validation, billing calendar and code.

Pix Automático Integration (Brazil Recurring Pix) is a free AI agent skill on Agensi by Diego Godoi, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Diego Godoi](https://www.agensi.io/creators/diego-godoi)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/pix-autom-tico-integration-brazil-recurring-pix
- Tags: api, pix-automatico, fintech, node-js, python, payments

## 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.

## Requires

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

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Pix Automático Integration (Brazil Recurring Pix) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does it call my bank?

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

### Which banks are supported?

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.

### Can it handle variable amounts?

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

### Which languages does it write code in?

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.

### What is included?

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.

### Does it work in English?

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

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
