New features in captur: tyres pressure and active errors
Android app now shows this for my Captur:
I don't know which are the needed endpoints; "/commerce/v1/accounts/{id}/kamereon/kca/car-adapter/v1/cars/{vin}/pressure" is not working: it gives "There is no data for this vin and uid", "err.func.wired.notFound".
See https://github.com/hacf-fr/renault-api/pull/1411
Wait, I just found the endpoint for errors!
/commerce/v1/accounts/{accountId2}/vehicles/{vin}/alerts
Note: accountId2
Result:
"data": [
{
"id": xxxxxxxxxx,
"alertType": "proactive",
"canArchitecture": "204",
"alertCode": "crashairbagmalfunction",
"trueValues": "1",
"priority": 0,
"minAge": 1,
"minMileage": 100,
"generateTime": 1440,
"generateMileage": 15,
"closeTime": 1440,
"closeMileage": 36,
"criticity": 3,
"generateOccurrence": 3,
"closeOccurrence": 10,
"generateLead": 1,
"notifSMS": 0,
"notifMail": 1,
"notifMybrand": 1,
"notifSourceEvent": "CRIT3.RDVDEALER",
"leadContactDays": 90,
"notifContactDays": 5,
"notifReminderDay": 15,
"notifReminderCount": 0,
"notifReminderCounter": 0,
"notifReminderDate": "2024-03-15T00:00:00.000Z",
"vin": "xxxxxxxxxxx",
"registrationNumber": "xxxxxxxxxxxx",
"countryCode": "IT",
"deliveryDate": "2020-10-30T00:00:00.000Z",
"brandComCode": "REN",
"modelCode": "HJB",
"partyId": "xxxxxxxxxxxxxxx",
"partyCountry": "IT",
"partyOrg": 0,
"partyStaff": 0,
"partyPhone": 1,
"partySms": null,
"partyMail": null,
"partyPostal": null,
"localeDefault": "it-IT",
"dealerNumber": "xxxxxxxxxxx",
"dealerNumberOrigin": "dealer_myr",
"isConnected": 1,
"mileageDate": "2024-02-29T00:00:00.000Z",
"mileage": 63593,
"yearMileage": 16064,
"operationCode": null,
"operationName": null,
"operationType": null,
"nextDate": null,
"nextMileage": null,
"reconductCount": 0,
"isConnectedOperation": 0,
"genReason": null,
"endMileage": 70068,
"status": 0,
"creationDateTime": "2024-02-29T14:21:02.382Z",
"lastUpdateDateTime": "2024-10-29T02:08:45.671Z",
"inVehicleDateTime": "2024-02-29T14:21:15.000Z",
"closureReason": "archived",
"function": "the airbag",
"shortDescription": "WARNING: Check Airbag",
"longDescription": "WARNING: Check Airbag",
"criticityName": "Major alert",
"alertCodeTitle": "Defective airbag",
"alertCodeSubTitle": "Details of the event",
"alertCodeDescription": "The airbag must be inspected",
"alertCodeDetailDescription": "We have detected a malfunction in your airbag system.\nYou must inspect it to ensure that the front passengers are protected if there is an impact. For further information, refer to the user manual of your vehicle below.",
"iconUrl": "https:\/\/cap-static-medias.ope.apps.renault.com\/images\/crashAirbag.png",
"detailImageUrl": "https:\/\/cap-static-medias.ope.apps.renault.com\/images\/crashAirbag.png",
"userGuideUrl": "https:\/\/it.e-guide.renault.com\/ita\/",
"mileageUnit": "km"
}
This works:
>renault-api http get /commerce/v1/accounts/{account_id}/vehicles/{vin}/alerts
This does not work:
>renault-api http get /commerce/v1/accounts/{account_id}/vehicles/{vin}/pressure
Note 1: in the apk the account string is accountId , not account_id ; testing would be easy if commandline also supported accountId
Note 2: some endpoints work with account id n.1, others with account id n.2: is this difference supported by this API?
Note: accountId2
What is accountId2? I only have one account.
I see there's a reference to a second "SFDC (Saleforce)" account in some test fixtures?
commerce/v1/persons/{person_id}/
{
// ...
"accounts": [
{
"accountId": "{accountId}",
"accountType": "MYRENAULT",
"accountStatus": "ACTIVE",
"country": "{countryCode}",
"personId": "{personId}",
"relationType": "OWNER"
}
],
// ...
}
Closing this as #1540 and #1541 have been merged