LogRemoval (...)

Introduction
Final step to record the permanent removal of a device, and ends the install session. It does not need RegisterDevice.
The serial number passed to InitiateInstall must be the device being removed. All details apart from the token are optional. An install token can be used for one final call only (see SubmitInstall). Errors (error code): TooManyPhotos, InvalidPhotoData, UnsupportedMimeType, PhotoTooLarge, 5804 (invalid or expired install token), 5800 (the install token was already submitted), GenericError (the removal could not be recorded), UnsupportedApiVersion.
Parameters

apiKey

The API key (user ID) of the authenticated caller, as returned by Authenticate. Send null when authenticating with a Bearer token.

cameraId

Optional. Camera serial number, if a camera is being removed.

comments

Optional. Installer comments.

engineHours

Optional. Engine hours at the time of removal.

installToken

The install session token returned by InitiateInstall.

licensePlate

Optional. License plate.

make

Optional. Vehicle make.

model

Optional. Vehicle model.

odometer

Optional. Odometer reading at the time of removal. Send odometerUnit with it.

odometerUnit

Optional. Unit of the odometer reading: Kilometers or Miles.

photos

Optional photos to attach, as InstallPhotoUpload items. At most 5 photos, each at most 10 MB once decoded, JPEG or PNG only (HEIC is not accepted).

sessionId

The session ID of the authenticated caller, as returned by Authenticate. Send null when authenticating with a Bearer token.

vehicleName

Optional. Name or description of the vehicle.

vin

Optional. Vehicle Identification Number.

workOrderReference

Optional. Work order reference number.

year

Optional. Vehicle model year.
Return value
An ApiRemovalResult with the record ID and the time of the record.
Remarks
The serial number passed to InitiateInstall must be the device being removed. All details apart from the token are optional. An install token can be used for one final call only (see SubmitInstall). Errors (error code): TooManyPhotos, InvalidPhotoData, UnsupportedMimeType, PhotoTooLarge, 5804 (invalid or expired install token), 5800 (the install token was already submitted), GenericError (the removal could not be recorded), UnsupportedApiVersion.
Code samples

Loading API Runner...