Credit Card API

Description

Generate a fake credit card. This endpoint is very useful for creating test or mocking data. The information returned is not real and any credit card numbers generated by this endpoint will not work for payments. The information is completely fabricated but adheres to internationally accepted standards and validation rules.

Endpoint

> GET https://api.jsonrepo.com/v1/compute/generator/creditcard

Headers

Field Description
api_key Required Your API Key

Parameters

None.

Response

A successful request will result in a populated payload field with the expected output. A failed request will result in an error output as detailed in Error Rules with a message detailing the error.

See the examples section for more information.

Request

  • Curl
// Generate a fake credit card

curl \
https://api.jsonrepo.com/v1/compute/generator/creditcard \
-H "api_key: {YOUR_API_KEY_HERE}" 

Success Response

{
    "http_code": 200,
    "http_message": "Ok",
    "message": "Successful execution",
    "payload": {
        "credit_card": {
            "type": "Visa",
            "number": "4909232365286940",
            "name": "Edwardo Miller",
            "expirationDate": "08/26",
            "issuer": "Ankunding and Sons Bank",
            "cvv": 369
        }
    }
}