def METHOD_NAME(vin):
    soclogging.logDebug(2, "Requesting vehicle list")
    url = parameters.getParameter('baseUrl') + '/api/v1/spa/vehicles'
    headers = {
        'Authorization': parameters.getParameter('tokenType') + ' ' + parameters.getParameter('accessToken'),
        'ccsp-device-id': parameters.getParameter('deviceId'),
        'ccsp-application-id': parameters.getParameter('appId'),
        'offset': '1',
        'Host': parameters.getParameter('host'),
        'Connection': 'close',
        'Accept-Encoding': 'gzip, deflate',
        'User-Agent': 'okhttp/3.10.0',
        'Stamp': stamps.getStamp()}
    try:
        response = kiahttp.getHTTP(url=url, headers=headers, timeout=parameters.getParameter('reqTimeout'))
    except:
        raise
    vehicleId = ''
    try:
        responseDict = json.loads(response)
        for vehicle in responseDict['resMsg']['vehicles']:
            if vehicle['vin'] == vin:
                vehicleId = vehicle['vehicleId']
    except:
        soclogging.logDebug(1, "Vehicle request failed, invalid response")
        soclogging.logDebug(2, response)
        raise
    if vehicleId == '':
        soclogging.logDebug(1, "VIN " + vin + " unknown")
        raise
    soclogging.logDebug(2, "VehicleId = " + vehicleId)
    return vehicleId