https://www.brainiac.software/api/v1/card-payments/pan-check$0.01 USDCValidate a card PAN (Luhn)
Check card number length and Luhn check digit. Never echoes the full PAN; returns masked form and last4 only.
Body
| Field | Required | Notes |
|---|---|---|
pan | Yes | string |
Request exampleJSON
{
"pan": "4111111111111111"
}Response exampleJSON
{
"length": 16,
"luhnValid": true,
"last4": "1111",
"masked": "411111******1111",
"sources": [
{
"source": "ISO/IEC 7812-1 Annex B Luhn (mod 10)",
"url": "https://www.iso.org/standard/70484.html",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Luhn and length only; does not identify the brand or confirm the card exists.",
"Not legal advice. Outputs are lookups or prechecks for human review."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/card-payments/pan-check" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"pan": "4111111111111111"
}
JSONhttps://www.brainiac.software/api/v1/card-payments/pan-mask$0.01 USDCMask a PAN or redact PANs in text
PCI DSS display masking for a single PAN, or find and redact Luhn-valid PANs in free text.
Body
| Field | Required | Notes |
|---|---|---|
pan | No | string |
text | No | string |
binLength | No | Default: 6 |
Request exampleJSON
{
"pan": "4111111111111111",
"binLength": 6
}Response exampleJSON
{
"masked": "411111******1111",
"sources": [
{
"source": "PCI DSS v4.0.1 Req 3.4.1 / FAQ #1492",
"url": "https://www.pcisecuritystandards.org/faqs",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Display masking only; storage truncation formats are out of scope.",
"Not legal advice. Outputs are lookups or prechecks for human review."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/card-payments/pan-mask" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"pan": "4111111111111111",
"binLength": 6
}
JSONhttps://www.brainiac.software/api/v1/card-payments/interchange-cap-check$0.02 USDCCheck EU/US interchange fee caps
Compute regulated maximum interchange under EU IFR consumer caps or US Reg II debit caps and flag fees above the cap.
Body
| Field | Required | Notes |
|---|---|---|
regime | Yes | string; One of: EU_IFR, US_REG_II |
cardType | Yes | string; One of: consumer_debit, consumer_credit, debit, commercial |
amount | Yes | integer |
currency | Yes | string |
actualFee | No | integer |
regulatedIssuer | No | boolean |
fraudAdjustmentEligible | No | boolean; Default: false |
domesticCapOverride | No | number |
Request exampleJSON
{
"regime": "EU_IFR",
"cardType": "consumer_debit",
"amount": 10000,
"currency": "EUR",
"actualFee": 30
}Response exampleJSON
{
"capMinor": 20,
"capExact": 20,
"capFormula": "0.2% × 10000",
"exceedsCap": true,
"excessMinor": 10,
"sources": [
{
"source": "Regulation (EU) 2015/751 Arts 3–4",
"url": "https://www.legislation.gov.uk/eur/2015/751/article/3/adopted",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Member State domestic lower caps are not bundled; pass domesticCapOverride when needed.",
"Rounding uses floor(capExact); regulations do not specify rounding.",
"…"
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/card-payments/interchange-cap-check" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"regime": "EU_IFR",
"cardType": "consumer_debit",
"amount": 10000,
"currency": "EUR",
"actualFee": 30
}
JSONhttps://www.brainiac.software/api/v1/card-payments/sca-exemption-evaluate$0.03 USDCEvaluate PSD2 SCA exemptions
Decide which PSD2 RTS SCA exemptions may apply to a remote or contactless payment from caller-supplied facts.
Body
| Field | Required | Notes |
|---|---|---|
channel | Yes | string; One of: remote, contactless_pos |
instrument | Yes | string; One of: card, credit_transfer |
amountEur | Yes | number |
sinceLastSca | No | object; Default: {"cumulativeEur":0,"count":0}; Object |
trustedBeneficiary | No | boolean; Default: false |
trustedBeneficiaryListChanging | No | boolean; Default: false |
recurringSameAmountSamePayee | No | boolean; Default: false |
firstInSeries | No | boolean; Default: false |
sameOwnerSameAspsp | No | boolean; Default: false |
tra | No | object; Object |
Request exampleJSON
{
"channel": "remote",
"instrument": "card",
"amountEur": 25,
"sinceLastSca": {
"cumulativeEur": 40,
"count": 2
}
}Response exampleJSON
{
"scaRequired": false,
"exemptions": [
{
"article": "16",
"name": "remote_low_value",
"applies": true
}
],
"evaluated": [
{
"article": "11",
"name": "contactless_pos",
"applies": false,
"reason": "channel is not contactless_pos"
},
{
"article": "13",
"name": "trusted_beneficiaries",
"applies": false,
"reason": "payee is not a trusted beneficiary"
},
"…"
],
"sources": [
{
"source": "Commission Delegated Regulation (EU) 2018/389",
"url": "https://www.legislation.gov.uk/eur/2018/389/contents/adopted",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Applying an exemption is the PSP's choice; liability rules (PSD2 Art 74) still apply.",
"Art 16/11 use previous transactions excluding the current one (literal article wording); some issuers also count the cu…",
"…"
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/card-payments/sca-exemption-evaluate" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"channel": "remote",
"instrument": "card",
"amountEur": 25,
"sinceLastSca": {
"cumulativeEur": 40,
"count": 2
}
}
JSONhttps://www.brainiac.software/api/v1/card-payments/app-scam-reimbursement$0.03 USDCUK APP scam reimbursement split
Calculate the UK mandatory APP scam reimbursement amount and 50:50 receiving-PSP contributions under PSR rules.
Body
| Field | Required | Notes |
|---|---|---|
scheme | Yes | string; One of: FPS, CHAPS |
payments | Yes | array; Array |
claimDate | Yes | string |
excessApplied | No | integer; Default: 0 |
vulnerable | No | boolean; Default: false |
exceptionsAsserted | No | array; Default: []; Array |
Request exampleJSON
{
"scheme": "FPS",
"payments": [
{
"date": "2026-09-01",
"amount": 6000000,
"receivingPsp": "BANK_A"
},
{
"date": "2026-09-03",
"amount": 3000000,
"receivingPsp": "BANK_B"
}
],
"claimDate": "2026-10-01",
"excessApplied": 10000,
"vulnerable": false
}Response exampleJSON
{
"eligible": true,
"claimValue": 9000000,
"cappedValue": 8500000,
"excess": 10000,
"requiredReimbursement": 8490000,
"receivingPspShares": [
{
"psp": "BANK_A",
"attributable": 5660000,
"contribution": 2830000,
"maxDeductionForUnappliedExcess": 0
},
{
"psp": "BANK_B",
"attributable": 2830000,
"contribution": 1415000,
"maxDeductionForUnappliedExcess": 0
}
],
"notes": [],
"sources": [
{
"source": "PSR Specific Requirement 1 (July 2024)",
"url": "https://www.psr.org.uk/media/xenefhgp/amended-specific-requirement-1-july-2024-corrected.pdf",
"retrievedAt": "2026-11-14",
"status": "ok"
},
{
"source": "PSR PS25/5 (May 2025)",
"url": "https://www.psr.org.uk/media/rhelv4op/ps25-5-app-scams-reimbursement-consolidated-policy-statement-may-2025.pdf",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Maximum reimbursement £85,000; maximum excess £100. Vulnerable consumers: excess and gross-negligence exception not app…",
"Not legal advice. Outputs are lookups or prechecks for human review."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/card-payments/app-scam-reimbursement" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"scheme": "FPS",
"payments": [
{
"date": "2026-09-01",
"amount": 6000000,
"receivingPsp": "BANK_A"
},
{
"date": "2026-09-03",
"amount": 3000000,
"receivingPsp": "BANK_B"
}
],
"claimDate": "2026-10-01",
"excessApplied": 10000,
"vulnerable": false
}
JSONhttps://www.brainiac.software/api/v1/card-payments/psd2-certificate-roles$0.03 USDCParse PSD2 eIDAS certificate roles
Parse a TPP QWAC/QSealC certificate for PSD2 roles, NCA and authorisation number. Does not verify the chain.
Body
| Field | Required | Notes |
|---|---|---|
certificatePem | Yes | string |
Request exampleJSON
{
"certificatePem": "-----BEGIN CERTIFICATE-----\nMIIBkTCB+wIJAKHBlv7example000000000000000000000000000000\n-----END CERTIFICATE-----"
}Response exampleJSON
{
"subject": "CN=Test TPP\nO=Test TPP Ltd\norganizationIdentifier=PSDPL-PFSA-1234567890",
"issuer": "CN=Test TPP\nO=Test TPP Ltd\norganizationIdentifier=PSDPL-PFSA-1234567890",
"notBefore": "2024-01-01T00:00:00.000Z",
"notAfter": "2030-01-01T00:00:00.000Z",
"organizationIdentifier": "PSDPL-PFSA-1234567890",
"authorisation": {
"country": "PL",
"nca": "PFSA",
"number": "1234567890"
},
"psd2": {
"present": true,
"roles": [
{
"oid": "0.4.0.19495.1.2",
"name": "PSP_PI",
"nameMatchesOid": true
},
{
"oid": "0.4.0.19495.1.3",
"name": "PSP_AI",
"nameMatchesOid": true
}
],
"ncaName": "PFSA",
"ncaId": "PL-PFSA"
},
"issues": [],
"sources": [
{
"source": "ETSI TS 119 495 V1.7.1 (2024-07)",
"url": "https://www.etsi.org/deliver/etsi_ts/119400_119499/119495/01.07.01_60/ts_119495v010701p.pdf",
"retrievedAt": "2026-11-14",
"status": "ok"
}
],
"limitations": [
"Parses the certificate only; does not verify the chain, revocation, or the EBA/NCA register.",
"Not legal advice. Outputs are lookups or prechecks for human review."
]
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/card-payments/psd2-certificate-roles" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"certificatePem": "-----BEGIN CERTIFICATE-----\nMIIBkTCB+wIJAKHBlv7example000000000000000000000000000000\n-----END CERTIFICATE-----"
}
JSON