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/analytics/sla
- https://developer.m2x.app/apis/v0/analytics/sla
- NZ Production server (uses live data)https://m2x.app/apis/v0/analytics/sla
- US Production server (uses live data)https://us.m2x.app/apis/v0/analytics/sla
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/analytics/sla
- Sandbox serverhttps://staging.m2x.app/apis/v0/analytics/sla
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.m2x.app/_mock/apis/publicapi/openapi/analytics/sla \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"start": "2021-01-01T12:00:00.000Z",
"end": "2021-06-30T11:59:59.999Z",
"fromType": "locationGroup",
"endType": "locationGroup",
"fromId": null,
"endId": null,
"groups": [],
"productCodeIds": [],
"productTypes": [],
"type": "daily"
}'Response
application/json
{ "status": { "breached": { … }, "none": { … }, "respected": { … }, "totalJobs": 0, "totalQuantity": 0, "totalWeightKg": 0 }, "slaOverTime": [ { … } ], "slaDelaySplits": [ { … } ] }