Skip to content
Utilerio
All endpoints

Test Credit Card Generator

POST/api/v1/tools/credit-card-generator

Generate Luhn-valid test card numbers with expiry and CVV for development and QA.

Authentication

Requires an API key in the X-API-Key header.

Try it

POST/api/v1/tools/credit-card-generator

Parameters

brandstringoptional

Card network. Default visa.

visamastercardamexdiscover
countintegeroptional

How many test cards to generate (1–10). Default 1.

spacesbooleanoptional

Group digits with spaces. Default true.

Request body

{
  "brand": "visa",
  "count": 1,
  "spaces": true
}

Response codes

  • 200Success.
  • 400Invalid request — check your body or parameters.
  • 401Missing or invalid API key.
  • 403The API key is not scoped to this endpoint.
  • 429Rate limit exceeded — retry after a short wait.

Language

cURL

Request

curl -X POST https://utilerio.com/api/v1/tools/credit-card-generator \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"brand":"visa","count":1,"spaces":true}'

Response

{ "cards": [{ "brand": "visa", "number": "4539 1488 0343 6467", "expiry": "08/29", "cvv": "123", "holder": "TEST USER" }] }