Credit Card

Credit card data

Fetch a given card

fetch('https://api.placeholderjson.dev/credit-card/1')
.then(response => response.json())
.then(json => console.log(json))

// Return
{
  "type": "visa",
  "number": 4485295480034380,
  "expiry": "04/2022",
  "cvc": 863
}

List all cards

fetch('https://api.placeholderjson.dev/credit-card')
.then(response => response.json())
.then(json => console.log(json))

// Return
[{"type":"visa","number":4485295480034380 /* ... */]

Information

Data

NameType
typestring
numbernumber
expirystring
cvcnumber