Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Int Asaas

ASecurity

Asaas payment platform integration via API v3. Manage payments (Pix, boleto, credit card), customers, subscriptions, transfers, balance, and marketplace subaccounts. Use when users ask about payment collection, billing automation, Pix, boleto, subscriptions, or financial transfers via Asaas. Integração Asaas: cobranças, clientes, assinaturas, Pix, boleto.

529 stars
0 votes
0 copies
0 views
Added 5/29/2026
ai-agentsgobashtestinggitapi

Works with

cliapimcp

Security Analysis

A100/100

Scanned 5/29/2026

$npx -y skills add evolution-foundation/evo-nexus --skill int-asaas --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Int Asaas?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Int Asaas
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/evolution-foundation-int-asaas/badge)](https://www.skillsdirectory.com/skills/evolution-foundation-int-asaas)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: int-asaas
description: "Asaas payment platform integration via API v3. Manage payments (Pix, boleto, credit card), customers, subscriptions, transfers, balance, and marketplace subaccounts. Use when users ask about payment collection, billing automation, Pix, boleto, subscriptions, or financial transfers via Asaas. Integração Asaas: cobranças, clientes, assinaturas, Pix, boleto."
---

# Asaas Payment Skill

Integration with Asaas billing platform via REST API v3.

## When to use

- Create or query payment charges (Pix, boleto, credit card)
- Manage customers in Asaas
- Create or cancel recurring subscriptions
- Check account balance or initiate Pix transfers
- Generate Pix QR codes or boleto digitable lines
- Create marketplace subaccounts for split payments
- List webhook events for payment confirmations

## Setup

Requires environment variables:

```bash
export ASAAS_API_KEY="your_api_key_here"
export ASAAS_SANDBOX="true"   # set to "false" for production
```

### How to obtain the API key

1. Log in to https://www.asaas.com (or https://sandbox.asaas.com for testing)
2. Go to Account Settings → Integrations → API Key
3. Copy the key — it starts with `$aact_` in production

**Auth header used in all requests:**
```
access_token: ${ASAAS_API_KEY}
```

---

## Base URL

| Environment | URL |
|-------------|-----|
| Production | `https://api.asaas.com/v3` |
| Sandbox | `https://sandbox.asaas.com/api/v3` |

Select based on `ASAAS_SANDBOX` env var. **Default is sandbox (safe).**

---

## Enums

### billingType
| Value | Description |
|-------|-------------|
| `BOLETO` | Bank slip |
| `CREDIT_CARD` | Credit card |
| `PIX` | Pix instant payment |
| `UNDEFINED` | Any method (customer chooses) |

### Payment status
| Value | Description |
|-------|-------------|
| `PENDING` | Awaiting payment |
| `RECEIVED` | Payment received |
| `CONFIRMED` | Payment confirmed |
| `OVERDUE` | Past due date |
| `REFUNDED` | Refunded |
| `RECEIVED_IN_CASH` | Received in cash |
| `REFUND_REQUESTED` | Refund requested |
| `CHARGEBACK_REQUESTED` | Chargeback requested |
| `AWAITING_CHARGEBACK_REVERSAL` | Awaiting chargeback reversal |
| `DUNNING_REQUESTED` | Dunning in progress |
| `DUNNING_RECEIVED` | Dunning received |
| `AWAITING_RISK_ANALYSIS` | Under risk analysis |

### Subscription cycle
`WEEKLY` | `BIWEEKLY` | `MONTHLY` | `QUARTERLY` | `SEMIANNUALLY` | `YEARLY`

### Subscription status
`ACTIVE` | `INACTIVE` | `EXPIRED`

### Pix key type
`CPF` | `CNPJ` | `EMAIL` | `PHONE` | `EVP`

### Company type (subaccounts)
`MEI` | `LIMITED` | `INDIVIDUAL` | `ASSOCIATION`

---

## Format Rules

| Field | Format | Example |
|-------|--------|---------|
| CPF | 11 digits, no dashes | `12345678901` |
| CNPJ | 14 digits, no dashes | `12345678000199` |
| CEP | 8 digits, no dashes | `30140071` |
| Dates | ISO `YYYY-MM-DD` | `2026-04-10` |
| Amounts | BRL float | `99.90` |
| IDs | Prefixed strings | `cus_xxx`, `pay_xxx`, `sub_xxx` |

---

## Payments

### Create payment

```bash
curl -s -X POST \
  "${BASE_URL}/payments" \
  -H "access_token: ${ASAAS_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": "cus_000000000001",
    "billingType": "PIX",
    "value": 150.00,
    "dueDate": "2026-04-20",
    "description": "Monthly service fee"
  }'
```

**Body fields:**
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `customer` | string | yes | Customer ID (`cus_xxx`) |
| `billingType` | string | yes | `BOLETO`, `CREDIT_CARD`, `PIX`, `UNDEFINED` |
| `value` | number | yes | Amount in BRL (must be > 0) |
| `dueDate` | string | yes | Due date `YYYY-MM-DD` |
| `description` | string | no | Payment description |

### Get payment

```bash
curl -s -X GET \
  "${BASE_URL}/payments/pay_000000000001" \
  -H "access_token: ${ASAAS_API_KEY}"
```

### List payments

```bash
curl -s -X GET \
  "${BASE_URL}/payments?customer=cus_000000000001&status=PENDING&limit=10&offset=0" \
  -H "access_token: ${ASAAS_API_KEY}"
```

**Query params:**
| Param | Type | Description |
|-------|------|-------------|
| `customer` | string | Filter by customer ID |
| `status` | string | Filter by payment status |
| `limit` | number | Results per page (default 10) |
| `offset` | number | Pagination offset |

### Get Pix QR code

```bash
curl -s -X GET \
  "${BASE_URL}/payments/pay_000000000001/pixQrCode" \
  -H "access_token: ${ASAAS_API_KEY}"
```

Returns `payload` (copy-paste Pix string) and `encodedImage` (base64 PNG).

### Get boleto

```bash
curl -s -X GET \
  "${BASE_URL}/payments/pay_000000000001/identificationField" \
  -H "access_token: ${ASAAS_API_KEY}"
```

Returns `identificationField` (digitable line) and barcode.

### Get installments

```bash
curl -s -X GET \
  "${BASE_URL}/payments/pay_000000000001/installments" \
  -H "access_token: ${ASAAS_API_KEY}"
```

---

## Customers

### Create customer

```bash
curl -s -X POST \
  "${BASE_URL}/customers" \
  -H "access_token: ${ASAAS_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "João da Silva",
    "cpfCnpj": "12345678901",
    "email": "joao@email.com",
    "phone": "31999990000"
  }'
```

**Body fields:**
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `name` | string | yes | Customer name |
| `cpfCnpj` | string | yes | CPF (11 digits) or CNPJ (14 digits), numbers only |
| `email` | string | no | Valid email address |
| `phone` | string | no | Phone number |

### List customers

```bash
curl -s -X GET \
  "${BASE_URL}/customers?name=João&limit=20" \
  -H "access_token: ${ASAAS_API_KEY}"
```

**Query params:** `name`, `cpfCnpj`, `limit`

---

## Subscriptions

### Create subscription

```bash
curl -s -X POST \
  "${BASE_URL}/subscriptions" \
  -H "access_token: ${ASAAS_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "customer": "cus_000000000001",
    "billingType": "BOLETO",
    "value": 99.90,
    "cycle": "MONTHLY",
    "nextDueDate": "2026-05-01",
    "description": "Pro plan"
  }'
```

**Body fields:**
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `customer` | string | yes | Customer ID |
| `billingType` | string | yes | `BOLETO`, `CREDIT_CARD`, `PIX` |
| `value` | number | yes | Amount per cycle (must be > 0) |
| `cycle` | string | yes | Billing cycle |
| `nextDueDate` | string | yes | First due date `YYYY-MM-DD` |
| `description` | string | no | Subscription description |

### List subscriptions

```bash
curl -s -X GET \
  "${BASE_URL}/subscriptions?customer=cus_000000000001&status=ACTIVE&limit=10" \
  -H "access_token: ${ASAAS_API_KEY}"
```

### Cancel subscription

```bash
curl -s -X DELETE \
  "${BASE_URL}/subscriptions/sub_000000000001" \
  -H "access_token: ${ASAAS_API_KEY}"
```

---

## Financial

### Get balance

```bash
curl -s -X GET \
  "${BASE_URL}/finance/balance" \
  -H "access_token: ${ASAAS_API_KEY}"
```

### Create transfer (Pix out / TED)

```bash
curl -s -X POST \
  "${BASE_URL}/transfers" \
  -H "access_token: ${ASAAS_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "value": 250.00,
    "pixAddressKey": "joao@email.com",
    "pixAddressKeyType": "EMAIL",
    "description": "Supplier payment"
  }'
```

**Body fields:**
| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `value` | number | yes | Amount in BRL (must be > 0) |
| `pixAddressKey` | string | no | Pix key value |
| `pixAddressKeyType` | string | no | `CPF`, `CNPJ`, `EMAIL`, `PHONE`, `EVP` |
| `description` | string | no | Transfer description |

---

## Marketplace (Split Payments)

### Create subaccount

```bash
curl -s -X POST \
  "${BASE_URL}/accounts" \
  -H "access_token: ${ASAAS_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Parceiro Comercial LTDA",
    "email": "parceiro@empresa.com",
    "cpfCnpj": "12345678000199",
    "companyType": "LIMITED",
    "phone": "31999990000",
    "postalCode": "30140071",
    "address": "Rua das Flores",
    "addressNumber": "100",
    "province": "Centro"
  }'
```

**Required fields:** `name`, `email`, `cpfCnpj`

---

## Utilities

### Get webhook events

```bash
curl -s -X GET \
  "${BASE_URL}/webhook/events?event=PAYMENT_CONFIRMED&limit=10&offset=0" \
  -H "access_token: ${ASAAS_API_KEY}"
```

**Common event types:** `PAYMENT_CONFIRMED`, `PAYMENT_RECEIVED`, `PAYMENT_OVERDUE`, `TRANSFER_CREATED`, `SUBSCRIPTION_CREATED`

---

## Auth Model

- **Type:** API Key
- **Header name:** `access_token` (note: lowercase, not `Authorization`)
- **Header value:** raw API key, no `Bearer` prefix
- **Key format:** `$aact_YTU5YTE0M...` (production) or similar pattern in sandbox

## Rate Limits

- Asaas enforces rate limits per API key
- Default limit: ~120 requests/minute (see official docs for current values)
- Back off on HTTP 429; retry after the `Retry-After` header value
- Full rate limit details: https://docs.asaas.com

## Notes

- This skill is based on the MCP implementation at `workspace/projects/mcp-dev-brasil/packages/payments/asaas/src/index.ts` (mcp-dev-brasil project), which includes Zod validation for CPF/CNPJ, email, CEP, and date formats
- **Always start with `ASAAS_SANDBOX=true`** — sandbox is isolated from production funds
- For credit card payments, tokenization requires additional fields not covered here — see https://docs.asaas.com
- Webhook configuration (registering your endpoint URL) must be done in the Asaas dashboard, not via API

Attribution

evolution-foundationevolution-foundation
View sourceSee grades on GitHubMore from evolution-foundation →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698461 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →