RegisterDevice (...)

Introduction
Adds the device to the customer's MyGeotab database as the chosen asset type and marks the install session as registered.
Call this after InitiateInstall and before the device checks and the final submit call. Repeating the call with the same asset type is safe: nothing is added twice and the call succeeds again. Repeating it with a different asset type fails with error 5801. Errors (error code): 5802 (asset type is not one of VEHICLE, EQUIPMENT, CONTAINER or TRAILER), 5801 (the device is already registered as another asset type), 5804 (invalid or expired install token), DeviceAlreadyOwned (the device is registered to a different account), GenericDeviceError (the device could not be added to the database), UnsupportedApiVersion.
Parameters

apiKey

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

installToken

The install session token returned by InitiateInstall.

request

Registration options. assetType is required: VEHICLE, EQUIPMENT, CONTAINER or TRAILER (not case sensitive).

sessionId

The session ID of the authenticated caller, as returned by Authenticate. Send null when authenticating with a Bearer token.
Return value
An ApiRegisterDeviceResult with the device serial number and the UTC time of this response.
Remarks
Call this after InitiateInstall and before the device checks and the final submit call. Repeating the call with the same asset type is safe: nothing is added twice and the call succeeds again. Repeating it with a different asset type fails with error 5801. Errors (error code): 5802 (asset type is not one of VEHICLE, EQUIPMENT, CONTAINER or TRAILER), 5801 (the device is already registered as another asset type), 5804 (invalid or expired install token), DeviceAlreadyOwned (the device is registered to a different account), GenericDeviceError (the device could not be added to the database), UnsupportedApiVersion.
Code samples

Loading API Runner...