M2X APIs
M2X APIS (1.0.0)
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/vehicleTimelineStatements/{vehicleTimelineStatementId}
- https://developer.m2x.app/apis/v0/vehicleTimelineStatements/{vehicleTimelineStatementId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/vehicleTimelineStatements/{vehicleTimelineStatementId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/vehicleTimelineStatements/{vehicleTimelineStatementId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/vehicleTimelineStatements/{vehicleTimelineStatementId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/vehicleTimelineStatements/{vehicleTimelineStatementId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/vehicleTimelineStatements/{vehicleTimelineStatementId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
The M2X internal location id. When a location is manually created in M2X, this is a randomly generated unique identifier. If creating locations via API, the caller can set the Location ID.
An optional external identifier assigned to the location. This ID can be provided when creating the location and is typically used for cross-system referencing or integration with external data sources.
IANA (aka TZ database) timezone name
The M2X internal location owner id. When a location is manually created in M2X, this is a randomly generated unique identifier. If creating locations via API, the caller can set the Location Owner ID.
The M2X internal location id. When a location is manually created in M2X, this is a randomly generated unique identifier. If creating locations via API, the caller can set the Location ID.
An optional external identifier assigned to the location. This ID can be provided when creating the location and is typically used for cross-system referencing or integration with external data sources.
The M2X internal location owner id. When a location is manually created in M2X, this is a randomly generated unique identifier. If creating locations via API, the caller can set the Location Owner ID.
[ { "id": "string", "vehicleId": "string", "serviceDay": "string", "deleted": true, "type": "SERVICE", "subTypes": [ … ], "inboundAssets": { … }, "outboundAssets": { … }, "arrivalTimestamp": "2019-08-24T14:15:22Z", "statementType": "BOOKED", "jobIdActioned": "string", "jobIdsOnBoard": [ … ], "mapId": "string", "fromLocation": { … }, "toLocation": { … }, "metrics": { … }, "references": { … }, "timeOnSite": { … } } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}
- https://developer.m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "id": "string", "vehicleId": "string", "deleted": true, "jobs": [ { … } ], "vehicleTimelineStatements": [ { … } ] }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}/details
- https://developer.m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}/details
- NZ Production server (uses live data)https://m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}/details
- US Production server (uses live data)https://us.m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}/details
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}/details
- Sandbox serverhttps://staging.m2x.app/apis/v0/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}/details
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/vehicleTimelineStatementsAllocations/{vehicleTimelineStatementsAllocationId}/details' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "id": "string", "vehicleId": "string", "deleted": true, "jobs": [ { … } ], "vehicleTimelineStatements": [ { … } ], "vehicleTimelineStatementDetails": [ { … } ] }
The M2X internal location id. When a location is manually created in M2X, this is a randomly generated unique identifier. If creating locations via API, the caller can set the Location ID.
An optional external identifier assigned to the location. This ID can be provided when creating the location and is typically used for cross-system referencing or integration with external data sources.
IANA (aka TZ database) timezone name
The M2X internal location owner id. When a location is manually created in M2X, this is a randomly generated unique identifier. If creating locations via API, the caller can set the Location Owner ID.
The M2X internal location id. When a location is manually created in M2X, this is a randomly generated unique identifier. If creating locations via API, the caller can set the Location ID.
An optional external identifier assigned to the location. This ID can be provided when creating the location and is typically used for cross-system referencing or integration with external data sources.
The M2X internal location owner id. When a location is manually created in M2X, this is a randomly generated unique identifier. If creating locations via API, the caller can set the Location Owner ID.
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Vehicle Timeline Statement
- https://developer.m2x.app/apis/v0/Vehicle Timeline Statement
- NZ Production server (uses live data)https://m2x.app/apis/v0/Vehicle Timeline Statement
- US Production server (uses live data)https://us.m2x.app/apis/v0/Vehicle Timeline Statement
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Vehicle Timeline Statement
- Sandbox serverhttps://staging.m2x.app/apis/v0/Vehicle Timeline Statement
{ "id": "string", "vehicleId": "string", "serviceDay": "string", "deleted": true, "type": "SERVICE", "subTypes": [ "CLEAN" ], "inboundAssets": { "driver": { … }, "tractorUnit": { … }, "trailers": [ … ], "miscAssets": [ … ], "isoContainers": [ … ] }, "outboundAssets": { "driver": { … }, "tractorUnit": { … }, "trailers": [ … ], "miscAssets": [ … ], "isoContainers": [ … ] }, "arrivalTimestamp": "2019-08-24T14:15:22Z", "statementType": "BOOKED", "jobIdActioned": "string", "jobIdsOnBoard": [ "string" ], "mapId": "string", "fromLocation": { "addressText": "string", "latitude": 0, "name": "string", "locationId": "string", "externalId": "string", "longitude": 0, "timezone": "Pacific/Auckland", "ownerId": "string", "version": "string" }, "toLocation": { "addressText": "string", "latitude": 0, "name": "string", "locationId": "string", "externalId": "string", "longitude": 0, "timezone": "Pacific/Auckland", "ownerId": "string", "version": "string" }, "metrics": { "distanceMeters": 0, "driveDurationSeconds": 0, "payloadKg": 0, "queueDurationSeconds": 0, "waitDurationSeconds": 0, "serviceDurationSeconds": 0 }, "references": { "deliveryReference": "string", "fromReference": "string", "toReference": "string" }, "timeOnSite": { "arrivalTimestamp": "2019-08-24T14:15:22Z", "departureTimestamp": "2019-08-24T14:15:22Z" } }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Vehicle Timeline Statements Allocation
- https://developer.m2x.app/apis/v0/Vehicle Timeline Statements Allocation
- NZ Production server (uses live data)https://m2x.app/apis/v0/Vehicle Timeline Statements Allocation
- US Production server (uses live data)https://us.m2x.app/apis/v0/Vehicle Timeline Statements Allocation
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Vehicle Timeline Statements Allocation
- Sandbox serverhttps://staging.m2x.app/apis/v0/Vehicle Timeline Statements Allocation
{ "id": "string", "vehicleId": "string", "deleted": true, "jobs": [ { … } ], "vehicleTimelineStatements": [ { … } ] }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Vehicle Timeline Statements Allocation Details
- https://developer.m2x.app/apis/v0/Vehicle Timeline Statements Allocation Details
- NZ Production server (uses live data)https://m2x.app/apis/v0/Vehicle Timeline Statements Allocation Details
- US Production server (uses live data)https://us.m2x.app/apis/v0/Vehicle Timeline Statements Allocation Details
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Vehicle Timeline Statements Allocation Details
- Sandbox serverhttps://staging.m2x.app/apis/v0/Vehicle Timeline Statements Allocation Details
{ "id": "string", "vehicleId": "string", "deleted": true, "jobs": [ { … } ], "vehicleTimelineStatements": [ { … } ], "vehicleTimelineStatementDetails": [ { … } ] }