Card Management

Issue and manage virtual debit cards linked to your ClawPay vaults.

Overview

ClawPay cards are virtual Visa debit cards that:

  • Draw funds from specific vaults

  • Work at 40M+ merchants worldwide

  • Support online and in-store purchases

  • Enforce spending limits and merchant restrictions

  • Provide real-time transaction notifications

Creating Cards

Basic Card

const card = await client.cards.create({
  vaultId: 'vault_123',
  cardholderName: 'John Doe',
  billingAddress: {
    line1: '123 Market St',
    city: 'San Francisco',
    state: 'CA',
    postalCode: '94103',
    country: 'US'
  }
});

console.log(`Card number: ${card.maskedNumber}`);
console.log(`CVV: ${card.cvv}`);
console.log(`Expires: ${card.expiryMonth}/${card.expiryYear}`);

Card with Spending Limits

Card with Merchant Restrictions

Card Properties

Revealing Card Details

For security, full card details are only returned during creation. To retrieve them later:

Security Note: This endpoint requires authentication and may trigger 2FA. The response is not logged.

Spending Limits

Setting Limits

Checking Spent Amounts

Temporary Limit Increases

Merchant Controls

Allowed Categories

Restrict card to specific merchant categories:

Category Reference

Common MCC categories:

  • cloud_services - Cloud hosting and infrastructure

  • software - Software and SaaS

  • advertising - Online advertising

  • office_supplies - Office equipment and supplies

  • travel - Airlines, hotels, car rentals

  • restaurants - Dining and food services

  • fuel - Gas stations

  • telecommunications - Phone and internet services

Full category list →arrow-up-right

Merchant Blocklist

Merchant Whitelist

Only allow specific merchants:

Card Status Management

Freezing Cards

Temporarily disable a card:

When frozen:

  • All transactions are declined

  • Card details remain valid

  • Can be unfrozen at any time

Unfreezing Cards

Cancelling Cards

Permanently disable a card:

Important: Cancellation is irreversible. Create a new card if needed.

Virtual Card Features

Single-Use Cards

Create a card for one-time use:

The card is automatically cancelled after the first successful transaction.

Expiring Cards

Set custom expiration dates:

Subscription Cards

Cards optimized for recurring payments:

Transaction Notifications

Real-Time Alerts

Receive instant notifications:

Webhook Events

Card Security

3D Secure

Enable 3D Secure for online transactions:

Geographic Restrictions

Limit card usage by region:

Transaction Velocity Controls

Prevent rapid successive transactions:

Card Metadata

Store custom data with cards:

Bulk Card Management

Issue Multiple Cards

Freeze All Cards

Transaction History

View card-specific transactions:

Export Card Transactions

Card Analytics

Spending Insights

Decline Analysis

Best Practices

1. Set Conservative Limits Initially

2. Use Merchant Restrictions

3. Enable Notifications

4. Regular Audits

5. Freeze Lost Cards Immediately

Troubleshooting

Card Declined

Common decline reasons:

Card Not Working

Next Steps

Last updated