M2X APIs
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/fuel/activities
- https://developer.m2x.app/apis/v0/fuel/activities
- NZ Production server (uses live data)https://m2x.app/apis/v0/fuel/activities
- US Production server (uses live data)https://us.m2x.app/apis/v0/fuel/activities
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/fuel/activities
- Sandbox serverhttps://staging.m2x.app/apis/v0/fuel/activities
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/fuel/activities?start=2019-08-24&end=2019-08-24' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "starts": [ { … } ], "ends": [ { … } ], "pickups": [ { … } ], "deliveries": [ { … } ], "inventoryAdjust": [ { … } ] }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/fuel/activities/vehicle/{vehicleId}
- https://developer.m2x.app/apis/v0/fuel/activities/vehicle/{vehicleId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/fuel/activities/vehicle/{vehicleId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/fuel/activities/vehicle/{vehicleId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/fuel/activities/vehicle/{vehicleId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/fuel/activities/vehicle/{vehicleId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/fuel/activities/vehicle/{vehicleId}?start=2019-08-24&end=2019-08-24' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "starts": [ { … } ], "ends": [ { … } ], "pickups": [ { … } ], "deliveries": [ { … } ], "inventoryAdjust": [ { … } ] }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/fuel/activities/shift/{shiftId}
- https://developer.m2x.app/apis/v0/fuel/activities/shift/{shiftId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/fuel/activities/shift/{shiftId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/fuel/activities/shift/{shiftId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/fuel/activities/shift/{shiftId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/fuel/activities/shift/{shiftId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/fuel/activities/shift/{shiftId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "activities": { "starts": [ … ], "ends": [ … ], "pickups": [ … ], "deliveries": [ … ], "inventoryAdjust": [ … ] }, "shiftId": "string" }