Credit card verification
2 min
card
Verify whether the credit card is truly owned by the customer based on the last 4 digits of the user's credit card
POST
https://api-sandbox.klavi.ai/data/eco/v1/verify/card
require "uri"
require "json"
require "net/http"
url = URI("https://api-sandbox.klavi.ai/data/eco/v1/verify/card")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"taxId": "String",
"institutionCode": "String",
"kycVerified": "Boolean"
"cardLast4": "String"
})
response = https.request(request)
puts response.read_body
The participant institution code list can be found in Participant Institutions.
status
status | Description |
|---|---|
matched | The last 4 digits of the user's credit card number match |
notMatched | The last 4 digits of the user's credit card number not match |
notFound | Not found |