M2X APIs
- Job webhook
M2X APIS (1.0.0)
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}
- https://developer.m2x.app/apis/v0/jobs/{jobId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/jobs/{jobId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/jobs/{jobId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/jobs/{jobId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/jobs/{jobId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
A reference added by the driver at pickup, e.g. weighbridge docket number
A reference added by the driver at delivery, e.g. weighbridge docket number
A Bill of Lading reference added by the driver at pickup, e.g. Bill of Lading number
A Bill of Lading reference added by the driver at delivery, e.g. Bill of Lading number
A key value store containing docket measurement properties
{ "id": "string", "shortNote": "string", "updated": "2019-08-24T14:15:22Z", "created": "2019-08-24T14:15:22Z", "deleted": true, "attachments": [ { … } ], "bookedBy": { "uid": "string", "email": "string", "name": "string" }, "updatedBy": { "uid": "string", "email": "string", "name": "string" }, "reconciledBy": { "uid": "string", "email": "string", "name": "string" }, "deletedBy": { "uid": "string", "email": "string", "name": "string" }, "deliveryReference": "string", "truckReference": "string", "senderReference": "string", "receiverReference": "string", "truckSenderReference": "string", "truckReceiverReference": "string", "truckPickupBoLReference": "string", "truckDeliveryBoLReference": "string", "pickupDistanceReadingKm": 0, "deliveryDistanceReadingKm": 0, "distanceReadingDeltaKm": 0, "pickupEngineHoursReading": 0, "deliveryEngineHoursReading": 0, "engineReadingDeltaHours": 0, "externalId": "string", "orderId": "string", "orderFriendlyName": "string", "bookingId": "string", "customerId": "string", "customerExternalId": "string", "customerIntegrationId": "string", "customerName": "string", "billingGroupId": "string", "humanReadableId": "string", "billingGroupStatus": "string", "pickupLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "pickupRegions": { "dispatchRegionIds": [ … ] }, "pickupTimestamp": 0, "taskPickupTimestamp": "2019-08-24T14:15:22Z", "taskStartPickupTimestamp": "2019-08-24T14:15:22Z", "taskEndPickupTimestamp": "2019-08-24T14:15:22Z", "deliveryLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "deliveryRegions": { "dispatchRegionIds": [ … ] }, "deliveryTimestamp": 0, "taskDeliveryTimestamp": "2019-08-24T14:15:22Z", "taskStartDeliveryTimestamp": "2019-08-24T14:15:22Z", "taskEndDeliveryTimestamp": "2019-08-24T14:15:22Z", "dispatchHub": { "activityId": "string", "workId": "string", "type": "string", "subtypes": [ … ] }, "dynamicFulfilment": { "shiftId": "string", "serviceDay": "2019-08-24", "pickupTaskId": "string", "pickupConstraintId": "string", "deliveryTaskId": "string", "deliveryConstraintId": "string", "dispatchGroupId": "string" }, "vehicleId": "string", "vehicleExternalId": "string", "vehicleProperties": {}, "assets": { "driver": { … }, "tractorUnit": { … }, "trailers": [ … ], "miscAssets": [ … ], "isoContainers": [ … ] }, "subcontractorId": "string", "subcontractorExternalId": "string", "subcontractorProperties": {}, "transportRequirementsId": "string", "division": null, "productCode": null, "productCodeName": null, "productCodeExternalId": null, "productProperties": {}, "productComponents": [ { … } ], "properties": null, "quantity": 0, "distanceKm": 0, "precisionPrice": null, "precisionTkm": null, "precisionKm": null, "precisionHr": null, "status": "Booked", "invoicable": false, "priceTransport": null, "priceFaf": null, "podLink": null, "pocLink": null, "pod": { "pickup": { … }, "delivery": { … } }, "booked": { "pickupLocation": { … }, "pickupTimestamp": 0, "deliveryLocation": { … }, "deliveryTimestamp": 0, "vehicleId": "string", "productId": "string", "productCode": null, "quantity": 0, "distanceKm": 0 }, "docketMeasurementProperties": null, "cancellationNotes": null, "cancellationReason": null }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/attachment/{attachmentId}
- https://developer.m2x.app/apis/v0/jobs/{jobId}/attachment/{attachmentId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/jobs/{jobId}/attachment/{attachmentId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/jobs/{jobId}/attachment/{attachmentId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/jobs/{jobId}/attachment/{attachmentId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/jobs/{jobId}/attachment/{attachmentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/attachment/{attachmentId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/tasks
- https://developer.m2x.app/apis/v0/jobs/{jobId}/tasks
- NZ Production server (uses live data)https://m2x.app/apis/v0/jobs/{jobId}/tasks
- US Production server (uses live data)https://us.m2x.app/apis/v0/jobs/{jobId}/tasks
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/jobs/{jobId}/tasks
- Sandbox serverhttps://staging.m2x.app/apis/v0/jobs/{jobId}/tasks
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/tasks' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'[ { "shiftId": "string", "tasks": [ … ] } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/actionStepRecords
- https://developer.m2x.app/apis/v0/jobs/{jobId}/actionStepRecords
- NZ Production server (uses live data)https://m2x.app/apis/v0/jobs/{jobId}/actionStepRecords
- US Production server (uses live data)https://us.m2x.app/apis/v0/jobs/{jobId}/actionStepRecords
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/jobs/{jobId}/actionStepRecords
- Sandbox serverhttps://staging.m2x.app/apis/v0/jobs/{jobId}/actionStepRecords
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/actionStepRecords' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
uid for this exact instance of step action record
Step identifier for action associated with record
Step type for action associated with record
RFC3339 date time of step being actioned
Detail on the entity that actioned the step
M2X user identifier
Human readable name of entity, e.g. Driver's name
M2X vehicle Id associated with tracking device that actioned the step
Task associated with step action
Job associated with step action
Order associated with step action
Booking associated with step action
Shift associated with step action
[ { "actionStepRecordId": "i8rmqV1wDDg5OkAK1F43", "stepId": "weighbridgePreAdvise", "stepType": "EVENT", "timestamp": "2023-08-10T00:12:19.000+00:00", "actionedBy": { … }, "taskId": "IIX572-qlDbkYdQDd3vcsET8nGQ-1690861908653_0_qlDbkYdQDd3vcsET8nGQ_pickup", "jobId": "IIX572-qlDbkYdQDd3vcsET8nGQ-1690861908653_0", "transportOrderId": "IIX572-qlDbkYdQDd3vcsET8nGQ-1690861908653", "bookingId": "FIN158-qlDbkYdQDd3vcsET8nGQ-1679540523856", "shiftId": "qlDbkYdQDd3vcsET8nGQ-5o6aiI6prkBXRprUmkTy_2023-08-01_0" } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/notes/{noteId}
- https://developer.m2x.app/apis/v0/jobs/{jobId}/notes/{noteId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/jobs/{jobId}/notes/{noteId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/jobs/{jobId}/notes/{noteId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/jobs/{jobId}/notes/{noteId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/jobs/{jobId}/notes/{noteId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/notes/{noteId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"notes": "string"
}'- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/measurements/weighbridge/{measurementId}
- https://developer.m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/measurements/weighbridge/{measurementId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "unit": "kilogram", "netWeight": 0, "grossWeight": 0, "tareWeight": 0, "timestamp": 0, "metadata": {}, "properties": {} }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/measurements/weighbridge/{measurementId}
- https://developer.m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/jobs/{jobId}/measurements/weighbridge/{measurementId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/jobs/{jobId}/measurements/weighbridge/{measurementId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"unit": "tonne",
"netWeight": 31000,
"tareWeight": 10000,
"grossWeight": 41000
}'{ "unit": "tonne", "netWeight": 31000, "tareWeight": 10000, "grossWeight": 41000 }
A reference added by the driver at pickup, e.g. weighbridge docket number
A reference added by the driver at delivery, e.g. weighbridge docket number
A Bill of Lading reference added by the driver at pickup, e.g. Bill of Lading number
A Bill of Lading reference added by the driver at delivery, e.g. Bill of Lading number
A key value store containing docket measurement properties
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Job
- https://developer.m2x.app/apis/v0/Job
- NZ Production server (uses live data)https://m2x.app/apis/v0/Job
- US Production server (uses live data)https://us.m2x.app/apis/v0/Job
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Job
- Sandbox serverhttps://staging.m2x.app/apis/v0/Job
{ "id": "string", "shortNote": "string", "updated": "2019-08-24T14:15:22Z", "created": "2019-08-24T14:15:22Z", "deleted": true, "attachments": [ { … } ], "bookedBy": { "uid": "string", "email": "string", "name": "string" }, "updatedBy": { "uid": "string", "email": "string", "name": "string" }, "reconciledBy": { "uid": "string", "email": "string", "name": "string" }, "deletedBy": { "uid": "string", "email": "string", "name": "string" }, "deliveryReference": "string", "truckReference": "string", "senderReference": "string", "receiverReference": "string", "truckSenderReference": "string", "truckReceiverReference": "string", "truckPickupBoLReference": "string", "truckDeliveryBoLReference": "string", "pickupDistanceReadingKm": 0, "deliveryDistanceReadingKm": 0, "distanceReadingDeltaKm": 0, "pickupEngineHoursReading": 0, "deliveryEngineHoursReading": 0, "engineReadingDeltaHours": 0, "externalId": "string", "orderId": "string", "orderFriendlyName": "string", "bookingId": "string", "customerId": "string", "customerExternalId": "string", "customerIntegrationId": "string", "customerName": "string", "billingGroupId": "string", "humanReadableId": "string", "billingGroupStatus": "string", "pickupLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "pickupRegions": { "dispatchRegionIds": [ … ] }, "pickupTimestamp": 0, "taskPickupTimestamp": "2019-08-24T14:15:22Z", "taskStartPickupTimestamp": "2019-08-24T14:15:22Z", "taskEndPickupTimestamp": "2019-08-24T14:15:22Z", "deliveryLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "deliveryRegions": { "dispatchRegionIds": [ … ] }, "deliveryTimestamp": 0, "taskDeliveryTimestamp": "2019-08-24T14:15:22Z", "taskStartDeliveryTimestamp": "2019-08-24T14:15:22Z", "taskEndDeliveryTimestamp": "2019-08-24T14:15:22Z", "dispatchHub": { "activityId": "string", "workId": "string", "type": "string", "subtypes": [ … ] }, "dynamicFulfilment": { "shiftId": "string", "serviceDay": "2019-08-24", "pickupTaskId": "string", "pickupConstraintId": "string", "deliveryTaskId": "string", "deliveryConstraintId": "string", "dispatchGroupId": "string" }, "vehicleId": "string", "vehicleExternalId": "string", "vehicleProperties": {}, "assets": { "driver": { … }, "tractorUnit": { … }, "trailers": [ … ], "miscAssets": [ … ], "isoContainers": [ … ] }, "subcontractorId": "string", "subcontractorExternalId": "string", "subcontractorProperties": {}, "transportRequirementsId": "string", "division": null, "productCode": null, "productCodeName": null, "productCodeExternalId": null, "productProperties": {}, "productComponents": [ { … } ], "properties": null, "quantity": 0, "distanceKm": 0, "precisionPrice": null, "precisionTkm": null, "precisionKm": null, "precisionHr": null, "status": "Booked", "invoicable": false, "priceTransport": null, "priceFaf": null, "podLink": null, "pocLink": null, "pod": { "pickup": { … }, "delivery": { … } }, "booked": { "pickupLocation": { … }, "pickupTimestamp": 0, "deliveryLocation": { … }, "deliveryTimestamp": 0, "vehicleId": "string", "productId": "string", "productCode": null, "quantity": 0, "distanceKm": 0 }, "docketMeasurementProperties": null, "cancellationNotes": null, "cancellationReason": null }
uid for this exact instance of step action record
Step identifier for action associated with record
Step type for action associated with record
RFC3339 date time of step being actioned
Detail on the entity that actioned the step
M2X user identifier
Human readable name of entity, e.g. Driver's name
M2X vehicle Id associated with tracking device that actioned the step
Task associated with step action
Job associated with step action
Order associated with step action
Booking associated with step action
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Action Step Record
- https://developer.m2x.app/apis/v0/Action Step Record
- NZ Production server (uses live data)https://m2x.app/apis/v0/Action Step Record
- US Production server (uses live data)https://us.m2x.app/apis/v0/Action Step Record
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Action Step Record
- Sandbox serverhttps://staging.m2x.app/apis/v0/Action Step Record
{ "actionStepRecordId": "i8rmqV1wDDg5OkAK1F43", "stepId": "weighbridgePreAdvise", "stepType": "EVENT", "timestamp": "2023-08-10T00:12:19.000+00:00", "actionedBy": { "uid": "57dbfdcfaff5f6ba545583b2e03ee1e1-E01FA786-AC09-42EC-9697-02F17EC727F8", "name": "John Doe", "role": "driver", "vehicleId": "5o6aiI6prkBXRprUmkTy", "vehicleLocation": { … } }, "taskId": "IIX572-qlDbkYdQDd3vcsET8nGQ-1690861908653_0_qlDbkYdQDd3vcsET8nGQ_pickup", "jobId": "IIX572-qlDbkYdQDd3vcsET8nGQ-1690861908653_0", "transportOrderId": "IIX572-qlDbkYdQDd3vcsET8nGQ-1690861908653", "bookingId": "FIN158-qlDbkYdQDd3vcsET8nGQ-1679540523856", "shiftId": "qlDbkYdQDd3vcsET8nGQ-5o6aiI6prkBXRprUmkTy_2023-08-01_0" }