asaas
Use when building or debugging an integration with the Asaas payment API (Brazil): Pix charges and QR codes, Pix Automático recurring debit, subscriptions…
от fcsouza★ 29 звёзд на GitHub
Установить asaas в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Asaas API
Brazilian payment provider. REST and JSON, one API key per environment. Every claim below is traced in references/sources.md. Lines marked "this skill's rule" are advice, not vendor facts. Lines marked "inference" follow from a doc line, but no page states them outright. Lines marked "observed in production, not in the docs" or "observed in sandbox, not in the docs" come from live integrations and may change without notice.
The docs serve Markdown: append .md to any docs.asaas.com/docs/<page> or /reference/<page> URL. https://docs.asaas.com/llms.txt indexes the per-section indexes (/docs/llms.txt, /reference/llms.txt, /recipes/llms.txt, /changelog/llms.txt). The docs MCP server at https://docs.asaas.com/mcp has six tools: search, fetch, list-endpoints, get-endpoint, search-endpoints and execute-request. Read the guide page before you write code. The guide pages carry rules the reference pages leave out, and some pages still contradict each other.
Auth and environments
| Environment | Base URL |
|---|---|
| Sandbox | https://api-sandbox.asaas.com/v3 |
| Production | https://api.asaas.com/v3 |
{ "Content-Type": "application/json", "User-Agent": "your-app-name", "access_token": "$aact_..." }
- The key goes in the
access_tokenheader. Asaas does not useAuthorization: Bearer. User-Agentis mandatory for root accounts created from 2024-06-13 on.- Sandbox keys start
$aact_hmlg_, production keys$aact_prod_. A key sent to the wrong environment returns 401invalid_environment. Accounts, data and keys are separate per environment. - Other 401 codes:
access_token_not_found,invalid_access_token_format,invalid_access_token. - The key is shown once. An account holds up to 10 keys. An unused key is disabled after 3 months (you can re-enable it) and expires for good after 6 months. Events
ACCESS_TOKEN_DISABLED,ACCESS_TOKEN_EXPIRING_SOONandACCESS_TOKEN_EXPIREDwarn you. - This skill's rule: derive the environment from the key prefix and log at boot which environment the deploy charges. Never log the key.
The $ in the key
The $ is part of the key. .env loaders read $aact_… as a variable reference and substitute an empty string. The key then arrives empty, and code that treats "no key" as "feature off" goes quiet with no error. Tested on 2026-11-15 with Bun 1.4.4 and Docker Compose v5.5.0, using the fake key $aact_hmlg_TEST:
| Where | bare $aact_… |
"$aact_…" |
'$aact_…' |
$$aact_… |
\$aact_… |
|---|---|---|---|---|---|
Bun, local .env |
empty | empty | empty | $ |
works |
Docker Compose .env (interpolation and env_file:) |
empty | empty | works | works | \ |
Single quotes work in Compose and fail in Bun. A backslash works in Bun and fails in Compose. This skill's rule: check the key's prefix at startup and fail loudly when it is missing or malformed.
An unset variable empties the key a second way. In Compose, ${VAR:-default} gives the default when VAR is unset or empty. So ASAAS_API_KEY: ${ASAAS_API_KEY:-} hands the container the variable set to '', not unset (tested with Compose v5.5.0). Code defaults such as process.env.X ?? fallback then never apply, because '' is not undefined.
This skill's rule: turn '' into undefined when you read the environment, and also fail at startup when the key is empty while any other Asaas setting (base URL, webhook token) is set. Without that check, the normalising step turns a key the $ trap emptied into "Asaas off".
For a service that cannot run without the key, ${ASAAS_API_KEY:?error} makes Compose refuse to start.
Choosing how to charge on a schedule
Three products sound alike. Only one is a recurring Pix debit.
Assinatura (/subscriptions), billingType: PIX |
Pix Automático | Pix Recorrente | |
|---|---|---|---|
| What it is | Asaas creates a new charge each cycle | Recurring debit the payer authorized once | A recurring outbound transfer the payer schedules |
| Automatic debit | No for Pix and boleto; card is charged on the due date | Yes, while the authorization is ACTIVE |
It is a transfer, not a charge |
| Who creates each charge | Asaas | Your code (MANUAL, default) or Asaas (SUBSCRIPTION) |
n/a |
| First payment | First charge of the subscription | One QR code pays and authorizes | n/a |
A Pix subscription is not Pix Automático: the payer must pay each charge. Pix Automático needs a PJ account with a CNPJ active for at least 6 months. Read references/pix-automatico.md before you build on it. This skill's rule: pick one strategy per business flow.
Customers
POST /v3/customers before any charge. name and cpfCnpj are the required fields, so a product that adds Asaas must collect and store a tax id.
{ "name": "Marcelo Almeida", "cpfCnpj": "24971563792", "externalReference": "user_123" }
- The response holds
cus_…. Store it. - Asaas ac
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/endpoints.md
- references/integration-practices.md
- references/pix-automatico.md
- references/sources.md
- references/subaccounts-and-split.md
- references/webhooks.md
FAQ
Что делает скилл asaas?
Use when building or debugging an integration with the Asaas payment API (Brazil): Pix charges and QR codes, Pix Automático recurring debit, subscriptions, payment links, boleto, card, customers, refunds, webhooks or a paused webhook queue, or a `$aact_` API key that arrives empty. Also use when the user says Asaas, cobrança, assinatura via Pix, QR code copia e cola, asaas-access-token, subconta or split de pagamento.
Как установить скилл asaas?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл asaas запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…