M2X APIs
- Get tractor units list
M2X APIS (1.0.0)
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/tractorUnits
- https://developer.m2x.app/apis/v0/tractorUnits
- NZ Production server (uses live data)https://m2x.app/apis/v0/tractorUnits
- US Production server (uses live data)https://us.m2x.app/apis/v0/tractorUnits
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/tractorUnits
- Sandbox serverhttps://staging.m2x.app/apis/v0/tractorUnits
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://developer.m2x.app/_mock/apis/publicapi/openapi/tractorUnits \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
A key value store containing bespoke properties usable for pricing and optimisation
(optional) select which telematics to use (requires relevant telematics device id to be set)
[ { "name": "T001", "disabled": false, "registration": "ABC123", "description": "unit 6", "vin": "VIN123", "externalId": "Human searchable external id", "physicalConfiguration": { … }, "properties": {}, "metadata": {}, "trackingProvider": "EROAD", "eroadVehicleId": null, "motiveVehicleId": null, "mtDataVehicleId": null, "samsaraVehicleId": null, "orbcommVehicleId": null, "mixTelematicsVehicleId": null, "readonlyFields": { … }, "updated": "2019-08-24T14:15:22Z", "id": "T001" } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/tractorUnits/{tractorUnitId}
- https://developer.m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/tractorUnits/{tractorUnitId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
A key value store containing bespoke properties usable for pricing and optimisation
(optional) select which telematics to use (requires relevant telematics device id to be set)
{ "name": "T001", "disabled": false, "registration": "ABC123", "description": "unit 6", "vin": "VIN123", "externalId": "Human searchable external id", "physicalConfiguration": { "heightMetres": 2.1, "tareWeightKg": 20000 }, "properties": {}, "metadata": {}, "trackingProvider": "EROAD", "eroadVehicleId": null, "motiveVehicleId": null, "mtDataVehicleId": null, "samsaraVehicleId": null, "orbcommVehicleId": null, "mixTelematicsVehicleId": null, "readonlyFields": { "name": false, "registration": false, "vin": false, "tareWeightKg": false, "heightMetres": false, "description": false, "externalId": false, "telematics": false }, "updated": "2019-08-24T14:15:22Z", "id": "T001" }
Update for the tractor unit
A key value store containing bespoke properties usable for pricing and optimisation
(optional) select which telematics to use (requires relevant telematics device id to be set)
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/tractorUnits/{tractorUnitId}
- https://developer.m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/tractorUnits/{tractorUnitId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/tractorUnits/{tractorUnitId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "T001",
"disabled": false,
"registration": "ABC123",
"description": "unit 6",
"vin": "VIN123",
"externalId": "Human searchable external id",
"physicalConfiguration": {
"heightMetres": 2.1,
"tareWeightKg": 20000
},
"properties": {},
"metadata": {},
"trackingProvider": "EROAD",
"eroadVehicleId": null,
"motiveVehicleId": null,
"mtDataVehicleId": null,
"samsaraVehicleId": null,
"orbcommVehicleId": null,
"mixTelematicsVehicleId": null,
"readonlyFields": {
"name": false,
"registration": false,
"vin": false,
"tareWeightKg": false,
"heightMetres": false,
"description": false,
"externalId": false,
"telematics": false
},
"updated": "2019-08-24T14:15:22Z"
}'Successful operation
A key value store containing bespoke properties usable for pricing and optimisation
(optional) select which telematics to use (requires relevant telematics device id to be set)
{ "name": "T001", "disabled": false, "registration": "ABC123", "description": "unit 6", "vin": "VIN123", "externalId": "Human searchable external id", "physicalConfiguration": { "heightMetres": 2.1, "tareWeightKg": 20000 }, "properties": {}, "metadata": {}, "trackingProvider": "EROAD", "eroadVehicleId": null, "motiveVehicleId": null, "mtDataVehicleId": null, "samsaraVehicleId": null, "orbcommVehicleId": null, "mixTelematicsVehicleId": null, "readonlyFields": { "name": false, "registration": false, "vin": false, "tareWeightKg": false, "heightMetres": false, "description": false, "externalId": false, "telematics": false }, "updated": "2019-08-24T14:15:22Z", "id": "T001" }