Skip to main content

Customer ID

Overview​

The Customer ID feature enables merchants to maintain a consistent reference for individual end users across multiple verification requests. By linking all verifications to a unique customer profile, merchants can track verification history, streamline repeat verifications, and improve data management across their backoffice.

What is a Customer ID?​

A Customer ID is a unique, persistent identifier that represents an individual customer profile within Shufti's system. Once generated, this identifier can be used across all future verification requests for the same customer, ensuring that:

  • All verifications are linked to a single customer profile.
  • Verification history is maintained and easily accessible.
  • Customer data remains organized and trackable.

Key Benefits​

Consistent User Reference​

Maintain a single identifier for returning customers across multiple verification sessions, eliminating confusion and data fragmentation.

Enhanced Verification Tracking​

Associate all verification requests with the same customer profile, making it easier to review verification history and patterns.

Improved Data Management​

Easily reference, retrieve, and manage customer profiles using their unique Customer ID, streamlining your operational workflows.

Fraud Prevention​

Track and identify repeat verification attempts and patterns associated with the same customer, helping you detect and prevent fraudulent activities.

How It Works​

First-Time Verification​

When a customer undergoes verification for the first time, there are two ways the Customer ID can be assigned.

Without a Customer ID in the request​

  1. Send a verification request without including a customer_unique_id parameter.
  2. Shufti automatically generates a unique customer_unique_id.
  3. The generated customer_unique_id is returned in the API response.
  4. Store this customer_unique_id in your system for future use.

With a Customer ID in the request​

  1. Send a verification request including your own customer_unique_id parameter.
  2. Shufti creates a new customer profile with the provided customer_unique_id.
  3. The same customer_unique_id is returned in the API response.

Repeat Verifications​

For subsequent verification requests for the same customer:

  1. Include the previously obtained customer_unique_id in the request payload.
  2. Shufti automatically associates the new verification with the existing customer profile.
  3. All verification data is linked to the same customer record.
  4. The same customer_unique_id is returned in the response.

Customer ID Management for Existing Users​

Shufti provides a dedicated API endpoint for managing Customer IDs, allowing you to generate or associate Customer IDs with existing verification records.

Endpoint​

POST https://api.shuftipro.com/customer/details

Authentication​

Use Basic Authentication with your Client ID and Secret Key from your Shufti back office.

Use Cases​

  • Generate a Customer ID for existing users: Send a reference ID from a previous verification. Shufti generates and returns a new customer_unique_id for that verification.
  • Associate your Customer ID with existing users: Send both a reference ID and your own customer_unique_id. Shufti stores your customer_unique_id and associates it with the verification record.

Request Payload​

{
"reference": "{{reference_id}}",
"customer_unique_id": "{{alphanumeric_string}}"
}

Parameters​

ParameterRequiredTypeDescription
referenceYesStringThe reference ID from a previous verification request.
customer_unique_idNoStringYour own unique customer identifier (6 to 64 alphanumeric characters). If not provided, Shufti generates a new Customer ID.

Resetting a Customer Profile via API​

Besides resetting a profile manually from the backoffice, Shufti provides a dedicated API endpoint for resetting customer profiles programmatically. When a profile is reset, all of its existing verifications are marked inactive and the customer status is set to Verification Pending, so the end user can complete the verification flow again from the beginning. The results of the past verifications themselves are not changed.

You can reset a single customer profile, or up to 100 customer profiles in one request.

Endpoint​

POST https://api.shuftipro.com/customer/manage

Authentication​

Use Basic Authentication with your Client ID and Secret Key from your Shufti back office. Send the request body as JSON with the Content-Type: application/json header.

Parameters​

ParameterRequiredTypeDescription
customer_unique_idYesString or ArrayThe Customer ID to reset. Send a single Customer ID as a string, or up to 100 Customer IDs as an array. Each Customer ID must be 6 to 100 characters.
reset_profileYesBooleanMust be true. Resets the customer profile by marking all of its verifications as inactive and setting the status to verification_pending.

Resetting a Single Customer​

Send customer_unique_id as a string to reset one customer profile.

{
"customer_unique_id": "D376696JMJETK83MO673HW",
"reset_profile": true
}

Resetting Multiple Customers​

Send customer_unique_id as an array to reset several customer profiles in a single request.

{
"customer_unique_id": [
"D376696JMJETK83MO673HW",
"A482917KNRPL52XQ891YZ",
"B193847ZXCVB67NM234PQ"
],
"reset_profile": true
}

Response​

Check the error field to see whether the reset succeeded. When some Customer IDs in a request are reset and others are not, the request still succeeds and the ones that were not reset are listed in not_found (no verifications exist for that Customer ID) or failed (the reset could not be completed).

Success
{
"error": false,
"message": "Customer profile(s) have been reset successfully.",
"not_found": ["B193847ZXCVB67NM234PQ"]
}
Failure
{
"error": true,
"message": "Customer(s) not found for the provided customer_id(s)",
"not_found": ["D376696JMJETK83MO673HW"]
}

not_found and failed are included only when they contain at least one Customer ID.

note

After a reset, the past verifications are no longer used by the Matching Logic. The next verification for that Customer ID has nothing to be compared against, and once it is accepted it becomes the reference for the verifications that follow.


Managing Customers in the Backoffice​

Beyond the API, every Customer ID has a customer profile in the backoffice where you can review verification history, manage the customer's status, control which data is used for future verifications, and collaborate with your team. This section covers the actions available on a customer profile.

Backoffice actions at a glance​

ActionWhat it doesReversible
Blocklist a customerDeclines future verifications matching the blocklisted Customer ID or data.Yes, by removing the customer from the blocklist.
Whitelist a customerAccepts all future verifications for that Customer ID.Yes, by removing the customer from the whitelist.
Reset a customer profileMoves the profile to Verification Pending and deactivates past proofs so they are not used as context.Past proofs can be reactivated.
Mark a customer as InactiveAdds an INACTIVE label to the profile and to the Customer ID in related verifications.Yes, by marking the customer active again.
Mark a document as InactiveExcludes a specific document from comparison in future verifications.Yes, by marking the document active again.

Customer Status​

Every customer profile carries a status that is derived from the customer's verification results. There are three possible statuses.

StatusMeaningCan transition to
Verification PendingDefault state. The profile exists but no verification has been completed yet. Also set after a profile reset.Approved, Rejected
ApprovedThe customer has at least one accepted verification result and no active blocklist flag.Verification Pending (after a reset)
RejectedAll completed verification attempts have failed and no accepted result exists.Approved (if a new attempt passes), Verification Pending (after a reset)

How the status behaves:

  • When a customer's verification is accepted, the status changes to Approved, meaning the customer is accepted and onboarded. Once a profile is Approved, the status does not change to Rejected even if later verifications fail.
  • If all of the customer's verifications are declined, the status is set to Rejected. A Rejected profile can move to Approved if a future verification passes.
  • A profile is set to Verification Pending when it is first created and the user has not completed verification yet. It is also set to Verification Pending whenever the profile is reset. After the next verification completes, the status updates according to the result.

Initiating a Verification for a Customer​

You can create a new verification for a customer directly from their profile in the backoffice. Because the Customer ID is sent with the request, the resulting verification is tied to that specific customer.

There are two ways to start a verification from the profile:

  1. Create New Verification CTA.
  2. Initiate Re-verification CTA on a verification in the Verification History.

Using Create New Verification

When you choose this option, you can set up the verification in one of two ways:

  • Verification Journey Builder: Select the journey you want the customer to verify through.
  • Products: Go to the product tab, select the services you need, and configure the verification workflow.

With either method, the verification is created specifically for that customer because the Customer ID is included in the verification request.

Using Initiate Re-verification

When you click the Initiate Re-verification CTA on a verification in the Verification History, a verification request is initiated using the exact configuration of that earlier verification, and you receive a verification link for the customer.

Blocklisting a Customer​

A customer can be added to the blocklist, or removed from it, manually from the backoffice. When you blocklist a customer, both the Customer ID and the data submitted by the user on their customer profile are blocklisted. As a result, any subsequent verification from the blocklisted Customer ID, or any verification that submits the blocklisted data, is declined.

The data that can be blocklisted includes:

  • Customer ID
  • Face image
  • Document number
  • Name and date of birth (as a combination)
  • IP address and device fingerprint (as a combination)
  • Email
  • Phone number
note

If you remove the customer from the blocklist, their verifications are performed normally again.

Whitelisting a Customer​

A customer can be added to, or removed from, the whitelist manually from the backoffice. When you add a customer to the whitelist from their profile, their Customer ID is whitelisted and all subsequent verifications from that Customer ID are accepted. Whitelisting is based on the Customer ID only.

caution

A whitelisted Customer ID has all of its subsequent verifications accepted. Apply the whitelist deliberately and only to customers you have already established trust in.

note

If you remove the customer from the whitelist, their verifications are performed normally again.

Resetting a Customer Profile​

You can reset a customer profile from the backoffice. When a profile is reset, the proofs and data submitted in the customer's past verifications become inactive and are no longer used as context in future verifications. You can reactivate these past proofs later if you want them used for context again.

Resetting a profile also changes the customer status to Verification Pending. The status then updates according to the result of the next verification.

You can also reset profiles programmatically, one at a time or in bulk. See Resetting a Customer Profile via API.

Marking a Customer as Inactive​

Marking a customer profile as Inactive adds an INACTIVE label to the customer profile and to the Customer ID shown in the verifications related to that Customer ID.

An Inactive status can mean, for example, that the customer is no longer active on your platform, that the Customer ID was a test, or that the user has deleted their account.

You can mark an inactive Customer ID as active again at any time from the backoffice.

Managing Verification Documents​

The Verifications tab of the customer profile contains a Documents section that gathers every document the customer has submitted throughout their verification history, so you can review and analyze them in one place.

If there is a document you do not want used for comparison or context in future verifications, you can mark it as inactive. Inactive documents can be marked as active again whenever needed.

Duplicate Records​

The Duplicate Records section of the customer profile lists linked records, that is, other records in which a user submitted the same data that appears in this customer profile. This helps you detect duplicate accounts in your system.

Comments​

Shufti provides a comments feature so you can leave notes, communicate with team members, and upload attachments on a customer profile. If any anomaly is detected on a profile, you can use comments to raise it with your team, record your notes, and attach supporting files.

Activity Logs​

Whenever an action is performed on a customer profile, an entry is created in the profile's activity logs. Logged actions include:

  • Creating a verification for the customer, and the resulting verification status.
  • Adding the customer to, or removing them from, the blocklist.
  • Adding the customer to, or removing them from, the whitelist.
  • Resetting the customer profile.
  • Marking the customer as Inactive, and marking the customer as active.

Each log entry records the action along with the date and time it occurred and the person who performed it, giving you a complete audit trail for every profile.


Matching Logic​

When a verification request carries a customer_unique_id that already has verified data on its profile, Shufti compares the new submission against the most recent accepted verification for that Customer ID. Each new accepted verification therefore becomes the reference for the next one: for example, once a customer passes a verification with a new selfie, the next verification is compared against that selfie. Two comparisons can run:

  • Face comparison: the face captured or extracted in the current verification is compared with the face already verified for this Customer ID. It covers every combination of a captured face and a face on a document.
  • Data comparison: the details extracted from the current document are compared with the details already verified for this Customer ID.

Each comparison that runs appears as its own verification step on the verification, named Previous Face Match and Previous Data Match, so you can see the outcome of each one in the backoffice.

Which comparisons run depends on the service used in the current verification, the service used in the previous verification, and whether a face and the required OCR fields could be extracted from the document. A comparison that cannot be performed is skipped, and a skipped comparison never declines the verification on its own.

note

This section describes requests that send a customer_unique_id without face_authentication. 1:1 Face Authentication (face_authentication set to enroll or authenticate) follows its own rules: every authentication is compared against the face enrolled first for that Customer ID, and it returns its own decline codes.

Decline Codes​

When a comparison fails, the verification is declined with one of the following codes.

Decline codeDecline reason
SPDR338The current face does not match the previously verified face against this customer ID.
SPDR339The current face does not match the face on the previously verified document against this customer ID.
SPDR340The face on the current document does not match the previously verified face against this customer ID.
SPDR341The face on the current document does not match the face on the previously verified document against this customer ID.
SPDR342The details on the document do not match the previously verified details for this Customer ID.

Comparison Cases​

The table below lists each combination of current and previous service, the comparisons that run for it, and the decline code returned when a comparison fails. A dash (—) means the condition does not apply to that combination, because the service involved does not submit a document.

Current servicePrevious serviceFace detected on documentRequired OCR extractedFace comparisonData comparisonDecline code on mismatch
FaceFace——PerformedNot applicableSPDR338
FaceDocument, Document TwoYes—PerformedNot applicableSPDR339
FaceDocument, Document TwoNo—SkippedNot applicableNone
Document, Document TwoFaceYes—PerformedNot applicableSPDR340
Document, Document TwoFaceNo—SkippedNot applicableNone
Document, Document TwoDocument, Document TwoYesYesPerformedPerformedSPDR341, SPDR342
Document, Document TwoDocument, Document TwoNoYesSkippedPerformedSPDR342
Document, Document TwoDocument, Document TwoYesNoPerformedSkippedSPDR341
Face and DocumentFace and Document—YesPerformed (face against face)PerformedSPDR338, SPDR342

When the current and previous verifications both used more than one document-based service, Document is compared first and Document Two is used only if Document was not part of both verifications.

Comparison Outcomes​

The table below lists what happens for each combination of step results. A comparison that was skipped or did not apply is treated the same as one that matched: on its own it never declines the verification.

Previous Face MatchPrevious Data MatchOutcome
MatchedMatchedBoth steps pass. No Customer ID decline is added, and the verification result is decided by the remaining checks.
MatchedNot matchedDeclined with SPDR342.
Not matchedMatchedDeclined with the face decline code for that service combination (SPDR338, SPDR339, SPDR340 or SPDR341).
Not matchedNot matchedDeclined with both the face decline code and SPDR342.
MatchedSkipped or not applicableNo Customer ID decline is added. Only the face was compared.
Skipped or not applicableMatchedNo Customer ID decline is added. Only the document details were compared.
Skipped or not applicableSkipped or not applicableNothing could be compared, so no Customer ID decline is added.

In every outcome above, the verification stays linked to the same Customer ID and is added to that customer's verification history. A passed comparison does not accept the verification on its own: the verification is still accepted or declined on the result of all of its checks. If the overall result is accepted, the customer status becomes Approved.

note

When both comparisons are skipped or not applicable, there is nothing to compare the current verification against. This happens on the first verification for a Customer ID, after a profile reset, and when the proofs needed for a comparison could not be read. Verifications and documents marked inactive are not used for comparison either.


Common Integration Scenarios​

This section shows how to use a Customer ID for returning customers, depending on the evidence you already hold for them.

Choosing between Customer ID matching and 1:1 Face Authentication​

Customer ID matching1:1 Face Authentication
How to request itSend customer_unique_id. Do not send face_authentication.Send customer_unique_id with face_authentication set to enroll or authenticate.
What the new face is compared againstThe most recent accepted verification for that Customer ID.The face enrolled for that Customer ID.
Reference after a successful verificationUpdated automatically: the newly accepted verification becomes the reference.Unchanged: the enrolled face stays the reference.
Works with an ID document as the referenceYes.No. Enrolment needs a facial image of the person.
Decline codesSPDR338–SPDR342SPDR343, SPDR344

Customer with an existing selfie​

Customer ID matching

  1. Send a face verification with the selfie in face.proof and the customer's customer_unique_id.
  2. For each later check, send a face verification with an empty face.proof and the same customer_unique_id. Shufti returns a verification link where the customer completes a live face capture.
  3. The live face is compared against the most recent accepted face. A mismatch is declined with SPDR338.

1:1 Face Authentication

  1. Enrol the customer once with face_authentication set to enroll and the selfie in face.proof.
  2. For each later check, send face_authentication set to authenticate with an empty face.proof and the same customer_unique_id. The selfie does not need to be sent again.

Customer with only the front of their ID document​

Use Customer ID matching, and send the ID image as a document, not as a face.

  1. Send a document verification with the front of the ID in document.proof and the customer's customer_unique_id.
  2. Send a face verification with an empty face.proof and the same customer_unique_id. The live face is compared against the portrait on the ID verified in step 1. A mismatch is declined with SPDR339. The ID image does not need to be sent again.
  3. Once this verification is accepted, the live selfie becomes the reference. Every later face verification with the same customer_unique_id is compared against that selfie, and a mismatch is declined with SPDR338.
tip

face.proof expects a photo of the person's face. Send ID document images in document.proof, so that the portrait is extracted from the document and the document's details are available for data comparison.

Replacing the reference face​

  • Customer ID matching: no action is needed. Each accepted verification becomes the new reference, so once a customer passes a verification with a new selfie, later verifications are compared against it.
  • 1:1 Face Authentication: an enrolment cannot be overwritten. Sending enroll again for an enrolled Customer ID is declined with SPDR344. To enrol a new face under the same Customer ID, first reset the customer profile, then send a new enroll request. After the reset and before the new enrolment, authenticate requests are declined with SPDR343.

Best Practices​

  • Always store Customer IDs: Implement persistent storage for Customer IDs in your database so they are available for future verification requests.
  • Include Customer IDs in repeat verifications: Always include the customer_unique_id parameter when initiating verifications for returning customers to maintain data consistency.
  • Monitor verification patterns: Use linked customer profiles to identify unusual verification patterns that may indicate fraudulent activity.
  • Validate the Customer ID format: Before sending requests, validate that Customer IDs meet the format requirements (6 to 64 alphanumeric characters).
  • Maintain a Customer ID mapping: Keep a mapping between your internal customer identifiers and Shufti Customer IDs for easy reference and troubleshooting.