n8n community node for integrating with AbacatePay API - a Brazilian payment gateway for PIX, billing, and customer management.
Complete integration with AbacatePay's REST API:
- Customer Management: Create and list customers with automatic CPF/CNPJ validation
- Billing System: Create and manage bills with multiple products and coupon support
- PIX Payments: Generate instant PIX QR codes with customizable expiration
- Coupon System: Create percentage or fixed-value discount coupons
- Withdraw Management: Create and track PIX withdrawals
Real-time webhook monitoring with intelligent event processing:
- 16 Event Types: Monitor PIX payments, billing changes, customer creation, coupon usage, and withdrawals
- Smart Detection: Automatically detects resource type from webhook data
- Enriched Data: Provides formatted amounts, parsed names, document validation, and status flags
- Flexible Authentication: Supports none, basic auth, and header-based authentication
Install from npm:
npm install n8n-nodes-abacatepay-community- Get AbacatePay API Key: Sign up at AbacatePay and get your API key
- Add Credentials: In n8n, create new "AbacatePay API" credentials with your API key
- Configure Webhooks: Set up webhook URLs in your AbacatePay dashboard to receive real-time events
// Node: AbacatePay - Customer - Create
{
"name": "João Silva Santos",
"cellphone": "(11) 99999-8888",
"email": "joao@example.com",
"taxId": "123.456.789-01"
}// Node: AbacatePay - PIX QR Code - Create
{
"amount": 5000, // R$ 50.00 in cents
"description": "Premium Plan Payment",
"expiresIn": 1800, // 30 minutes
"customer": {
"name": "João Silva Santos",
"email": "joao@example.com"
}
}// Trigger: AbacatePay Trigger
// Events: ["pix.payment.completed", "billing.paid"]
// Automatically receives enriched data:
{
"event": "pix.payment.completed",
"resourceType": "pix",
"amounts": {
"raw": 5000,
"reais": "50.00",
"net": 4920,
"netReais": "49.20"
},
"customer": {
"name": {
"first": "João",
"full": "João Silva Santos"
},
"document": {
"type": "CPF",
"cleaned": "12345678901"
}
}
}- Create: Register new customers with validation
- List: Retrieve all registered customers
- Create: Generate payment links with multiple products
- List: View all created bills and their status
- Create: Generate instant PIX QR codes
- Simulate Payment: Test payments in development mode
- Check Status: Verify payment status
- Create: Create discount coupons (percentage or fixed value)
- List: Manage all created coupons
- Create: Process PIX withdrawals to bank accounts
- List: Track withdrawal history and status
The AbacatePay Trigger monitors these event types:
| Event | Description |
|---|---|
customer.created |
New customer registered |
customer.updated |
Customer data updated |
pix.payment.completed |
PIX payment successful |
pix.payment.expired |
PIX QR code expired |
pix.payment.cancelled |
PIX payment cancelled |
pix.qrcode.created |
PIX QR code generated |
billing.created |
New bill created |
billing.paid |
Bill payment confirmed |
billing.expired |
Bill expired |
billing.cancelled |
Bill cancelled |
coupon.created |
New coupon created |
coupon.redeemed |
Coupon used |
coupon.expired |
Coupon expired |
withdraw.created |
Withdrawal initiated |
withdraw.completed |
Withdrawal processed |
withdraw.failed |
Withdrawal failed |
The trigger automatically enriches webhook data with:
- Formatted Amounts: Converts cents to Brazilian Real (R$)
- Net Calculations: Deducts platform fees automatically
- Name Parsing: Extracts first/last names from full names
- Document Validation: Identifies CPF vs CNPJ documents
- Email Analysis: Extracts domains and identifies personal emails
- Status Flags: Boolean flags for quick conditional logic
Configure your AbacatePay credentials in n8n:
- API Key: Your AbacatePay Bearer token
- Base URL: Default is
https://api.abacatepay.com(change for different environments)
- Trigger: Customer created
- Action: Send personalized welcome email
- Action: Create welcome discount coupon
- Action: Update CRM with new customer
- Trigger: PIX payment completed
- Condition: Check payment amount
- Action: Send receipt email
- Action: Activate purchased service
- Action: Update analytics
- n8n version 0.198.0 or higher
- Node.js 20.15 or higher
- AbacatePay account with API access
MIT License - see LICENSE file for details.
- š§ Email: ajuda@abacatepay.com
- š Documentation: AbacatePay API Docs
Contributions are welcome! Please read our contributing guidelines and submit pull requests to our repository.
Made with ā¤ļø for the n8n community and Brazilian payment automation.