Change Customer Credentials
POST/wallet-setup/customer-credentials
Endpoint for modification of customer credentials for non logged-in customers. A mandatory requirement for the usage of this endpoint is to have a successful Customer Data Verification Process for the email or mobile of the customer.
This endpoint is intended for usage outside the wallet, e.g. Password or PIN Recovery functionality. For in-wallet password or pin modifications please refer to the Consumer APIs.
Request
- application/json
Body
customerIdentifiers
object
required
Customer identifiers used in processes where verified identifier is required. Based on brand configurations, at least one identifier must be provided in the request.
Email example:
value
- john.doe@paysafe.com
verificationId
- 06bdcd2c-0cce-4b36-97ec-281c8f5d743c
Mobile example:
value
- +359897765463
verificationId
- 06bdcd2c-0cce-4b36-97ec-281c8f5d743c
email
object
Unique customer identifier used for processes requiring verified identifier, such as email, mobile number, etc.
Identifier's value, such as email, mobile number etc.
A unique identifier for the verification process associated with the customer attribute.
mobile
object
Unique customer identifier used for processes requiring verified identifier, such as email, mobile number, etc.
Identifier's value, such as email, mobile number etc.
A unique identifier for the verification process associated with the customer attribute.
customerCredentials
object
required
Credentials used for recovery or customer onboarding.
The customer's password.
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
- 204
- 400
- 401
- 500
- 503
No Content
Bad Request
- application/json
- Schema
- Example (from schema)
- MISSING_EMAIL_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": "email.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."
]
}
}
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"
]
}
}