transfer-pix

Guide for managing Pix transfers using Kobana. Use when the user wants to create, list, get, or cancel Pix transfers, manage transfer batches, or handle financial accounts. Supports both MCP tools (preferred) and REST API.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "transfer-pix" with this command: npx skills add universokobana/kobana-agent-skills/universokobana-kobana-agent-skills-api-transfer-pix

Kobana Transfer Pix Skill

Manage Pix transfers, batches, and financial accounts via Kobana.

How It Works

This skill supports two modes of operation:

  1. MCP (preferred) — If the kobana-mcp-transfer MCP server is available, use MCP tools directly. This is simpler and recommended.
  2. REST API (fallback) — If MCP is not available, use HTTP calls to the Kobana API.

Rule: Always try MCP tools first. Only fall back to the REST API if MCP tools are not available or not configured.


MCP Mode

Available MCP Tools

Pix Transfers

ToolDescription
list_transfer_pixList all Pix transfers
create_transfer_pixCreate a new Pix transfer
get_transfer_pixGet a specific Pix transfer
cancel_transfer_pixCancel a pending Pix transfer

Pix Transfer Batches

ToolDescription
list_transfer_batchesList all transfer batches
create_transfer_pix_batchCreate a Pix transfer batch
get_transfer_batchGet a specific batch
approve_transfer_batchApprove a batch
reprove_transfer_batchReprove (cancel) a batch

Financial Accounts

ToolDescription
list_financial_accountsList all financial accounts
get_financial_accountGet a specific financial account

Creating a Pix Transfer (MCP)

Step 1: Get the Financial Account UID

Use tool: list_financial_accounts

Step 2: Create the Pix Transfer

Transfer by Pix Key:

{
  "amount": 150.00,
  "financial_account_uid": "018df180-7208-727b-...",
  "type": "key",
  "key_type": "email",
  "key": "recipient@example.com",
  "beneficiary": {
    "document_number": "111.321.322-09",
    "name": "João da Silva"
  },
  "external_id": "payment_12345"
}

Transfer by Bank Account:

{
  "amount": 500.00,
  "financial_account_uid": "018df180-7208-727b-...",
  "type": "bank_account",
  "beneficiary": {
    "document_number": "12.345.678/0001-90",
    "name": "Company LTDA"
  },
  "bank_account": {
    "compe_number": 341,
    "agency_number": "1234",
    "agency_digit": "5",
    "account_number": "12345",
    "account_digit": "6",
    "document_number": "12.345.678/0001-90"
  },
  "scheduled_to": "2026-02-01",
  "transfer_purpose": "20"
}

Step 3: Create a Batch to Send

After creating transfers, create a batch to send them to the bank:

Use tool: create_transfer_pix_batch
Parameters: {
  "financial_account_uid": "018df180-7208-727b-...",
  "transfers": [
    { "uid": "019c0cbe-f018-717e-..." }
  ]
}

Or create new transfers directly in the batch:

{
  "financial_account_uid": "018df180-7208-727b-...",
  "transfers": [
    {
      "amount": 100.00,
      "type": "key",
      "key_type": "cpf",
      "key": "111.222.333-44",
      "beneficiary": {
        "document_number": "111.222.333-44",
        "name": "João Silva"
      }
    }
  ]
}

Step 4: Check Batch Status

Use tool: get_transfer_batch
Parameters: { "uid": "019c0cbe-f018-717e-..." }

If the batch is awaiting_approval, approve it:

Use tool: approve_transfer_batch
Parameters: { "uid": "019c0cbe-f018-717e-..." }

MCP Server Setup

Claude Code

If you installed the kobana-agent-skills plugin, the MCP servers are already configured. Just set the environment variable before running Claude Code:

export KOBANA_ACCESS_TOKEN="your_access_token"
claude

For sandbox, also set:

export KOBANA_API_URL="https://api-sandbox.kobana.com.br"

Or add to .mcp.json in your project root:

{
  "mcpServers": {
    "kobana-transfer": {
      "command": "npx",
      "args": ["-y", "kobana-mcp-transfer"],
      "env": {
        "KOBANA_ACCESS_TOKEN": "your_access_token"
      }
    }
  }
}

Claude Desktop

Add to your config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "kobana-transfer": {
      "command": "npx",
      "args": ["-y", "kobana-mcp-transfer"],
      "env": {
        "KOBANA_ACCESS_TOKEN": "your_access_token"
      }
    }
  }
}

Important: Replace your_access_token with your actual Kobana API token. Claude Desktop does not support environment variable expansion (${VAR}) — you must paste the real token value directly.

For sandbox, add "KOBANA_API_URL": "https://api-sandbox.kobana.com.br" to the env object.

Remote MCP (Hosted)

{
  "mcpServers": {
    "kobana-transfer": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.kobana.com.br/transfer/mcp",
        "--header",
        "Authorization: Bearer your_access_token"
      ]
    }
  }
}

API Mode (Fallback)

Base URLs

Production: https://api.kobana.com.br
Sandbox:    https://api-sandbox.kobana.com.br

Authentication

Authorization: Bearer {your_api_token}

API Endpoints Overview

Pix Transfers

MethodEndpointDescription
GET/v2/transfer/pixList all Pix transfers
POST/v2/transfer/pixCreate a new Pix transfer
GET/v2/transfer/pix/{uid}Get a specific Pix transfer
PUT/v2/transfer/pix/{uid}/cancelCancel a Pix transfer

Pix Transfer Batches

MethodEndpointDescription
GET/v2/transfer/batchesList all transfer batches
POST/v2/transfer/pix_batchesCreate a new Pix transfer batch
GET/v2/transfer/batches/{uid}Get a specific batch
PUT/v2/transfer/batches/{uid}/approveApprove a batch
PUT/v2/transfer/batches/{uid}/reproveReprove a batch

Creating a Pix Transfer (API)

Transfer by Pix Key (Minimum Required):

POST /v2/transfer/pix

{
  "amount": 100.50,
  "financial_account_uid": "018df180-7208-727b-...",
  "type": "key",
  "key_type": "email",
  "key": "recipient@example.com",
  "beneficiary": {
    "document_number": "12.345.678/0001-90",
    "name": "Company LTDA"
  }
}

Transfer by Bank Account:

POST /v2/transfer/pix

{
  "amount": 500.00,
  "financial_account_uid": "018df180-7208-727b-...",
  "type": "bank_account",
  "beneficiary": {
    "document_number": "12.345.678/0001-90",
    "name": "Company LTDA"
  },
  "bank_account": {
    "compe_number": 341,
    "agency_number": "1234",
    "agency_digit": "5",
    "account_number": "12345",
    "account_digit": "6",
    "document_number": "12.345.678/0001-90"
  },
  "scheduled_to": "2026-02-01",
  "transfer_purpose": "98",
  "external_id": "payment_2026_001",
  "tags": ["monthly", "supplier"]
}

Important: Two-Step Flow

Pix transfers require a two-step process:

  1. Create Transfer - POST /v2/transfer/pix creates a pending transfer
  2. Create Batch - POST /v2/transfer/pix_batches sends transfers to the bank

Creating a Batch:

POST /v2/transfer/pix_batches

{
  "financial_account_uid": "018df180-7208-727b-...",
  "transfers": [
    { "uid": "019c0cbe-f018-717e-..." }
  ]
}

Batch Approval Workflow

Some financial accounts require manual approval:

  1. Batch created - Status: pending or awaiting_approval
  2. Approve - PUT /v2/transfer/batches/{uid}/approve
  3. Or Reprove - PUT /v2/transfer/batches/{uid}/reprove

Listing and Filtering

GET /v2/transfer/pix?status=pending&per_page=50
ParameterDescription
statusFilter by status (pending, confirmed, rejected)
registration_statusFilter by registration status
financial_account_uidFilter by financial account
page / per_pagePagination

Common Parameters

Required

ParameterTypeDescription
amountdecimalTransfer amount in BRL
financial_account_uidstringUUID of source financial account
typestringkey or bank_account

For Pix Key (type: "key")

ParameterTypeDescription
key_typestringcpf, cnpj, email, phone, random
keystringThe Pix key value

For Bank Account (type: "bank_account")

ParameterTypeDescription
bank_account.compe_numberintegerBank COMPE code
bank_account.agency_numberstringAgency number
bank_account.account_numberstringAccount number
bank_account.account_digitstringAccount check digit

Beneficiary

ParameterTypeDescription
beneficiary.document_numberstringCPF or CNPJ
beneficiary.namestringFull name or company name

Optional

ParameterTypeDescription
scheduled_todateSchedule date (YYYY-MM-DD)
transfer_purposestringPurpose code (default: "98")
external_idstringExternal ID for tracking
custom_dataobjectCustom metadata (JSON)
tagsarrayTags for organization

Transfer Purpose Codes

CodeDescription
20Supplier Payment
30Salary Payment
32Fees Payment
90Benefits Payment
98Miscellaneous Payments (default)

Key Types

TypeDescriptionExample
cpfCPF number111.222.333-44
cnpjCNPJ number11.222.333/0001-44
emailEmail addressuser@example.com
phonePhone number+5511999999999
randomRandom key (EVP)123e4567-e89b-12d3-...

Status Reference

Transfer Status

  • pending - Pending (initial)
  • awaiting_approval - Awaiting approval
  • approved - Approved
  • confirmed - Confirmed by bank
  • rejected - Rejected by bank
  • reproved - Reproved (canceled before sending)

Registration Status

  • pending - Waiting for registration
  • requested - Sent to bank
  • confirmed - Confirmed at bank
  • rejected / failed - Error

Batch Status

  • pending - Pending (initial)
  • awaiting_approval - Awaiting approval
  • approved - Approved
  • confirmed - All transfers confirmed
  • reproved - Reproved

Best Practices

  1. Prefer MCP when available - Simpler and more reliable
  2. Use batches for multiple transfers - More efficient than individual transfers
  3. Set external_id - Track transfers in your system
  4. Schedule transfers - Use scheduled_to for future-dated transfers
  5. Use X-Idempotency-Key header - Prevent duplicates (API mode)
  6. Test in sandbox - Before production
  7. Monitor batch status - Poll or use webhooks for status updates

Reference Documentation

See references/REFERENCE.md for complete documentation including all parameters, response formats, error codes, MCP tools, and API endpoints.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

template-skill

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

mcp-payment-pix

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

api-payment-pix

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

mcp-charge-pix

No summary provided by upstream source.

Repository SourceNeeds Review