Creating Cards
This guide walks you through creating and managing cards using the Issuing API.Card Types
The API supports two types of cards:Virtual Cards
Digital cards for online transactions. Instant issuance.
Physical Cards
Physical cards shipped to cardholders. 5-7 business days delivery.
Step 1: Create a Card Account
Before creating a card, you must first create a card account:Step 2: Create a Card
Once you have a card account, create a card:Response
Virtual cards are instantly active and ready to use!
Step 3: Retrieve Card Details
Get Sensitive Card Details
To retrieve full PAN, CVV, and expiry, use the sensitive info endpoint:Step 4: Fund the Card Account
Fund the card account (for prepaid accounts):Step 5: Update Card Spending Controls
Update spending controls for a card:Creating Physical Cards
Physical cards follow the same process. The card account and card creation steps are identical:Shipping information is typically handled separately through your card product configuration or via the cardholder info fields. Check with your solution manager for specific requirements.
Card Lifecycle Management
Activate a Card
Suspend a Card
Temporarily block transactions:Unsuspend a Card
Resume transactions:Cancel a Card
Permanently cancel (irreversible):Best Practices
1. Use Idempotency Keys
Always use idempotency keys when creating cards to prevent duplicates: Header:Idempotency-Key: <unique-value>
Concept:
- Generate a unique identifier (UUID recommended)
- Include in request headers
- Same key = same result (prevents duplicate cards)
POST /v1/cards
Example:
2. Set Appropriate Limits
Start with conservative limits and increase as needed: Endpoint:POST /v1/cards/spending-controls
Recommended Starting Limits:
- Daily: $1,000
- Monthly: $5,000
- Per Transaction: $500
- Set limits based on cardholder risk profile
- Adjust limits dynamically as needed
- Monitor spending patterns
3. Use Metadata for Tracking
Store application-specific data in metadata: Field:xmetadata (object with key-value pairs)
Use Cases:
- Customer ID tracking
- Department/cost center assignment
- Audit trail (who created the card)
- Integration with your systems
4. Monitor Card Status with Webhooks
Subscribe to card events for real-time updates: Webhook Events:card.created- Card successfully createdcard.suspended- Card suspendedcard.unsuspended- Card unsuspendedcard.cancelled- Card cancelled
- Configure webhook endpoint in dashboard
- Receive events when card status changes
- Update your systems accordingly
Complete Workflow Example
Here’s a complete workflow for creating and funding a card:Step-by-Step Process
1. Create Card Account Endpoint:POST /v1/cardaccounts
Request:
cardAccountId
2. Create Card Endpoint:
POST /v1/cards
Headers:
Authorization: Bearer <JWT_TOKEN>Idempotency-Key: <unique-uuid>Content-Type: application/json
id and status
3. Fund Card Account (Optional) Endpoint:
POST /v1/cardaccounts/topup
Request:
4. Retrieve Card Details Endpoint:
GET /v1/cards?cardId=<card-id>
Response: Returns complete card information
5. Set Spending Controls (Optional) Endpoint:
POST /v1/cards/spending-controls
Request:
For language-specific implementation examples, see the Recipes section which contains code examples in various programming languages.
Troubleshooting
Card Creation Failed
Problem:400 Bad Request - Invalid cardAccountId
Solution: Ensure the card account exists and you have the correct cardAccountId. Create a card account first using /v1/cardaccounts.
Problem: 400 Bad Request - Invalid productId
Solution: The productId must be a valid UUID provided by your solution manager. Contact them for available product IDs.
Card Not Active
Problem: Created card showsstatus: "pending"
Solution: For physical cards, status remains “pending” until the card is activated. Use the /v1/cards/activate endpoint to activate.
Sensitive Data Access Denied
Problem:400 Bad Request when accessing /cards/card-sensitive-info
Solution: Ensure you provide all required parameters: cardAccountId, cardId, and ipAddress. The ipAddress must match the client IP that will consume the returned URL.
Next Steps
Card Account Modes
Learn about different card account types
Webhooks Guide
Set up real-time notifications for card events

