n8n-nodes-marqeta
v1.0.0
Published
A comprehensive n8n community node for Marqeta card issuing platform providing 27 resources and 200+ operations for card program management, user lifecycle, transactions, KYC, digital wallets, and real-time decisioning.
Maintainers
Readme
n8n-nodes-marqeta
[Velocity BPA Licensing Notice]
This n8n node is licensed under the Business Source License 1.1 (BSL 1.1).
Use of this node by for-profit organizations in production environments requires a commercial license from Velocity BPA.
For licensing information, visit https://velobpa.com/licensing or contact [email protected].
A comprehensive n8n community node for the Marqeta card issuing platform, providing 27 resources and 200+ operations for complete card program management, user lifecycle, transactions, KYC verification, digital wallets, and real-time decisioning.
Features
- Complete User Management: Create, update, search users with full KYC integration
- Card Lifecycle: Issue, activate, suspend, terminate, and manage physical and virtual cards
- Transaction Processing: Real-time authorization, clearing, refunds, and reversals
- GPA Operations: Load funds, unload funds, balance inquiries
- Velocity Controls: Create spending limits and transaction restrictions
- Digital Wallets: Apple Pay, Google Pay, Samsung Pay token management
- Real-Time Webhooks: Receive instant notifications for all card events
- Sandbox Simulation: Test transactions without real money movement
- PCI Compliant: Built-in utilities for safe handling of sensitive card data
Installation
Community Nodes (Recommended)
- Open your n8n instance
- Go to Settings > Community Nodes
- Click Install a community node
- Enter
n8n-nodes-marqeta - Click Install
Manual Installation
# Navigate to your n8n installation
cd ~/.n8n
# Install the package
npm install n8n-nodes-marqetaDevelopment Installation
# Clone the repository
git clone https://github.com/Velocity-BPA/n8n-nodes-marqeta.git
cd n8n-nodes-marqeta
# Install dependencies
npm install
# Build the project
npm run build
# Link to n8n
mkdir -p ~/.n8n/custom
ln -s $(pwd) ~/.n8n/custom/n8n-nodes-marqeta
# Restart n8n
n8n startCredentials Setup
Marqeta API Credentials
| Field | Description | |-------|-------------| | Environment | Sandbox, Production, or Custom endpoint | | Application Token | Your Marqeta Application Token | | Admin Access Token | Your Master Access Token | | Webhook Signature Key | (Optional) Key for webhook verification |
Marqeta Program Credentials (Optional)
| Field | Description | |-------|-------------| | Program Short Code | Your program identifier | | Program Funding Source Token | Default funding source | | Default Card Product Token | Default card product |
Resources & Operations
User Resource
- Create, Get, Update, Delete users
- Search users by email, phone, or custom fields
- Get/Update user balance
- Manage user transitions (activate, suspend, close)
- Create and manage user notes
- Get SSN (masked or full)
Card Resource
- Create cards for users
- Activate, suspend, terminate cards
- Report lost/stolen cards
- Reveal PAN, CVV (PCI compliant)
- Get/Set PIN
- Manage card transitions
GPA (General Purpose Account)
- Create GPA orders (load funds)
- Create unloads (withdraw funds)
- Get GPA balance
- List GPA orders by user
Transaction Resource
- Get transaction details
- List transactions by user/card
- Simulate authorization (sandbox)
- Simulate clearing (sandbox)
- Simulate refunds/reversals (sandbox)
KYC Resource
- Perform identity verification
- Get KYC results
- Override KYC decisions
Velocity Control Resource
- Create spending limits
- Set daily/weekly/monthly/lifetime limits
- Get available spending balance
Digital Wallet Resource
- Get wallet tokens
- Manage token states
- Support for Apple Pay, Google Pay, Samsung Pay
Webhook Resource
- Create/manage webhooks
- Test webhook endpoints
- List webhook events
Business Resource
- Create/manage business accounts
- Get business balance
- Manage business transitions
Utility Resource
- Ping API
- Validate card numbers
- Get BIN details
Trigger Node
The Marqeta Trigger node receives real-time webhook events:
Transaction Events
transaction.authorization- Authorization requesttransaction.authorization.clearing- Authorization clearedtransaction.authorization.reversal- Authorization reversedtransaction.clearing- Transaction clearedtransaction.refund- Refund processed
Card Events
card.created- New card createdcard.activated- Card activatedcard.suspended- Card suspendedcard.terminated- Card terminatedcard.pin.changed- PIN changed
User Events
user.created- User createduser.updated- User updateduser.transition- User status changeduser.kyc.completed- KYC completeduser.kyc.failed- KYC failed
Funding Events
gpa.credit- Funds loadedgpa.debit- Funds withdrawndirectdeposit.received- Direct deposit received
Usage Examples
Create a User and Issue a Card
// Step 1: Create User
{
"resource": "user",
"operation": "create",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]"
}
// Step 2: Create Card
{
"resource": "card",
"operation": "create",
"userToken": "{{ $json.token }}",
"cardProductToken": "your-card-product-token"
}
// Step 3: Activate Card
{
"resource": "card",
"operation": "activate",
"cardToken": "{{ $json.token }}"
}Load Funds to User
{
"resource": "gpa",
"operation": "createOrder",
"userToken": "user-token",
"amount": 100.00,
"currency": "USD",
"fundingSourceToken": "funding-source-token"
}Set Velocity Control
{
"resource": "velocityControl",
"operation": "create",
"userToken": "user-token",
"amountLimit": 500,
"velocityWindow": "DAY",
"name": "Daily Spending Limit"
}Marqeta Concepts
Card Product
A template that defines card configuration including:
- Card type (physical/virtual)
- Card network (Visa, Mastercard)
- Spending controls
- Fulfillment options
GPA (General Purpose Account)
The funding account associated with a user or business. Cards draw funds from the GPA for transactions.
JIT Funding
Just-In-Time funding allows real-time funding decisions during transaction authorization.
Velocity Controls
Rules that limit spending based on:
- Transaction amount
- Time window (day, week, month, lifetime)
- MCC restrictions
Card States
UNACTIVATED- Card issued but not yet activatedACTIVE- Card is active and usableSUSPENDED- Card temporarily disabledTERMINATED- Card permanently disabled
Error Handling
The node provides detailed error messages for common scenarios:
| Error Code | Description | |------------|-------------| | 400110 | Insufficient funds | | 400122 | Velocity limit exceeded | | 400130 | Card not active | | 400200 | Suspected fraud |
Security Best Practices
- Never log full PAN, CVV, or PIN values
- Use the provided PCI utilities for masking sensitive data
- Enable webhook signature verification
- Use sandbox environment for testing
- Rotate API credentials regularly
- Implement idempotency keys for financial operations
Development
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm test
# Run linting
npm run lint
# Watch mode for development
npm run devAuthor
Velocity BPA
- Website: velobpa.com
- GitHub: Velocity-BPA
Licensing
This n8n community node is licensed under the Business Source License 1.1.
Free Use
Permitted for personal, educational, research, and internal business use.
Commercial Use
Use of this node within any SaaS, PaaS, hosted platform, managed service, or paid automation offering requires a commercial license.
For licensing inquiries: [email protected]
See LICENSE, COMMERCIAL_LICENSE.md, and LICENSING_FAQ.md for details.
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Support
- Documentation: Marqeta API Docs
- Issues: GitHub Issues
- Email: [email protected]
