API Reference - pims.vehicle.vin
Info: Stellantis Mobile SDK is not publicly available.
Component:
💾
Vehicle Information
PSA FCA
SDK Version:
v2.3
API Available since:
v2.3
API Last update:
v2.3
New
API!
Plateforme Compatibility: PSA
FCA
Security:
- Authentication: Authentication is required.
Operations:
This API allows to select the vehicle VIN before using another API in other components.
Input Parameters Object | |||||
---|---|---|---|---|---|
Param name | Description | Type | Unit/Values | Example | Required |
vin | Vehicle Identification Number. |
String |
|
VR1AB12C3D4567890
|
true |
Output Data Object | ||||
---|---|---|---|---|
No outputted data |
Error | ||
---|---|---|
No errors |
Code Example
1
2
3
4
5
6
7
8
9
pims.set("pims.vehicle.vin",
mapOf( /* parameters */
Pair("vin", "VR1AB12C3D4567890")
)
) { message -> when (message["status"] as? String) {
"SUCCEEDED" -> { } // handle succeeded status
"FAILED" -> { } // handle failed status
} }
1
2
3
4
5
6
7
8
9
pims.set(api: "pims.vehicle.vin",
parameters: [
"vin": "VR1AB12C3D4567890"
]
) { (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