npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

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.

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.

n8n Version License TypeScript

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)

  1. Open your n8n instance
  2. Go to Settings > Community Nodes
  3. Click Install a community node
  4. Enter n8n-nodes-marqeta
  5. Click Install

Manual Installation

# Navigate to your n8n installation
cd ~/.n8n

# Install the package
npm install n8n-nodes-marqeta

Development 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 start

Credentials 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 request
  • transaction.authorization.clearing - Authorization cleared
  • transaction.authorization.reversal - Authorization reversed
  • transaction.clearing - Transaction cleared
  • transaction.refund - Refund processed

Card Events

  • card.created - New card created
  • card.activated - Card activated
  • card.suspended - Card suspended
  • card.terminated - Card terminated
  • card.pin.changed - PIN changed

User Events

  • user.created - User created
  • user.updated - User updated
  • user.transition - User status changed
  • user.kyc.completed - KYC completed
  • user.kyc.failed - KYC failed

Funding Events

  • gpa.credit - Funds loaded
  • gpa.debit - Funds withdrawn
  • directdeposit.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 activated
  • ACTIVE - Card is active and usable
  • SUSPENDED - Card temporarily disabled
  • TERMINATED - 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

  1. Never log full PAN, CVV, or PIN values
  2. Use the provided PCI utilities for masking sensitive data
  3. Enable webhook signature verification
  4. Use sandbox environment for testing
  5. Rotate API credentials regularly
  6. 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 dev

Author

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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Support

Acknowledgments

  • Marqeta for their comprehensive card issuing platform
  • n8n for the powerful workflow automation platform
  • The open-source community for inspiration and support