AI-Process Credit Card using n8n action
PDF4me AI-Process Credit Card extracts structured data from credit cards and cards using AI-powered machine learning through n8n automation workflows. Process credit card PDFs or images via n8n triggers, binary data, base64 strings, or public URLs to automatically extract card numbers, expiry dates, cardholder names, CVV codes, card types, issuing banks, card brands, account numbers, valid dates, and other credit card fields with high accuracy and intelligent field recognition. This solution is ideal for credit card processing automation, payment card digitization, expense tracking, financial data extraction, automated card verification, PCI DSS compliance workflows, and credit card information processing workflows that require AI-powered extraction with structured output and seamless integration.
Setup
Add the PDF4me "AI-Process Credit Card" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.
Prerequisites:
- PDF4me API credentials
- n8n workflow access
Configuration:
- Add PDF4me node to workflow
- Select "AI-Process Credit Card" action
- Configure input parameters (see below)

Parameters
Complete list of parameters for the AI-Process Credit Card action. Configure these parameters to control credit card processing.
Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| Input Data Type*** | String | Credit Card Input Format Selection • Choose the format of your credit card data input • PDF4me supports multiple input types • Options: Binary Data, Base64 String, or URL | Binary Data |
| Input Binary Field*** | Binary | Binary Credit Card File Input (Required if Binary Data) • Reference credit card file (.pdf, .png, .jpg, .jpeg) from previous n8n node or file upload • PDF4me processes binary credit card files with automatic format detection and AI-powered data extraction • Required when Input Data Type is "Binary Data" | {{ $binary.data }} |
| Base64 Credit Card Content*** | String | Base64 Encoded Credit Card Input (Required if Base64 String) • Provide credit card content (.pdf, .png, .jpg, .jpeg) as base64 encoded string for secure transmission • PDF4me automatically decodes and processes the credit card content using AI technology • Required when Input Data Type is "Base64 String" | JVBERi0xLjQKJ... |
| Credit Card URL*** | String | Public Credit Card URL Input (Required if URL) • Provide a public/open permission URL to the credit card file (.pdf, .png, .jpg, .jpeg) to be processed • PDF4me downloads and processes the credit card file from the provided URL using AI technology • Required when Input Data Type is "URL" | https://abc.com/credit_card.pdf |
| Credit Card Name*** | String | Credit Card Input Filename • Specify the name of the input credit card file with proper extension (.pdf, .png, .jpg, .jpeg) • PDF4me uses this for format detection and AI processing optimization | credit_card_statement.pdf |
| Custom Field Keys | Array | Optional Custom Field Keys List • Optional list of custom field keys to extract from the credit card • Specify additional fields beyond standard credit card data • Supports multiple custom field keys for enhanced data extraction | ["customField1", "customField2"] |
Output
Output Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| creditCardData | Object | PDF4me extracted credit card data - Object containing all extracted credit card fields including bank name, card number, expiry date, CVV, cardholder name, and other card-related information | {"bankName": "MY BANK", "cardNumber": "1234 5678 9012 3456", "expiryDate": "05/16", ...} |
| jobId | String | PDF4me processing job identifier - Unique identifier for the AI processing job, used for tracking and debugging purposes | 00000000-0000-0000-0000-000000000000 |
| jobIdExt | String | PDF4me external job identifier - External job identifier for integration with third-party systems, if applicable | null |
| success | Boolean | PDF4me AI extraction status indicator - Boolean flag indicating the success or failure of the AI-powered credit card data extraction process. PDF4me returns true for successful extractions and false for any errors | true |
| message | String | PDF4me AI extraction status message - Descriptive message indicating the result of the AI-powered credit card data extraction process. PDF4me provides clear status messages for successful extractions and detailed error information | Credit card data extracted successfully using AI technology |
Credit Card Data Fields:
The creditCardData object contains the following credit card related fields:
| Field Name | Type | Description | Example |
|---|---|---|---|
| bankName | String | The name of the bank issuing the credit card | MY BANK |
| cardNumber | String | The primary account number (PAN) of the credit card | 1234 5678 9012 3456 |
| expiryDate | String | The expiration date of the credit card (typically in MM/YY format) | 05/16 |
| cvv | String | The Card Verification Value (CVV) or Card Security Code (CSC) | 567 |
| cardType | String | The type of credit card (e.g., Visa, MasterCard, American Express) | "" (empty if not detected) |
| cardholderName | String | The name of the cardholder as it appears on the credit card | JOHN DOE |
| cardBrand | String | The brand of the credit card (e.g., Visa, MasterCard, Discover) | "" (empty if not detected) |
| issuingBank | String | The name of the bank that issued the credit card | "" (empty if not detected) |
| accountNumber | String | The associated bank account number, if available on the statement | "" (empty if not available) |
| validFrom | String | The valid-from date of the credit card (typically in MM/YY format) | "" (empty if not available) |
| validThru | String | The valid-through date of the credit card, often same as expiryDate | 05/16 |
| warnings | Array | PDF4me processing warnings - Array of warning messages indicating potential data quality issues or extraction challenges encountered during processing | ["Vision AI processing completed successfully"] |
| fallbackUsed | Boolean | PDF4me fallback indicator - Boolean flag indicating whether fallback extraction methods were used during processing | false |
N8N Action Response
The PDF4me AI-Process Credit Card API returns a JSON response with the following structure:
{
"creditCardData": {
"bankName": "MY BANK",
"cardNumber": "1234 5678 9012 3456",
"expiryDate": "05/16",
"cvv": "567",
"cardType": "",
"cardholderName": "JOHN DOE",
"cardBrand": "",
"issuingBank": "",
"accountNumber": "",
"validFrom": "",
"validThru": "05/16",
"warnings": [
"Vision AI processing completed successfully"
],
"fallbackUsed": false
},
"jobId": "87654321-4321-4321-4321-210987654321",
"jobIdExt": "CC-2024-001",
"success": true,
"message": "Credit card data extracted successfully using AI technology"
}
Use Cases
Enterprise Payment Automation
- Expense Processing: Automate expense data extraction from credit cards
- Card Management: Manage credit card information using extracted card data
- Financial Reconciliation: Reconcile credit card transactions with accounting records
- PCI DSS Compliance: Ensure PCI DSS compliance for credit card data handling
AI-Powered Document Processing
- Multi-Format Support: Process PDF, PNG, JPG, and JPEG credit card formats
- Multi-Language Processing: Extract data from credit cards in various languages
- Intelligent Field Recognition: Automatically identify and extract relevant card fields
Business Intelligence and Analytics
- Expense Analytics: Analyze spending patterns from extracted credit card data
- Compliance Monitoring: Ensure PCI DSS compliance using extracted card information
- Performance Metrics: Track processing accuracy and efficiency