M2X APIs
- Get ISO containers list
Find ISO containers by ID
Update/create ISO containers by ID
Get ISO containers list
M2X APIS (1.0.0)
Download OpenAPI description
Overview
License
All Rights Reserved
Languages
Servers
Mock server
https://developer.m2x.app/_mock/apis/publicapi/openapi/
https://developer.m2x.app/apis/v0/
NZ Production server (uses live data)
https://m2x.app/apis/v0/
US Production server (uses live data)
https://us.m2x.app/apis/v0/
AUS Production server (uses live data)
https://au.m2x.app/apis/v0/
Sandbox server
https://staging.m2x.app/apis/v0/
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/isoContainers
- https://developer.m2x.app/apis/v0/isoContainers
- NZ Production server (uses live data)https://m2x.app/apis/v0/isoContainers
- US Production server (uses live data)https://us.m2x.app/apis/v0/isoContainers
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/isoContainers
- Sandbox serverhttps://staging.m2x.app/apis/v0/isoContainers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://developer.m2x.app/_mock/apis/publicapi/openapi/isoContainers \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "name": "ISO1", "type": "Dry", "disabled": false, "description": "Green Container", "externalId": "Human searchable external id", "tareWeightKg": 0, "maxPayloadWeightKg": 0, "heightMetres": 0, "length": 6.058, "properties": null, "metadata": null, "trackingProvider": "EROAD", "eroadVehicleId": null, "motiveVehicleId": null, "mtDataVehicleId": null, "samsaraVehicleId": null, "orbcommVehicleId": null, "mixTelematicsVehicleId": null, "readonlyFields": { … }, "physicalConfiguration": { … }, "id": "C001" } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/isoContainers/{isoContainerId}
- https://developer.m2x.app/apis/v0/isoContainers/{isoContainerId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/isoContainers/{isoContainerId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/isoContainers/{isoContainerId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/isoContainers/{isoContainerId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/isoContainers/{isoContainerId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/isoContainers/{isoContainerId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "name": "ISO1", "type": "Dry", "disabled": false, "description": "Green Container", "externalId": "Human searchable external id", "tareWeightKg": 0, "maxPayloadWeightKg": 0, "heightMetres": 0, "length": 6.058, "properties": null, "metadata": null, "trackingProvider": "EROAD", "eroadVehicleId": null, "motiveVehicleId": null, "mtDataVehicleId": null, "samsaraVehicleId": null, "orbcommVehicleId": null, "mixTelematicsVehicleId": null, "readonlyFields": { "name": false, "groups": false, "type": false, "length": false, "tareWeightKg": false, "maxPayloadWeightKg": false, "heightMetres": false, "description": false, "externalId": false, "telematics": false, "compartments": false }, "physicalConfiguration": { "heightMetres": 2.1, "tareWeightKg": 1000, "maxPayloadWeightKg": 30000, "axleLoadingConfig": null, "frontAxle": null, "distanceFromFrontAxle": 7800, "frontAxleMaxLoadKg": 6000, "frontTareKg": 4000, "rearAxleMaxLoadKg": 18000, "rearConnection": "Shared Axle", "rearTareKg": 6000, "wheelbase": 8000, "compartments": [ … ] } }
Bodyapplication/jsonrequired
Update for the ISO containers
(optional) select which telematics to use (requires relevant telematics device id to be set)
Default "NONE"
Enum"EROAD""MOTIVE""MTDATA""SAMSARA""ORBCOMM""MIX_TELEMATICS""NONE"
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/isoContainers/{isoContainerId}
- https://developer.m2x.app/apis/v0/isoContainers/{isoContainerId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/isoContainers/{isoContainerId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/isoContainers/{isoContainerId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/isoContainers/{isoContainerId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/isoContainers/{isoContainerId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/isoContainers/{isoContainerId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "ISO1",
"type": "Dry",
"disabled": false,
"description": "Green Container",
"externalId": "Human searchable external id",
"tareWeightKg": 0,
"maxPayloadWeightKg": 0,
"heightMetres": 0,
"length": 6.058,
"properties": null,
"metadata": null,
"trackingProvider": "EROAD",
"eroadVehicleId": null,
"motiveVehicleId": null,
"mtDataVehicleId": null,
"samsaraVehicleId": null,
"orbcommVehicleId": null,
"mixTelematicsVehicleId": null,
"readonlyFields": {
"name": false,
"groups": false,
"type": false,
"length": false,
"tareWeightKg": false,
"maxPayloadWeightKg": false,
"heightMetres": false,
"description": false,
"externalId": false,
"telematics": false,
"compartments": false
},
"physicalConfiguration": {
"heightMetres": 2.1,
"tareWeightKg": 1000,
"maxPayloadWeightKg": 30000,
"axleLoadingConfig": null,
"frontAxle": null,
"distanceFromFrontAxle": 7800,
"frontAxleMaxLoadKg": 6000,
"frontTareKg": 4000,
"rearAxleMaxLoadKg": 18000,
"rearConnection": "Shared Axle",
"rearTareKg": 6000,
"wheelbase": 8000,
"compartments": [
{
"compartmentId": "asd123",
"name": 1,
"volumeM3": 4,
"offset": 1000
}
]
}
}'Response
application/json
{ "name": "ISO1", "type": "Dry", "disabled": false, "description": "Green Container", "externalId": "Human searchable external id", "tareWeightKg": 0, "maxPayloadWeightKg": 0, "heightMetres": 0, "length": 6.058, "properties": null, "metadata": null, "trackingProvider": "EROAD", "eroadVehicleId": null, "motiveVehicleId": null, "mtDataVehicleId": null, "samsaraVehicleId": null, "orbcommVehicleId": null, "mixTelematicsVehicleId": null, "readonlyFields": { "name": false, "groups": false, "type": false, "length": false, "tareWeightKg": false, "maxPayloadWeightKg": false, "heightMetres": false, "description": false, "externalId": false, "telematics": false, "compartments": false }, "physicalConfiguration": { "heightMetres": 2.1, "tareWeightKg": 1000, "maxPayloadWeightKg": 30000, "axleLoadingConfig": null, "frontAxle": null, "distanceFromFrontAxle": 7800, "frontAxleMaxLoadKg": 6000, "frontTareKg": 4000, "rearAxleMaxLoadKg": 18000, "rearConnection": "Shared Axle", "rearTareKg": 6000, "wheelbase": 8000, "compartments": [ … ] } }