credit_card_number
BusinessGenerate Luhn-valid credit card numbers that pass checksum validation but are entirely fake. Supports Visa, Mastercard, and Amex formats.
Example Outputs
45320151128303665425233430109903374245455400126Parameters
| Parameter | Description |
|---|---|
| network | Card network (visa, mastercard, amex) |
API Usage
Send a POST request to generate credit card number data:
curl -X POST https://mockhero.dev/api/v1/generate \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"tables": [
{
"name": "example",
"count": 5,
"fields": [
{
"name": "credit_card_number",
"type": "credit_card_number",
"params": {
"network": "visa"
}
}
]
}
]
}'Common Use Cases
- Payment form testing
- Card validation testing
- Checkout flow seeding
- PCI compliance testing
Quick Info
- Field Type
- credit_card_number
- Category
- Business
- Parameters
- 1 parameter
- Output Format
- JSON, CSV, SQL
Related Types
Generate Credit Card Number + 155 more types via API
One API call. Multiple tables. Relational integrity. Free tier included.