Skip to content

Tests on Nissan endpoints

jumpjack edited this page Apr 28, 2022 · 13 revisions

Tests on Nissan endpoints:

POST

actions/send-navigation

{
    "data": {
        "type": "SendNavigation",
        "attributes": {
            "downloadTrafficInfo": false, // true/false or 0/1
            "destinations": [ // Server note: "size must be between 1 and 5"
                {
                    "id": 1,  // Server note: "must be between 1 and 5"
                    "latitude": 42,
                    "longitude": 12,
                    "calculationCondition": 0  //  (Server notes: "must be between 0 and 3") (Probably "shorter", "faster", "eco",...)
                }
            ]
            }
        }
    }
}

/actions/srp-initiates , /actions/srp-sets

Unknown error

actions/horn-lights

{
    "data": {
        "type": "HornLights",
        "attributes": {
            "action": "start",
            "duration": 2,
            "target": "horn"
        }
    }
}

Security error:

{
    "status": "403",
    "code": "security.access",
    "detail": "Access is denied for this resource"
}

/actions/engine-start

{
    "data": {
        "type": "EngineStart",
        "attributes": {
            "action": "start"

        }
    }
}

Security error:

{
    "status": "403",
    "code": "security.access",
    "detail": "Access is denied for this resource"
}

actions/open-close

{
    "data": {
        "type": "OpenClose",
        "attributes": { 
            "target" : 1 ,  //   0 or 1  allowed (???)
            "action" : "open"
        }

    }
}

Hintsfor target:

Other hints:

  • "driver_s_door"
  • "doors_hatch"
    this.doorFrontLeft = _lockStatus(recs['doorStatusFrontLeft']);
    this.doorFrontRight = _lockStatus(recs['doorStatusFrontRight']);
    this.doorRearRight = _lockStatus(recs['doorStatusRearLeft']);
    this.doorRearLeft = _lockStatus(recs['doorStatusRearRight']);
    this.doorHatch = _lockStatus(recs['hatchStatus']);
    this.locked = _lockStatus(recs['lockStatus']);

Access denied:

{
    "status": "403",
    "code": "security.access",
    "detail": "Access is denied for this resource"
}

GET

/open-close-status

Not implemented:

{
    "status": "Not Implemented",
    "code": "501",
    "title": "Not supported Feature",
    "detail": "This feature is not technically supported by this gateway"
}

/pressure

Security error:

{
    "status": "502",
    "code": "gateway.processing",
    "title": "VNEXT",
    "detail": "an internal error occured while processing request : 403 FORBIDDEN"
}

/health-status

On Renault Captur PHEV:

Security error:

{
    "status": "502",
    "code": "gateway.processing",
    "title": "VNEXT",
    "detail": "an internal error occured while processing request : 403 FORBIDDEN"
}

On Zoe50:

    "data": {
        "type": "TECHNICAL",
        "messages": [
            {
                "code": "err.tech.wired.unknown-error",
                "message": "An unknown error happened"
            }
        ],
        "errors": [
            {
                "errorCode": "err.tech.wired.unknown-error",
                "errorMessage": "An unknown error happened"
            }
        ],
        "error_reference": "TECHNICAL"
    },
    "status": 500,
    "statusText": ""

trip-history?start=202110&end=202111&type=month

Start/End: YYYYMM if type=month YYYYMMDD if type = day

---> SECURITY ERROR

{
    "status": "403",
    "code": "security.access",
    "detail": "Access is denied for this resource"
}

trips?start=202110&end=202111&type=month

Start/End:

YYYYMMDD for both types (day and month)

---> SECURITY ERROR

{
    "status": "403",
    "code": "security.access",
    "detail": "Access is denied for this resource"
}

/energy-unit-cost

Security error:

{
    "status": "403",
    "code": "security.access",
    "detail": "Access is denied for this resource"
}

/res-state

{
    "status": "403",
    "code": "security.access",
    "detail": "Access is denied for this resource"
}

hvac-sessions?start=20211011&end=20211111&type=month

{
    "status": "Not Implemented",
    "code": "501",
    "title": "Not supported Feature",
    "detail": "This feature is not technically supported by this gateway"
}

hvac-history?start=202110&end=202111&type=month

{
    "status": "Not Implemented",
    "code": "501",
    "title": "Not supported Feature",
    "detail": "This feature is not technically supported by this gateway"
}