M2X APIs
- Query fuel activities
Query fuel activities by vehicle
Query fuel activities by shift (Webhook DTO)
Query deliveries
Upsert a delivery request that references tanks at the delivery location
Get a bulk tank delivery request by delivery request ID
Delete bulk tank delivery request
Upsert a bulk delivery request that does not reference any tanks at the delivery location
Get a bulk delivery request that does not reference any tanks at the delivery location
Delete delivery request that does not reference any tanks at the delivery location
Upsert Delivery Request
Delete Delivery
Reads Delivery Request
query deliveries belonging to a request
query deliveries belonging to a request
Reads Delivery
Query pickups
Query pickups
Query pickups, inventory adjustments, and deliveries for a trip
Query storages for a location
Create/update storage for a location
Create/update a measurement for a storage
Upsert Delivery Request
Delete Delivery
Reads Delivery Request
Upsert Delivery
Delete Delivery
Fuel pickup webhook
Fuel delivery webhook
Fuel dispatch group checked webhook
Fuel shift checked webhook
Query fuel activities
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" }