API Reference - pims.authentication.pincode-update
Info: Stellantis Mobile SDK is not publicly available.
Component:
📱
Enrollment
FCA
SDK Version:
v2.3
API Available since:
v2.3
API Last update:
v2.3
New
API!
Plateforme Compatibility: FCA
Security:
- Authentication: Authentication is required.
Operations:
Update user pincode.
Input Parameters Object | |||||
---|---|---|---|---|---|
Param name | Description | Type | Unit/Values | Example | Required |
action | Action Name, in this case |
String |
|
update
|
true |
oldPIN | Old Pin code of the user account. |
String |
|
1234
|
true |
newPIN | New Pin code for the user account. |
String |
|
4321
|
true |
Output Data Object | ||||
---|---|---|---|---|
No outputted data |
Error | ||
---|---|---|
No errors |
Code Example
1
2
3
4
5
6
7
8
9
10
11
pims.set("pims.authentication.pincode",
mapOf( /* parameters */
Pair("action", "update"),
Pair("oldPIN", "1234"),
Pair("newPIN", "4321")
)
) { message -> when (message["status"] as? String) {
"SUCCEEDED" -> { } // handle succeeded status
"FAILED" -> { } // handle failed status
} }
1
2
3
4
5
6
7
8
9
10
11
pims.set(api: "pims.authentication.pincode",
parameters: [
"action": "update",
"oldPIN": "1234",
"newPIN": "4321"
]
) { (message) in
if message["status"] == "SUCCEEDED" { } // handle succeeded status
else if message["status"] == "FAILED" { } // handle failed status
}
1
2
3
4
5
6
// representation of the `succeeded` dictionary object message as JSON
{
"transactionId": "953cfefb-bc72",
"status": "SUCCEEDED",
"result": { }
}
false