For experian.com. An unofficial client, not affiliated with or endorsed by Experian, a trademark of its owner.
An F# client for Experian's developer-portal APIs in the UK, the US, the Netherlands, Spain and Brazil, generated with
SwaggerProvider from the specs in src/ExperianClient/Schemas.
It targets net10.0.
It does not cover every Experian service, only the products below and under Regions. To add another, put
its spec in Schemas, add a provider type in Providers.fs and its base path in Endpoints, and wrap its calls in
Api. The token, the JSON handling and the error type are shared.
Each product is its own type with its own models:
| Type | Product | Wrapped calls (Api.*) |
|---|---|---|
DelphiSelect |
Delphi Select v2.5: consumer bureau search, Identity Authenticate (AuthPlus), Detect, Affordability, ExPIN | application, get, reprocess, quote to full, second phase authenticate (AuthPlus) and detect, stand-alone authenticate (AuthPlus), detect, affordability, ExPIN |
Kyc |
Know Your Customer (consumer), CrossCore | KYC check, PEP and sanctions screen |
PowerCurve |
PowerCurve Customer Acquisition v1.21 | application, reprocess, quote to full, query, decision detail |
WorkReport |
Verifications Work Report | create person, connect, report PDF |
Ned |
National Employer Database | employer search, employer by id |
Idp |
Intelligent Document Processing | documents (upload, replace, get), webhooks, event types, signing secret |
AuthPlus is part of Delphi Select: request it in a new application with Options.AuthenticatePlusRequired, add it
to an earlier application with Api.DelphiSelect.authenticateAsync (second phase, no applicant details needed), or
run it without a credit search with Api.DelphiSelect.authenticateOnlyAsync.
The search type (CAPS type) decides the footprint left on the applicant's credit file, and writing the correct one is
a legal obligation. SearchType keeps the two apart:
Quotation Quotation.PersonalLoan(QL) and the other quotations leave a soft footprint, which other lenders don't see; use them for eligibility.CreditApplication CreditProduct.DebtConsolidationLoan(CD),PersonalLoan(PL) and the others leave a hard one.OtherSearch "EQ"sends any other code from Experian's list unclassified.
let quote = input |> Api.DelphiSelect.setSearchType (Quotation Quotation.PersonalLoan) // soft
// ... the customer accepts the offer:
Api.DelphiSelect.convertQuoteAsync experian experianReference CreditProduct.DebtConsolidationLoan (ValueSome "A1234") ct // hardconvertQuoteAsync only takes a CreditProduct, so a quotation can't be "converted" into another soft search.
CreditAccounts.ofOutput output reads every credit account (CAIS record) in a Delphi Select answer, with:
- the lender, account number, Experian's account and company type codes;
- whose file it matched (applicant, alias, associate, joint applicant), how firmly (same person, potential alias, same-surname household, address-based data), whether it's joint;
- its status; a default with a satisfied date or a paid narrative counts as settled;
- balance, default balance, delinquent balance, credit limit and payment in pounds;
- start, settlement and last-updated dates, and the worst status.
CreditAccounts.fileFound output says whether the answer holds the applicant's credit file: an account, electoral
roll or public record matched to the applicant or their alias as the same person or a potential alias. An answer can
carry records that aren't theirs, so consumer data alone isn't a file. ofOutput returns ValueNone without a file and
ValueSome [] for a file with no accounts, so a missing credit file is never read as "no debts".
CreditAccounts.accountsWithheld output is true when Experian's control details say the subscriber sees no accounts
(SeeCAIS is N): the answer then holds none whatever the applicant owes, so check it before reading ValueSome [].
CreditAccounts.amountOwed is what an account owes now: a defaulted account's current default balance when Experian
reports one, otherwise its balance. CreditAccounts.isOwn tells the applicant's own accounts from everyone else's:
MatchTo alone isn't enough, since same-surname households and address-based data can be matched to the applicant
too. CreditAccounts.outstanding keeps own accounts that aren't settled and still owe something.
CreditAccounts.totalOwed sums amountOwed.
match CreditAccounts.ofOutput output with
| ValueSome accounts -> let debts = CreditAccounts.outstanding accounts in CreditAccounts.totalOwed debts
| ValueNone -> failwith "no credit file in the answer"Before using it for a consolidation loan:
- Not a payoff figure. Balances are what lenders last reported, roughly monthly. Get a settlement figure from each lender before paying.
- It includes mortgages and contracts, such as a mortgage (type
03) or a phone contract (type18). Choose what to consolidate byAccountTypeCode, using Experian's Standard Data Codes; they aren't in the spec, so the codes are left as Experian sends them. - Names and account numbers can be missing. Experian withholds some lender names (for example company type
10), and shows account numbers only for your own data unless agreed otherwise.
Experian refuses a whole search over a field longer than its limit or an address character outside its pattern.
DelphiText has a function per field (flat, houseName, houseNumber, street, district, postTown,
forename, middleName, surname) that cuts the text to the field's limit; address fields also replace refused
characters with spaces (plain). Names have no pattern, so only their length is limited.
Delphi Select has no vulnerability flag. CreditFileSignals.ofOutput output gathers the credit-file signals that can
point to financial difficulty or vulnerability; they corroborate your own assessment, they don't replace it:
Flags: summary flags for the whole search (arrangement, debt management, credit insurance claim, account query, partial settlement, debt assigned, voluntary termination, recourse, gone away, deceased, CIFAS). They can come from associated people's data, not only the applicant's.Instructions: the applicant's own accounts (isOwn) with a special instruction (arrangement, debt management programme, credit insurance claim, …) and its dates.CreditFileSignals.currentInstructions todaykeeps those in force.Notices: the consumer's Notices of Correction, their own statement on the file, as text lines. Lenders are expected to read them before deciding.Cifas: CIFAS markers matched to the applicant, with protective registration (extra identity checks the consumer asked for) told apart from fraud categories.
It returns ValueNone when the answer carries no consumer data.
Typed views over the parts of an answer that decisions rest on. Codes Experian lists in the spec become cases;
anything else stays visible as an Other… case.
-
AuthPlus:
AuthPlus.ofOutput output(orAuthPlus.ofResultsfor second-phase and stand-alone answers) gives each applicant's result:- the decision:
Authenticated,NotAuthenticatedorReferwith its level, orNoDecision; - the decision text, the authentication index, and the level the identity was confirmed at;
- the high-risk policy rules that fired.
- the decision:
-
Impaired credit and public records:
PublicRecords.impairedCredit outputgives Experian's classification per applicant: bankruptcy or IVA in the last three years, CCJ total by band, and three or more months of secured or unsecured arrears in the last two years. The joint applicant's is read only when the answer lists two applicants.PublicRecords.ofOutput outputlists the public records with Experian's type code, whose file they matched, amount, plaintiff and satisfaction date.PublicRecords.unsatisfiedkeeps the applicant's own unsatisfied ones.
-
Affordability:
Affordability.ofOutput outputgives:- CATO income estimates (gross annual, net annual, net monthly) for the main applicant, the joint applicant and the household;
- how the income the applicant supplied compares with the estimate;
- unsecured and secured debt-to-income, and revolving and non-revolving commitments as a share of income.
Fields are
ValueNonewhen the package that fills them wasn't requested. Clients set up for the CATO warning indicator get verification codes 1-3, which stay asOtherVerificationCode. Experian's other affordability variables stay on the generated types. -
KYC and PEP/sanctions:
KycOutcome.ofResponse responsegives:- the overall decision (
Continue,Refer,Stop), its reasons and recommended next actions; - per service, the rules that fired. For identity verification they confirm; for contra-indicator and PEP/sanctions services they alert. The housekeeping rules 9990 and 9991 are left out.
- the overall decision (
-
KYB: a 200 from
Api.Kyb.companyDataAsyncorpeopleDataAsyncdoesn't mean screened and clear: blocks depend on Experian's per-client configuration, and error codes and suppressed checks arrive in a 200.KybOutcome.ofResponse answerandKybOutcome.ofPeopleResponse answergive:Clear: every check ran and every flag it rests on holds its clean value. It covers the key parties the answer lists. CompareResults.BusinessReforMatching.BestMatchedIdwith the company you asked about;NeedsReview(hits, gaps): a person has to look. Each hit names the kind (PEP, sanction, adverse media, dissolved, AML flag, CrossCore refusal or referral and others) and the subject (the company, a key party, the person, or a Lexis Nexis match that links to no party);NotScreened gaps: no hit was seen, but something didn't run or can't be read: an error code, CrossCore not attempted or timed out, a suppressed check, a missing block, flag or director count, a company not found or not named,NumberOfMatchesother than 1, a key party with no name or ids, a null Lexis Nexis row, a value the spec doesn't list.
The answer doesn't say what was asked for, so all checks are expected. A client without one of them, such as no CrossCore licence, uses
KybOutcome.ofResponseFor [ KybCheck.Screening ] answer; only an absent or suppressed result of a check left out is let go. Clean flags must be present:Nofor Lexis Nexis,Nfor the rest,0forDirectorNumDisqualificationsand, on a director,DirectorNumberConvictions. An answer that omits them readsNotScreened.Nobeside a stated risk is a hit, and a hit counts besideDataQualityFlag.In a business search,
excludedissolvedis documented against its name (trueincludes dissolved companies), so check each result'sBusinessStatusinstead of relying on it.
open Experian
let credentials =
{ Username = "portal user" // the Experian developer-portal login
Password = "portal password"
ClientId = "app client id" // from My Apps
ClientSecret = "app client secret" }
// One per application: it holds the token cache and the connections.
let experian = ExperianClient.Create(credentials, Endpoints.sandbox)
let input =
DelphiSelect.Input(
Submission =
DelphiSelect.Submission(
Applicants = [| DelphiSelect.Applicant(ApplicantIdentifier = 1,
Person = DelphiSelect.Person(Forename = Some "ALEXANDER", Surname = Some "MAYER",
DateOfBirth = Some(System.DateOnly(1981, 6, 19)))) |],
Locations = [| DelphiSelect.LocationItem(LocationIdentifier = 1,
UkLocation = DelphiSelect.UKLocation(HouseNumber = Some "36", Postcode = Some "BT13 3SJ")) |],
Residencies = [| DelphiSelect.ResidencyItem(ApplicantIdentifier = 1, LocationIdentifier = 1,
ResidentFrom = Some(System.DateOnly(2018, 2, 18)), Type = Some "01", CanBeSearched = Some "Y") |],
Application = DelphiSelect.Application(ApplicationType = Some "EQ", SearchConsent = Some true),
Options = DelphiSelect.Options(FullFblRequired = true, AuthenticatePlusRequired = true),
ClientData = DelphiSelect.ClientData(ClientAccountNumber = Some "A1234")))
task {
match! Api.DelphiSelect.applicationAsync experian input cancellationToken with
| Ok output -> printfn "%A" output.Response.AuthPlusResults
| Error failure -> printfn "%s" (ExperianFailure.describe failure)
}Every Api call returns Task<Result<_, ExperianFailure>>:
InvalidRequest reason: not sent. A path parameter was empty,.or...ApiError(status, body): Experian answered with a non-success status.TokenRefused(status, body): the token endpoint refused the credentials.- An error body's message can quote what was sent, a name or an address.
describequotes the body's error codes only (ExperianFailure.codesOf).
- An error body's message can quote what was sent, a name or an address.
TransportError exn: there was no complete answer, so whether Experian did the work is unknown.InvalidResponse answer: Experian answered with success and the client could not read it.answerhasHttpStatus,BodyandReason. Experian did the work, so sending a Delphi search again writes another footprint.Bodycan hold a whole credit file:describeand printing the failure leave it out.- A Delphi Select application answer with nothing in
Response, such as{}or an error's body under a success status, is one of these: it would otherwise read as an applicant without a credit file.
- A Delphi Select application answer with nothing in
Cancelling your token throws OperationCanceledException as usual. For operations not in Api, the generated
clients are on the client, already authorised: experian.DelphiSelect, experian.Kyc, experian.PowerCurve, and so on.
ExperianClient.Create(credentials, endpoints, timeout) limits each Api call, with any sign-in and 401 resend inside
it; past the limit the call is a TransportError. Without it the limit is HttpClient's default of 100 seconds.
ApertureClient.Create(authToken, timeout) does the same.
ExperianClient.create credentials endpoints handler shares a caller-owned HttpMessageHandler, such as one
SocketsHttpHandler for the whole application. The client never disposes it. Set AllowAutoRedirect = false on it, as
ExperianClient.CreateHandler() does: following a redirect would send the request body, the sign-in's password or
ApertureClient's token to whatever host it points at.
String path parameters (Experian references, PowerCurve ids, NED employer ids, IDP application ids) are escaped as
one URL segment by the Api functions. The generated clients insert them as they are, so if you call those directly
(experian.DelphiSelect.GetApplication, …), pass only values you trust. Printing Credentials or an AccessToken
shows neither the password, the client secret nor the token.
Api.WorkReport.requestReportAsync returns the report PDF bytes. The generated client has no return value for binary
answers, so this call is sent directly over the same authorised connection.
Experian's token endpoint uses the OAuth password flow. It needs all four credentials: the developer-portal username
and password, plus the app's client id and secret. The client fetches the token on first use and keeps it until a
minute before expires_in runs out; concurrent callers share one fetch. A 401 drops the token and the request is
sent once more with a new one. The token only goes to the hosts in the client's Endpoints: a request for any other
host, such as a path value on a generated client that points elsewhere, is InvalidRequest and not sent.
Refused credentials. Developer-portal passwords expire 90 days after they are set, and failed sign-ins can lock the
account. After a refusal (a 4xx other than 408 and 429), one client doesn't send those credentials again for an hour: calls
return TokenRefused without a request. ExperianFailure.isCredentialRefusal tells this apart from an outage. To use a new
password, make a new client. Clients don't share this memory, so several processes on one account each get their own
attempts: share the refusal between them, take a shared lock around client.Tokens.GetAsync, and stop calling while the
credentials stand refused.
Experian's answers don't always match the specs, so responses are read leniently. Requests are still written exactly as the specs type and name them.
- A string field may arrive as a number (Delphi scorecard ids
E5S042, CIFAS codeSPAC24, Detect indexes): read as its text. - A number may arrive quoted (PowerCurve terms,
ReprocessCount): read as the number. ""or"-"in an optional date, number or enum (PowerCurveScoreIndex): read asNone.- Property names may differ in case (NED sends
employerid): matched case-insensitively. None of the generated types has two names that differ only in case. - A success body that is a JSON string holding an object or array (the KYC sandbox answers this way) is decoded.
- JSON is sent as
application/jsonwithoutcharset, since the gateway answers 415 tocharset=utf-8.
Endpoints.sandbox (sandbox-uk-api.experian.com) and Endpoints.production (uk-api.experian.com) use the
specs' base paths. The KYC, bank account verification, international payments and age and date of birth specs only name
their sandbox path (/da/ccis-devportalapis/), so set { Endpoints.production with Kyc = ... }, and likewise for the
others, if Experian gives you a different live one.
Use only the parts you need. Each region is its own connection, with its own app in the developer portal, and a product's client is only made when first called, so an app enabled for one product needs nothing set up for the others. Connections share the portal login, except Brazil.
| Country | Module | Endpoints | Sign-in | Run against |
|---|---|---|---|---|
| UK | Api.DelphiSelect, Kyc, PowerCurve, WorkReport, Ned, Idp, BankAccountVerify, InternationalPayments, Kyb, AmlFlags, AgeAndDateOfBirth |
sandbox, production |
Portal login and app | The sandbox; see below |
| US | Api.CreditProfile, InstantCredit, Verify |
sandboxUs, productionUs |
Portal login and app | The sandbox; see below |
| US | Api.SsnVerification, VerifyCpd |
sandboxUs, productionUs |
Portal login and app | A stand-in only; see below |
| Most countries | Api.AddressValidation, EmailValidation, PhoneValidation |
None: use ApertureClient |
A token of their own | A stand-in only; see below |
| Netherlands, Spain | Api.WebData |
sandboxEu, productionEu |
Portal login and app | The sandbox |
| Brazil | Api.OpenBanking |
sandboxBrazil, productionBrazil |
Credentials.ofClient: app only, as Basic |
A stand-in only |
-
US: Instant Credit, automotive and TEC Connect succeed on the sandbox. The spec's credit report examples answer 400 "Inquiry Not Allowed" on the sandbox, and healthcare 503, so
creditReportAsyncandhealthcareAsynchave been run but not seen to succeed. Employment Insight and Connect Check haven't been run. -
Netherlands, Spain: the spec names only the sandbox's
/webscores/test-score, so the live path may differ. -
Brazil: Serasa's sandbox answers "not found" for its sign-in and for the products, as of 2026-11. The live host's sign-in answers as
Endpoints.productionBrazilasks it, refusing an unknown client. The answer's fields are taken from Serasa's naming, not seen. -
Bank Account Verify, International Payments: the specs describe demo endpoints serving example answers, at the same address as KYC, so the live path may differ.
-
KYB, AML Flags: an app needs "KYB Sandbox" ticked under My Apps; without it Experian answers 401. Use the spec's sandbox values: name
TEST, company99999999orUI88888888, director John Smith, location1234. Company search, profile, owners, locations, geographies, data sources, location visits, director search, and company and people data all answer, and their real answers keep every field. The sectors call answers 500 on the sandbox, from an error in Experian's own script, so it hasn't been seen to succeed. Directors and shareholders answer{}for the sample company. AML Flags is KYB's company data call: ask for it inDataBlocks. -
Age and date of birth: both are one CrossCore call, chosen by the request type and tenant id from Experian's delivery team. The age check succeeds on the sandbox. Date of Birth Verify has no spec, so it uses the age check's types, and the sandbox answers it "Undefined requestType", so it hasn't been run. Experian's page shows both
DoBVerify-StandaloneandStandalone-DoBVerify, and its answer's fields are taken from that page's description. -
SSN (eCBSV): an app needs "Verification Ecbsv Sandbox" ticked. With it, the sandbox answers 500
RaiseFault.notFoundto the spec's path and to others tried, so this has only run against a stand-in. -
Experian Verify: an app needs "Experian Verify Sandbox" ticked. Instant reports share one call, and
reportTypein the request and the subcode choose which comes back. The spec gives/v2/experianverify, whichEndpoints.productionUsuses, but the sandbox refuses that and answers on/v1/experianverify, whichEndpoints.sandboxUsuses. There, every report gets one fixed Plus report, wrapped inincomeReportrather than the spec'sexpVerifyReport. Only that report's fields have been seen; live v2 hasn't been called. -
Experian Verify on a page the client hosts:
Api.VerifyCpd: widget, status, report. Live, it answers onus-ev-api.experian.com, whichEndpoints.productionUshas. The sandbox host refuses it, so this has only run against a stand-in. -
Address, Email and Phone Validation: these don't use the developer portal. They answer on one host,
api.experianaperture.io, to a token from Experian's Self Service Portal, and there's no sandbox. The portal's tokens are refused. Experian's free trial is for the US, Canada, Australia and New Zealand, and covers that region's addresses; elsewhere, ask Experian.ApertureClient.Create tokenconnects; calls use up credit. Layouts are on the generated client,client.Address. The token can also be replaced by OAuth, which this client doesn't do.let aperture = ApertureClient.Create token let! answer = Api.EmailValidation.validateAsync aperture "someone@example.com" Api.ValidationOptions.Default ct
-
Client Gateway: deploys and runs what a client has on Experian's Ascend platform, for any region. Use
client.ClientGatewaydirectly; its operations have noApifunctions. Pass your Experian One JWT asauthorization, and it's sent in place of the portal token, with no portal sign-in. Pass null to use the portal token. Six operations insertuseCaseat the start of the path as it is, so pass only values you trust. It hasn't been run: it needs an Ascend account, and the spec's host is the developer portal, so set{ endpoints with ClientGateway = ... }to the address Experian gives you. Its spec asks forapplication/vnd.experian+json, which the generator can't produce, so requests go asapplication/jsonuntil a real call shows whether that's accepted. -
Live hosts:
us-apiandeu-api.experian.comanswer, but only the sandboxes have been called with an app. -
Spec gaps: Experian's examples send fields its schemas leave out or spell differently, and generated types would drop them without a word, so the bundled specs are corrected to the examples. All 90 examples of the Credit Profile, Instant Credit, Bank Account Verify and International Payments specs were compared with what the client sends. The credit report's
ascendGoData,conditionalProcessing,consumersand a second applicant'scurrentAddressappear only in a list of every field, not a working example, so they can't be sent yet.
After Api.Idp.createSecretAsync, deliveries carry X-HMAC-SHA256-Signature. Check the raw body before parsing:
Webhook.verify sharedKey bodyBytes (request.Headers[Webhook.SignatureHeader])The key is the UTF-8 bytes of sharedKey as Experian returns it. The spec doesn't state the key encoding, so this is
inferred and unconfirmed; check it against the first real delivery.
The specs are Experian's downloads with these edits, made so SwaggerProvider 4.2.1 reads them and the wire format stays right:
- All specs:
- Number fields without a format, or with
decimalorfloat, areformat: double. Otherwise SwaggerProvider makes themfloat32, and an amount like 1234567.89 would be sent as 1234567.9. - String enums with bare numeric values (
- 0) are quoted. YAML reads them as numbers, which gives empty enums.
- Number fields without a format, or with
- Delphi Select: the six
GetApplicationview flags are strings, not booleans. The generated client would write booleans asTrue/False;Api.DelphiSelect.getApplicationAsyncsendstrue/false. - Work Report:
Incomehas no discriminator: its$typeisn't a required property, which the reader rejects.Incomeskeeps its own.- Person addresses use
postCode, as Experian's examples and the API do (the downloaded spec haspostcode).
- KYC:
AddressgainssubLocality,stateProvinceCodeandresidentTo; the request header gainstxnIdandtime; decision elements gaindecisionReason. All appear in Experian's examples and answers, and the generated types would otherwise drop them.fullDateFromis a plain string: the API sends2019-01-01T00:00:00, not a date.
- NED: the employer search returns a list, as in Experian's example, not one employer.
- IDP: event types come as
{"eventNames": [...]}, not a bare list. - KYB, SSN, Experian Verify: the
Authorizationparameter is removed, since the handler sets the token. KYB's schema names with spaces take an underscore, and its XML answers are removed. Verify's version moves from the path to the base address, in every Instant report, and its answer also readsincomeReport, as the sandbox sends. Experian's separate AML Flags spec is a cut-down copy of KYB's that loses most of a real answer, so it isn't bundled. - Age and date of birth:
Address,Applicant,PersonandNamegain the fields in Experian's examples, andfullDateFromis a plain string, as in KYC. - Address, Email and Phone Validation (Experian's current specs at
api.experianaperture.io/docs, not the developer portal's older ones):- Boolean headers are strings, so
Apisendstrue/false, and only JSON bodies remain. - Named string enums are plain strings: a generated enum would fail a whole answer on a value Experian adds.
- Address lookup v2's answer is wrapped in
result, as in its examples, and a formatted address gainsnames.
- Boolean headers are strings, so
- PowerCurve:
- Two-digit-year dates (
NDDOB,EA4S02,EA4S04,EA4S06, documented as YY-MM-DD) are plain strings, not dates. - Sample raw responses inside examples are shortened: six single-line samples and one HTML description exceed the reader's 64 KB scalar limit.
- 63 references whose target name ends with the referring property's name (
DeliveryDetails→MortgageSpecific_DeliveryDetails,items→..._Item) are wrapped as a one-elementallOf. Plain references would hit a SwaggerProvider name clash ("Cannot compile object … based on unresolved reference"). The wrapped type is the same.
- Two-digit-year dates (
dotnet test runs the offline tests against a fake handler. The sandbox tests run only when EXPERIAN_USERNAME,
EXPERIAN_PASSWORD, EXPERIAN_CLIENT_ID and EXPERIAN_CLIENT_SECRET are set. They cover:
- the token;
- the application with AuthPlus and second phase, stand-alone AuthPlus, and quotation to full;
- the Work Report flow up to the PDF;
- PowerCurve application, query and decision;
- NED and IDP reads.
Tests of KYB, AML Flags and Experian Verify skip until the app has the product ticked. The SSN test skips while the
sandbox answers RaiseFault.notFound. Tests of Address, Email and Phone Validation run only when
EXPERIAN_APERTURE_TOKEN is set, and may use up credit.