Attributes
- idstring
Unique identifier for the object.
- objectstring
String representing the object’s type. Objects of the same type share the same value.
- client_
reference_ idnullable string 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_
secretnullable string 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.
- createdtimestamp
Time at which the object was created. Measured in seconds since the Unix epoch.
- last_
errornullable object If present, this property tells you the last error encountered when processing the verification.
- last_error.
codenullable enum A short machine-readable string giving the reason for the verification or user-session failure.
Possible enum valuesabandoned
The user began the verification but didn’t submit it.
consent_
declined The 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_ supported Stripe does not verify users from the provided country.
device_
not_ supported The user’s device didn’t have a camera or they declined to grant Stripe permission to access it.
document_
expired The provided identity document has expired.
document_
type_ not_ supported The provided identity document isn’t one of the session’s allowed document types.
document_
unverified_ other Stripe couldn’t verify the provided identity document. See list of supported document types.
email_
unverified_ other Stripe was unable to verify the provided email address.
email_
verification_ declined The user was unable to verify the provided email address.
id_
number_ insufficient_ document_ data The provided document didn’t contain enough data to match against the ID number.
Show 9 more - last_error.
reasonnullable string A message that explains the reason for verification or user-session failure.
- last_
verification_ reportnullable stringExpandable ID of the most recent VerificationReport. Learn more about accessing detailed verification results.
- livemodeboolean
Has the value
true
if the object exists in live mode or the valuefalse
if the object exists in test mode. - metadataobject
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.
- optionsnullable object
A set of options for the session’s verification checks.
- options.
documentnullable object Options that apply to the document check.
- options.
document. allowed_ typesnullable array of enums 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 valuesdriving_
license Drivers license document type.
id_
card ID card document type.
passport
Passport document type.
- options.
document. require_ id_ numbernullable boolean Collect an ID number and perform an ID number check with the document’s extracted name and date of birth.
- options.
document. require_ live_ capturenullable boolean Disable image uploads, identity document images have to be captured using the device’s camera.
- options.
document. require_ matching_ selfienullable boolean Capture a face image and perform a selfie check comparing a photo ID and a picture of your user’s face. Learn more.
- options.
emailnullable object Options that apply to the email check.
- options.
email. require_ verificationnullable boolean Request one time password verification of
provided_
.details. email
- options.
id_ numbernullable object Options that apply to the id number check.
- options.
matchingnullable object Options that apply to the matching check.
- options.
matching. dobnullable enum Strictness of the DOB matching policy to apply.
Possible enum valuesnone
No matching requirement.
similar
Fuzzy matching requirement.
- options.
matching. namenullable enum Strictness of the name matching policy to apply.
Possible enum valuesnone
No matching requirement.
similar
Fuzzy matching requirement.
- options.
phonenullable object Options that apply to the phone check.
- options.
phone. require_ verificationnullable boolean Request one time password verification of
provided_
.details. phone
- provided_
detailsnullable objectExpandable Details provided about the user being verified. These details may be shown to the user.
- provided_details.
emailnullable string Email of user being verified
- provided_details.
phonenullable string Phone number of user being verified
- redactionnullable object
Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null.
- redaction.
statusenum Indicates whether this object and its related objects have been redacted or not.
Possible enum valuesprocessing
This object has been redacted, and its related objects are in the process of being redacted. This process may take up to four days.
redacted
This object and its related objects have been redacted.
- nullable string
Customer ID
- nullable object
Tokens referencing the related Person resource and it’s associated account.
- related_person.
string Token referencing the associated Account of the related Person resource.
- related_person.
string Token referencing the related Person resource.
- statusenum
Status of this VerificationSession. Learn more about the lifecycle of sessions.
Possible enum valuescanceled
The VerificationSession has been invalidated for future submission attempts.
processing
The session has been submitted and is being processed. Most verification checks are processed in less than 1 minute.
requires_
input Requires user input before processing can continue.
verified
Processing of all the verification checks are complete and successfully verified.
- typeenum
The type of verification check to be performed.
Possible enum valuesdocument
id_
number verification_
flow Configuration provided by verification flow
- urlnullable string
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_
flownullable string The configuration token of a verification flow from the dashboard.
- verified_
outputsnullable objectExpandable The user’s verified data.
- verified_outputs.
addressnullable object The user’s verified address.
- verified_outputs.
address. citynullable string City, district, suburb, town, or village.
- verified_outputs.
address. countrynullable string Two-letter country code (ISO 3166-1 alpha-2).
- verified_outputs.
address. line1nullable string Address line 1 (e.g., street, PO Box, or company name).
- verified_outputs.
address. line2nullable string Address line 2 (e.g., apartment, suite, unit, or building).
- verified_outputs.
address. postal_ codenullable string ZIP or postal code.
- verified_outputs.
address. statenullable string State, county, province, or region.
- verified_outputs.
dobnullable objectExpandable The user’s verified date of birth.
- verified_outputs.
dob. daynullable integer Numerical day between 1 and 31.
- verified_outputs.
dob. monthnullable integer Numerical month between 1 and 12.
- verified_outputs.
dob. yearnullable integer The four-digit year.
- verified_outputs.
emailnullable string The user’s verified email address
- verified_outputs.
first_ namenullable string The user’s verified first name.
- verified_outputs.
id_ numbernullable stringExpandable The user’s verified id number.
- verified_outputs.
id_ number_ typenullable enum The user’s verified id number type.
Possible enum valuesbr_
cpf An individual CPF number from Brazil.
sg_
nric A national registration identity card number from Singapore.
us_
ssn A social security number from the United States. Only the last 4 digits are collected.
- verified_outputs.
last_ namenullable string The user’s verified last name.
- verified_outputs.
phonenullable string The user’s verified phone number
- verified_outputs.
sexnullable enumExpandable The user’s verified sex.
Possible enum values[redacted]
The verification has been redacted.
female
Female
male
Male
unknown
Could not determine the user’s sex.
- verified_outputs.
unparsed_ place_ of_ birthnullable stringExpandable The user’s verified place of birth as it appears in the document.
- verified_outputs.
unparsed_ sexnullable stringExpandable The user’s verified sex as it appears in the document.
{ "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": "..."}