The VerificationSession object ​
Attributes ​
id(string) Unique identifier for the object.object(string) String representing the object’s type. Objects of the same type share the same value.client_reference_id(string, nullable) A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.client_secret(string, nullable) The short-lived client secret used by Stripe.js to show a verification modal inside your app. This client secret expires after 24 hours and can only be used once. Don’t store it, log it, embed it in a URL, or expose it to anyone other than the user. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs on passing the client secret to the frontend to learn more.created(timestamp) Time at which the object was created. Measured in seconds since the Unix epoch.last_error(object, nullable) If present, this property tells you the last error encountered when processing the verification.last_error.code(enum, nullable) A short machine-readable string giving the reason for the verification or user-session failure. Possible enum values:abandonedThe user began the verification but didn’t submit it.consent_declinedThe user declined to be verified by Stripe. Check with your legal counsel to see if you have an obligation to offer an alternative, non-biometric means to verify, such as through a manual review.country_not_supportedStripe doesn’t verify users from the provided country.device_not_supportedThe user’s device didn’t have a camera or they declined to grant Stripe permission to access it.document_expiredThe provided identity document has expired.document_type_not_supportedThe provided identity document isn’t one of the session’s allowed document types.document_unverified_otherStripe couldn’t verify the provided identity document. See the list of supported document types.email_unverified_otherStripe was unable to verify the provided email address.email_verification_declinedThe user was unable to verify the provided email address.id_number_insufficient_document_dataThe provided document didn’t contain enough data to match against the ID number.id_number_mismatchThe information provided couldn’t be matched against global databases.id_number_unverified_otherThe information provided couldn’t be verified. See the list of supported ID numbers.phone_unverified_otherStripe was unable to verify the provided phone number.phone_verification_declinedThe user was unable to verify the provided phone number.selfie_document_missing_photoThe provided identity document didn’t contain a picture of a face.selfie_face_mismatchThe captured face image didn’t match with the document’s face.selfie_manipulatedThe captured face image was manipulated.selfie_unverified_otherStripe couldn’t verify the provided selfie.under_supported_ageStripe doesn’t verify users under the age of majority.
last_error.reason(string, nullable) A message that explains the reason for verification or user-session failure.
last_verification_report(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) ID of the most recent VerificationReport. Learn more about accessing detailed verification results.livemode(boolean) If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse.metadata(object) Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.options(object, nullable) A set of options for the session’s verification checks.options.document(object, nullable) Options that apply to the document check.options.document.allowed_types(array of enums, nullable) Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. Possible enum values:driving_licenseDrivers license document type.id_cardID card document type.passportPassport document type.
options.document.require_id_number(boolean, nullable) Collect an ID number and perform an ID number check with the document’s extracted name and date of birth.options.document.require_live_capture(boolean, nullable) Disable image uploads, identity document images have to be captured using the device’s camera.options.document.require_matching_selfie(boolean, nullable) Capture a face image and perform a selfie check comparing a photo ID and a picture of your user’s face. Learn more.
options.email(object, nullable) Options that apply to the email check.options.email.require_verification(boolean, nullable) Request one time password verification ofprovided_details.email.
options.id_number(object, nullable) Options that apply to the id number check.options.matching(object, nullable) Options that apply to the matching check.options.matching.dob(enum, nullable) Strictness of the DOB matching policy to apply. Possible enum values:noneNo matching requirement.similarFuzzy matching requirement.
options.matching.name(enum, nullable) Strictness of the name matching policy to apply. Possible enum values:noneNo matching requirement.similarFuzzy matching requirement.
options.phone(object, nullable) Options that apply to the phone check.options.phone.require_verification(boolean, nullable) Request one time password verification ofprovided_details.phone.
provided_details(object, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) Details provided about the user being verified. These details may be shown to the user.provided_details.email(string, nullable) Email of user being verifiedprovided_details.phone(string, nullable) Phone number of user being verified
redaction(object, nullable) Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.redaction.status(enum) Indicates whether this object and its related objects have been redacted or not. Possible enum values:processingThis object has been redacted, and its related objects are in the process of being redacted. This process may take up to four days.redactedThis object and its related objects have been redacted.
related_customer(string, nullable) Customer IDrelated_customer_account(string, nullable) The ID of the Account representing a customer.related_person(object, nullable) Tokens referencing the related Person resource and it’s associated account.related_person.account(string) Token referencing the associated Account of the related Person resource.related_person.person(string) Token referencing the related Person resource.
status(enum) Status of this VerificationSession. Learn more about the lifecycle of sessions. Possible enum values:canceledThe VerificationSession has been invalidated for future submission attempts.processingThe session has been submitted and is being processed. Most verification checks are processed in less than 1 minute.requires_inputRequires user input before processing can continue.verifiedProcessing of all the verification checks are complete and successfully verified.
type(enum) The type of verification check to be performed. Possible enum values:documentDocument check.id_numberID number check.verification_flowConfiguration provided by verification flow
url(string, nullable) The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don’t store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on verifying identity documents to learn how to redirect users to Stripe.verification_flow(string, nullable) The configuration token of a verification flow from the dashboard.verified_outputs(object, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The user’s verified data.verified_outputs.address(object, nullable) The user’s verified address.verified_outputs.address.city(string, nullable) City, district, suburb, town, or village.verified_outputs.address.country(string, nullable) Two-letter country code (ISO 3166-1 alpha-2).verified_outputs.address.line1(string, nullable) Address line 1, such as the street, PO Box, or company name.verified_outputs.address.line2(string, nullable) Address line 2, such as the apartment, suite, unit, or building.verified_outputs.address.postal_code(string, nullable) ZIP or postal code.verified_outputs.address.state(string, nullable) State, county, province, or region (ISO 3166-2).
verified_outputs.dob(object, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The user’s verified date of birth.verified_outputs.dob.day(integer, nullable) Numerical day between 1 and 31.verified_outputs.dob.month(integer, nullable) Numerical month between 1 and 12.verified_outputs.dob.year(integer, nullable) The four-digit year.
verified_outputs.email(string, nullable) The user’s verified email addressverified_outputs.first_name(string, nullable) The user’s verified first name.verified_outputs.id_number(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The user’s verified id number.verified_outputs.id_number_type(enum, nullable) The user’s verified id number type. Possible enum values:br_cpfAn individual CPF number from Brazil.sg_nricA national registration identity card number from Singapore.us_ssnA social security number from the United States. Only the last 4 digits are collected.
verified_outputs.last_name(string, nullable) The user’s verified last name.verified_outputs.phone(string, nullable) The user’s verified phone numberverified_outputs.sex(enum, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The user’s verified sex. Possible enum values:[redacted]The verification has been redacted.femaleFemalemaleMaleunknownCould not determine the user’s sex.
verified_outputs.unparsed_place_of_birth(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The user’s verified place of birth as it appears in the document.verified_outputs.unparsed_sex(string, nullable, expandable (can be expanded into an object with theexpandrequest parameter)) The user’s verified sex as it appears in the document.
The VerificationSession object ​
json
{
"id": "vs_1NuNAILkdIwHu7ixh7OtGMLw",
"object": "identity.verification_session",
"client_secret": "...",
"created": 1695680526,
"last_error": null,
"last_verification_report": null,
"livemode": false,
"metadata": {},
"options": {
"document": {
"require_matching_selfie": true
}
},
"redaction": null,
"status": "requires_input",
"type": "document",
"url": "..."
}