API Reference - pims.vehicle.price
Info: Stellantis Mobile SDK is not publicly available.
Component:
📍
Trips
PSA
Tutorial:
check-out
Trips.
SDK Version:
v2.3
API Available since:
v2.0
API Last update:
v2.3
Updated
API!
Plateforme Compatibility: PSA
Security:
- Authentication: Authentication is required.
Operations:
This API allows to retrieve the value of fuel/electricity price.
Input Parameters Object | |||||
---|---|---|---|---|---|
No input params. |
Output Data Object | ||||
---|---|---|---|---|
Data name | Description | Type | Unit/Values | Example |
priceFuel | Price for fuel. |
Number |
|
1.27
|
priceElectric | Price for electricity. |
Number |
|
0.85
|
Error | ||
---|---|---|
No errors |
Code Example
1
2
3
4
5
6
7
pims.get("pims.vehicle.price"
/* no params */
) { message -> when (message["status"] as? String) {
"SUCCEEDED" -> { } // handle succeeded status
"FAILED" -> { } // handle failed status
} }
1
2
3
4
5
6
7
pims.get(api: "pims.vehicle.price"
/* no params */
) { (message) in
if message["status"] == "SUCCEEDED" { } // handle succeeded status
else if message["status"] == "FAILED" { } // handle failed status
}
1
2
3
4
5
6
7
8
9
// representation of the `succeeded` dictionary object message as JSON
{
"transactionId": "953cfefb-bc72",
"status": "SUCCEEDED",
"result": {
"priceFuel": 1.27,
"priceElectric": 0.85
}
}
false