This API allows you to validate any credit card number and returns the provider if valid. THIS API DOES NOT STORE CARD NUMBERS
https://api.msmc.cc/api
Endpoint: /creditcard/check
Method: GET or POST
Queries Parameters:
card - REQUIREDExample Request:
/creditcard/check?card=371449635398431
Example URL:
https://api.msmc.cc/api/creditcard/check?card=371449635398431
Body Parameters:
card - REQUIREDExample Body:
{
"card": "371449635398431"
}
Example Request:
curl -X POST https://api.msmc.cc/api/creditcard/check \
-H "Content-Type: application/json" \
-d '{"card":"371449635398431"}'
{
"card": "371449635398431",
"valid": true,
"provider": "American Express",
"message": "card is valid"
}
This error will occur if you do not pas the card query in your request.
Example:
{
"valid": false,
"provider": null,
"message": "no card number"
}
This error will occur if you pass an invalid card number
Example:
{
"card": "hsfuwefuwey",
"valid": false,
"provider": "unknown",
"message": "card is invalid"
}
For support, email [email protected]