Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features in captur: tyres pressure and active errors #1481

Open
jumpjack opened this issue Feb 21, 2025 · 4 comments
Open

New features in captur: tyres pressure and active errors #1481

jumpjack opened this issue Feb 21, 2025 · 4 comments

Comments

@jumpjack
Copy link

jumpjack commented Feb 21, 2025

Android app now shows this for my Captur:

Image

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".

@epenet
Copy link
Collaborator

epenet commented Feb 21, 2025

See #1411

@jumpjack
Copy link
Author

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"
        }

@jumpjack
Copy link
Author

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?

@Thomascountz
Copy link

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"
    }
  ],
  // ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants