Submit a Customer Data Verification Attempt
POST/wallet-setup/verifications/:verificationId/attempts
Submits a verification attempt for a specific customer attribute tied to an already initiated verification process.
Once a verification process for a specific customer attribute is initiated and active (not expired or failed), the user has a limited number of attempts to complete it (e.g., enter the OTP code sent via email), as defined by the allowableAttempts
. Each new verification attempt increments the currentAttempts
count until it reaches the predefined limit. When the limit is reached, no further verification attempts for the same process are accepted and are automatically denied. There is no cooldown period, and the verification process is marked as failed. To retry the verification, a new verification process must be started, and the user can attempt the verification again.
Request
Path Parameters
A unique identifier for the verification process associated with a particular customer attribute.
- application/json
Body
EMAIL
- The email address connected to the customer’s profile.MOBILE
- The phone number registered with the customer’s account.OTP
- One-Time Password sent via email or SMS to the user's registered device.EMAIL
- Verification method sent via email to the user's registered email address.SMS
- Verification method sent via SMS to the user's registered phone.
attribute
object
required
The customer attribute being attached to the particular verification process.
Possible values: [EMAIL
, MOBILE
]
The type of the customer attribute that will be verified through an additional secure mechanism, such as an OTP code sent via email.
The value of the customer attribute that will be verified through an additional secure mechanism, such as an OTP code sent via email.
notificationType
object
required
The mechanism used to deliver the customer attribute verification information.
Possible values: [OTP
]
The notification method used for verifying the customer attribute.
Possible values: [EMAIL
, SMS
]
The notification channel used to send the verification method to the user.
The value transmitted through the secure notification method and channel to confirm the specific customer attribute.
deviceInfo
object
required
Provides information about the device that the end-customer uses to access the service.
Possible values: [WEB_APP
, MOBILE_APP
, API
]
The type of application used by the end-customer to access the service.
Possible values: <= 100 characters
ThreatMetrics session identifier.
Responses
- 201
- 400
- 401
- 404
- 429
- 500
- 503
Created
- application/json
- Schema
- Example (from schema)
- OTP_EMAIL_VERIFIED
- OTP_EMAIL_FAILED
- OTP_SMS_VERIFIED
- OTP_SMS_FAILED
Schema
EMAIL
- The email address connected to the customer’s profile.MOBILE
- The phone number registered with the customer’s account.OTP
- One-Time Password sent via email or SMS to the user's registered device.EMAIL
- Verification method sent via email to the user's registered email address.SMS
- Verification method sent via SMS to the user's registered phone.VERIFIED
- The customer verification process has been successfully completed, and the user's attribute has been verified.REJECTED
- The customer verification process has been rejected by the user.FAILED
- The customer verification process has failed. Please refer tostatusReason
for further information.
A unique identifier for the specific verification attempt associated with a particular verification process.
A unique identifier for the verification process associated with a particular customer attribute.
attribute
object
required
The customer attribute being attached to the particular verification process.
Possible values: [EMAIL
, MOBILE
]
The type of the customer attribute that will be verified through an additional secure mechanism, such as an OTP code sent via email.
The value of the customer attribute that will be verified through an additional secure mechanism, such as an OTP code sent via email.
notificationType
object
required
The mechanism used to deliver the customer attribute verification information.
Possible values: [OTP
]
The notification method used for verifying the customer attribute.
Possible values: [EMAIL
, SMS
]
The notification channel used to send the verification method to the user.
The number of current attempts made to verify a particular customer attribute.
The maximum number of allowed attempts to verify a particular customer attribute.
Possible values: [VERIFIED
, REJECTED
, FAILED
]
The status of the verification attempt for a specific customer attribute.
Possible values: <= 100 characters
The reason for the failed verification attempt for a specific customer attribute.
Represents creation RFC 3339, section 5.6 date-time.
{
"verificationAttemptId": "80467c44-dca9-4139-aba9-ff5ed925913b",
"verificationId": "06bdcd2c-0cce-4b36-97ec-281c8f5d743c",
"attribute": {
"type": "EMAIL",
"value": "john.doe@example.com"
},
"notificationType": {
"method": "OTP",
"channel": "EMAIL"
},
"currentAttempts": 1,
"allowableAttempts": 5,
"status": "FAILED",
"statusReason": "Invalid OTP code.",
"creationTime": "2024-08-19T16:33:16Z"
}
{
"verificationAttemptId": "80467c44-dca9-4139-aba9-ff5ed925913b",
"verificationId": "06bdcd2c-0cce-4b36-97ec-281c8f5d743c",
"attribute": {
"type": "EMAIL",
"value": "john.doe@example.com"
},
"notificationType": {
"method": "OTP",
"channel": "EMAIL"
},
"currentAttempts": 1,
"allowableAttempts": 5,
"status": "VERIFIED",
"creationTime": "2024-08-19T16:33:16Z"
}
{
"verificationAttemptId": "80467c44-dca9-4139-aba9-ff5ed925913b",
"verificationId": "06bdcd2c-0cce-4b36-97ec-281c8f5d743c",
"attribute": {
"type": "EMAIL",
"value": "john.doe@example.com"
},
"notificationType": {
"method": "OTP",
"channel": "EMAIL"
},
"currentAttempts": 1,
"allowableAttempts": 5,
"status": "FAILED",
"statusReason": "Invalid OTP code.",
"creationTime": "2024-08-19T16:33:16Z"
}
{
"verificationAttemptId": "80467c44-dca9-4139-aba9-ff5ed925913b",
"verificationId": "06bdcd2c-0cce-4b36-97ec-281c8f5d743c",
"attribute": {
"type": "MOBILE",
"value": "+359878787878"
},
"notificationType": {
"method": "OTP",
"channel": "SMS"
},
"currentAttempts": 2,
"allowableAttempts": 5,
"status": "VERIFIED",
"creationTime": "2024-08-19T16:33:16Z"
}
{
"verificationAttemptId": "80467c44-dca9-4139-aba9-ff5ed925913b",
"verificationId": "06bdcd2c-0cce-4b36-97ec-281c8f5d743c",
"attribute": {
"type": "MOBILE",
"value": "+359878787878"
},
"notificationType": {
"method": "OTP",
"channel": "SMS"
},
"currentAttempts": 2,
"allowableAttempts": 5,
"status": "FAILED",
"statusReason": "Invalid OTP code.",
"creationTime": "2024-08-19T16:33:16Z"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- MISSING_ATTRIBUTE_VALUE
Schema
Array [
]
error
object
Additional details about the error.
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "5068",
"message": "Field error(s)",
"details": [
"Either you submitted a request that is missing a mandatory field or the value of a field does not match the format expected."
],
"fieldErrors": [
{
"field": "attribute.value",
"error": "must not be null"
}
]
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- INVALID_CREDENTIALS
Schema
Array [
]
error
object
Additional details about the error.
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "5279",
"message": "Invalid credentials",
"details": [
"The authentication credentials are invalid."
]
}
}
Not Found
- application/json
- Schema
- Example (from schema)
- CUSTOMER_VERIFICATION_PROCESS_NOT_FOUND
Schema
Array [
]
error
object
Additional details about the error.
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-CUSTOMER-VERIFICATION-PROCESS-NOT-FOUND",
"message": "Active customer verification process was not found",
"details": [
"No active customer verification process matching the provided data was found."
]
}
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
- CUSTOMER_VERIFICATION_ATTEMPTS_EXCEEDED
Schema
Array [
]
error
object
Additional details about the error.
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-CUSTOMER-VERIFICATION-ATTEMPTS-EXCEEDED",
"message": "Customer verification attempts exceeded",
"details": [
"Customer verification attempts exceeded the allowed limit."
]
}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- INTERNAL_SERVER_ERROR
Schema
Array [
]
error
object
Additional details about the error.
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-INTERNAL-SERVER-ERROR",
"message": "Internal Server Error",
"details": [
"There was an error while processing the operation"
]
}
}
Service Unavailable
- application/json
- Schema
- Example (from schema)
- SERVICE_UNAVAILABLE
Schema
Array [
]
error
object
Additional details about the error.
The error code.
A description of the error.
Details of any parameter value errors.
fieldErrors
object[]
Identifies the JSON request field.
The problem associated with the field.
{
"error": {
"code": "string",
"message": "string",
"details": [
"string"
],
"fieldErrors": [
{
"field": "string",
"error": "string"
}
]
}
}
{
"error": {
"code": "DW-SERVICE-UNAVAILABLE",
"message": "Service Unavailable",
"details": [
"Service Unavailable"
]
}
}