On-Demand

On-Demand allows partners to check whether a user can be matched against users who have already connected to Open Banking and provided consent for their data to be shared. If a match exists, the partner can request Open Banking data for the user. The data can then be used to support quotes on non-ClearScore marketplaces, during credit application journeys and for customer management activities. It avoids asking the user to complete a new Open Banking connection journey when a valid, consented connection is already available through D•One.

The supported purposes are:

  • marketplace_quote
  • credit_application
  • customer_management

How it works

  1. The partner collects the customer's email address and date of birth.
  2. The partner hashes the email address using SHA-256. See Hashing Emails for On-Demand for the detailed rules and expected hash examples.
  3. The partner sends the hashed email address, date of birth, and purpose to the On-Demand match endpoint.
  4. D•One matches the user with users who have consented and connected to Open Banking.
  5. If a match is found, D•One grants the partner time-limited access to that user's Open Banking data and returns the D•One user identifier, match status, and access expiry.
  6. The partner uses the returned user identifier to retrieve Open Banking data from the D•One data endpoints until the access expiry.

The match request must include a valid x-d1-purpose header. This tells D•One why the partner is requesting access to the user's Open Banking data, important to ensure relevant consent has been collected.

Request data

Partners provide:

  • hashedEmail - the SHA-256 hash of the email address
  • dateOfBirth - the customer's date of birth in YYYY-MM-DD format
  • x-d1-purpose - one of the supported purposes listed above

Match responses

If a match is found, the response includes:

{
  "userId": "5e059a8b-2505-4432-9281-35d0c79c756e",
  "status": "CONNECTED",
  "consentExpiry": "2026-07-02T12:34:56Z"
}

Connection status

When a matching user is found, the response status indicates whether the user's Open Banking connection is currently active or lapsed.

  • CONNECTED - the user has an active Open Banking connection.
  • LAPSED - the user has previously connected to Open Banking, but the consent has not been renewed by the user. The data that was pulled from the bank historically is available but has not been refreshed beyond the 90-day consent window.

Partners may request access to lapsed user data. D•One configures this as a partner setting. If partners do not have lapsed data configured or the lapsed connection falls outside the agreed period, the API returns a not-found response.

Using the returned user identifier

The partner can then use the returned user identifier to call the permitted Open Banking data endpoints. A successful On-Demand match grants time-limited access to that user's data; partners should use the expiry returned in the response as the source of truth for how long access is available.

No match or validation errors

If no matching user is found, the API returns a not-found response. If the hashed email address, date of birth, or purpose is missing or malformed, the API returns a validation error.

Sandbox test data

The following test data is available for sandbox testing. Partners can use the original email to test their hashing implementation, then use the hashedEmail and dateOfBirth values in the match request.

PersonaOriginal emaildateOfBirthhashedEmailExpected result
Regular Salary[email protected]1986-09-17465a7dc936761c2214d9b7c75667822f64f9b017b382a7b13edd7e110fb14cc2Match found
Gambler[email protected]1999-12-242819ab798f9128e45d0c6b9c7226424ef196ddd156f0b11beea407f918005b4dMatch found
Multiple Loans[email protected]1974-07-01d1be02d44c11ed8d6b5eac518029d5a79c395ad636ecb975130e4612786404dfMatch found
Bounced DDs[email protected]2001-02-13888e7d09e5e678ccccb85d62855e514535a995f42d5649c661fcd33ff1c011a2Match found
Unarranged Overdraft[email protected]1979-04-167074bef7735568213310399d7ba9506506e87d77c762fe57db13714a7b4a66f0Match found
Arranged Overdraft[email protected]1992-05-22ba9a43fa35cab2718cb5c5d50f2fc614a93d3bdde814725b1ce3c7577b120321Match found

Did this page help you?