Manual pairing

Manually selecting the asset. When a user directly assigns a unit to an asset either via UI or Datahub Api, manual pairing is performed.

Event Structure

The manual pairing event structure includes the following fields.

FieldDescription
eventBatchIdThe unique identifier of the event batch.
eventSubscriptionIdThe unique identifier of the event subscription.
eventBatchTimeThe timestamp at which the event batch is generated.
eventsDataArray of events generated in the batch.
eventTypeType of the event.
eventVersionVersion of the event.
eventData.registeredOnThe timestamp at which the pairing is initiated.
eventData.organizationIdThe unique identifier of the organization for which the event belongs to.
eventData.assetIdThe unique identifier of the asset.
eventData.unitIdThe unique identifier specifying a unit with unit type and serial number.
eventData.statusThe status of the pairing of the unit with the asset in the system.
eventData.reasonReason for the asset pairing.
eventData.assetVINThe VIN entered in the asset management module of SCALAR.

Example

{
	"eventBatchId": "31fccdce-725e-4c87-a91b-3a8e66144641",
	"eventSubscriptionId": "41634ca6-a7fb-4dc2-9461-7e9b24be885e",
	"eventBatchTime": "2025-05-13T13:18:13.2017310Z",
	"eventsData": [
		{
			"eventType": "unit.paired",
			"eventVersion": 1,
			"eventData": {
				"registeredOn": "2025-05-12T22:20:00.000Z",
				"organizationId": "c8c90b90-ad39-4a3d-8b89-c25a22acaa25",
				"assetId": "5bca3b72-e006-4cea-bfaa-f5a4dcf3a63c",
				"unitId": "tp:890123847562332",
				"status": "success",
				"reason": "ManualPair",
				"assetVIN": "1HGCM82633A000001"
			}
		}
	]
}