Skip to main content

Credit Card Checker

Submit credit card and billing data for fraud risk analysis.

Submit Card Data

POST /checkers/ccard/

Request Body

User Info

FieldTypeDescription
user_languagestringBrowser language
user_agentstringBrowser user agent
user_ipstringUser IP address
usernamestringUsername
password_hashstringPassword SHA256 hash

Billing Address

FieldTypeDescription
billing_first_namestringFirst name
billing_last_namestringLast name
billing_companystringCompany
billing_countrystringCountry name or ISO Alpha-2 (e.g. US)
billing_address_1stringStreet address line 1
billing_address_2stringStreet address line 2
billing_citystringCity
billing_statestringRegion or state
billing_zipcodestringPostcode or ZIP
billing_phonestringPhone
billing_emailstringEmail

Shipping Address

FieldTypeDescription
shipping_first_namestringFirst name
shipping_last_namestringLast name
shipping_companystringCompany
shipping_countrystringCountry
shipping_address_1stringStreet address line 1
shipping_address_2stringStreet address line 2
shipping_citystringCity
shipping_statestringRegion or state
shipping_zipcodestringPostcode or ZIP
shipping_phonestringPhone
shipping_emailstringEmail

Card Details

FieldTypeDescription
credit_card_binstringFirst 6 digits of the card (Bank Identification Number)
credit_card_numberstringFull card number
credit_card_expiration_monthstringExpiration month
credit_card_expiration_yearstringExpiration year
avs_codestringAVS response code
cvv_codestringCVV response code

Order Details

FieldTypeDescription
order_amountstringOrder total amount
order_quantitystringNumber of items
recurringbooleanWhether this is a recurring/rebilling order
recurring_timesintegerNumber of recurring billing cycles
is_expert_checkbooleanEnable expert-level analysis
{
"user_ip": "1.2.3.4",
"user_agent": "Mozilla/5.0 ...",
"billing_first_name": "John",
"billing_last_name": "Doe",
"billing_country": "US",
"billing_email": "john@example.com",
"credit_card_bin": "411111",
"credit_card_number": "4111111111111111",
"credit_card_expiration_month": "12",
"credit_card_expiration_year": "2026",
"order_amount": "99.99",
"order_quantity": "1",
"recurring": false,
"is_expert_check": false
}

Get Check Result

GET /checkers/ccard/{id}/

Retrieve the fraud analysis result for a specific task.

Path Parameters

ParameterTypeDescription
idstring (uuid)Task identifier

Response

{
"id": "743e5273-70c6-47fa-96cf-9a8f8a9de6de",
"status": "completed",
"created_at": "2024-01-15T10:30:00Z",
"report": "..."
}

Status Values

StatusDescription
newJust created. Not yet processed.
ready_to_perform_auditReady to run audit
processingWaiting for report
completedFinished (success or failed, details in report)

List All Results

GET /checkers/ccard/

Retrieve all credit card check results for your account.

Query Parameters

ParameterTypeDescription
pageintegerPage number

Example

import time
import requests

API_KEY = "YOUR_API_KEY"
BASE_URL = "https://detect.expert/api/v1"
headers = {"X-Api-Key": API_KEY}

# Submit card data
payload = {
"user_ip": "1.2.3.4",
"billing_country": "US",
"billing_email": "john@example.com",
"credit_card_bin": "411111",
"credit_card_number": "4111111111111111",
"credit_card_expiration_month": "12",
"credit_card_expiration_year": "2026",
"order_amount": "99.99",
"is_expert_check": False,
}
response = requests.post(f"{BASE_URL}/checkers/ccard/", json=payload, headers=headers)
print(response.json())

# Poll for results
task_id = "743e5273-70c6-47fa-96cf-9a8f8a9de6de"
while True:
result = requests.get(f"{BASE_URL}/checkers/ccard/{task_id}/", headers=headers)
data = result.json()
if data["status"] == "completed":
print(data["report"])
break
time.sleep(5)