Skip to content
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/
Operations

Billing Groups

Invoiceable unit used by the system

Operations
Operations

Carrier Bookings

Corporate bookings received by carriers

Operations

Carrier Large Contracts

Carrier large contracts

Operations
Operations

Corporate Planning

Corporate Planning supplies and demands

Operations

Customer Bookings

Customer bookings on carriers

Operations

Customers

Customers used for invoices

Operations
Operations
Operations

Fulfilment Requests

Fulfilment request on carriers

OperationsWebhooks

General Consignments

General consignments

Operations

ISO containers

ISO containers information

Operations
OperationsWebhooks
Operations
OperationsWebhooks

Offers

Corporate monetary offers to carriers

OperationsWebhooks

Products

Products used by the system

Operations
Operations

Subcontractors

Subcontractors information

Operations

Tractor Unit

Tractor units information

Operations
Operations

Request

Security
M2X_auth_application
curl -i -X GET \
  https://developer.m2x.app/_mock/apis/publicapi/openapi/trailers \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Successful operation

Bodyapplication/jsonArray [
namestringrequired

Human identifier for the trailer

Example: "T001"
disabledbooleanrequired
Example: false
registrationstring or null
Example: "ABC123"
descriptionstring or null
Example: "Dog Trailer"
externalIdstring or null
Example: "Human searchable external id"
typestringrequired
Enum"Livestock""Bulk""Curtain Side""Dolly""Tanker""Skeletal""Flat Deck""Spreader"
Discriminator
propertiesobject

A key value store containing bespoke properties usable for pricing and optimisation

Default {}
metadataobject

Opaque passenger data

Default {}
trackingProviderstring or null

(optional) select which telematics to use (requires relevant telematics device id to be set)

Default "NONE"
Enum"EROAD""MOTIVE""MTDATA""SAMSARA""ORBCOMM""MIX_TELEMATICS""NONE"
eroadVehicleIdstring or null

(optional) telematics device id

Default null
motiveVehicleIdstring or null

(optional) telematics device id

Default null
mtDataVehicleIdstring or null

(optional) telematics device id

Default null
samsaraVehicleIdstring or null

(optional) telematics device id

Default null
orbcommVehicleIdstring or null

(optional) telematics device id

Default null
mixTelematicsVehicleIdstring or null

(optional) telematics device id

Default null
labelsArray of strings

(optional) an array of labels use to generate the vehicle groups for routing template selection

Default []
readonlyFieldsobject

Specifies which field should not be touched by the user

physicalConfigurationobject(BulkPhysicalConfiguration)
tareWeightKgnumberDeprecated
Default 0
maxPayloadWeightKgnumberDeprecated
Default 0
heightMetresnumberDeprecated
Default 0
]
Response
application/json
[ { "name": "T001", "disabled": false, "registration": "ABC123", "description": "Dog Trailer", "externalId": "Human searchable external id", "tareWeightKg": 0, "maxPayloadWeightKg": 0, "heightMetres": 0, "type": "Livestock", "properties": {}, "metadata": {}, "trackingProvider": "EROAD", "eroadVehicleId": null, "motiveVehicleId": null, "mtDataVehicleId": null, "samsaraVehicleId": null, "orbcommVehicleId": null, "mixTelematicsVehicleId": null, "labels": [], "readonlyFields": { … }, "physicalConfiguration": { … }, "id": "T001" } ]

Request

Security
M2X_auth_application
Path
trailerIdstringrequired

The trailer Id

curl -i -X GET \
  'https://developer.m2x.app/_mock/apis/publicapi/openapi/trailers/{trailerId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Successful operation

Bodyapplication/json
namestringrequired

Human identifier for the trailer

Example: "T001"
disabledbooleanrequired
Example: false
registrationstring or null
Example: "ABC123"
descriptionstring or null
Example: "Dog Trailer"
externalIdstring or null
Example: "Human searchable external id"
typestringrequired
Enum"Livestock""Bulk""Curtain Side""Dolly""Tanker""Skeletal""Flat Deck""Spreader"
Discriminator
propertiesobject

A key value store containing bespoke properties usable for pricing and optimisation

Default {}
metadataobject

Opaque passenger data

Default {}
trackingProviderstring or null

(optional) select which telematics to use (requires relevant telematics device id to be set)

Default "NONE"
Enum"EROAD""MOTIVE""MTDATA""SAMSARA""ORBCOMM""MIX_TELEMATICS""NONE"
eroadVehicleIdstring or null

(optional) telematics device id

Default null
motiveVehicleIdstring or null

(optional) telematics device id

Default null
mtDataVehicleIdstring or null

(optional) telematics device id

Default null
samsaraVehicleIdstring or null

(optional) telematics device id

Default null
orbcommVehicleIdstring or null

(optional) telematics device id

Default null
mixTelematicsVehicleIdstring or null

(optional) telematics device id

Default null
labelsArray of strings

(optional) an array of labels use to generate the vehicle groups for routing template selection

Default []
readonlyFieldsobject

Specifies which field should not be touched by the user

physicalConfigurationobject(BulkPhysicalConfiguration)
tareWeightKgnumberDeprecated
Default 0
maxPayloadWeightKgnumberDeprecated
Default 0
heightMetresnumberDeprecated
Default 0
Response
application/json
{ "name": "T001", "disabled": false, "registration": "ABC123", "description": "Dog Trailer", "externalId": "Human searchable external id", "tareWeightKg": 0, "maxPayloadWeightKg": 0, "heightMetres": 0, "type": "Bulk", "properties": {}, "metadata": {}, "trackingProvider": "EROAD", "eroadVehicleId": null, "motiveVehicleId": null, "mtDataVehicleId": null, "samsaraVehicleId": null, "orbcommVehicleId": null, "mixTelematicsVehicleId": null, "labels": [], "readonlyFields": { "name": false, "labels": false, "registration": false, "type": false, "tareWeightKg": false, "maxPayloadWeightKg": false, "heightMetres": false, "description": false, "externalId": false, "telematics": false, "axleLoadingConfig": false, "compartments": false }, "physicalConfiguration": { "heightMetres": 2.1, "tareWeightKg": 1000, "maxPayloadWeightKg": 30000, "axleLoadingConfig": null, "frontAxle": null, "distanceFromFrontAxle": 7800, "frontAxleMaxLoadKg": 6000, "frontTareKg": 4000, "rearAxleMaxLoadKg": 18000, "rearConnection": "Shared Axle", "rearTareKg": 6000, "wheelbase": 8000, "compartments": [ … ] } }

Request

Security
M2X_auth_application
Path
trailerIdstringrequired

The trailer Id

Bodyapplication/jsonrequired

Update for the trailer

namestringrequired

Human identifier for the trailer

Example: "T001"
disabledbooleanrequired
Example: false
registrationstring or null
Example: "ABC123"
descriptionstring or null
Example: "Dog Trailer"
externalIdstring or null
Example: "Human searchable external id"
typestringrequired
Enum"Livestock""Bulk""Curtain Side""Dolly""Tanker""Skeletal""Flat Deck""Spreader"
Discriminator
propertiesobject

A key value store containing bespoke properties usable for pricing and optimisation

Default {}
metadataobject

Opaque passenger data

Default {}
trackingProviderstring or null

(optional) select which telematics to use (requires relevant telematics device id to be set)

Default "NONE"
Enum"EROAD""MOTIVE""MTDATA""SAMSARA""ORBCOMM""MIX_TELEMATICS""NONE"
eroadVehicleIdstring or null

(optional) telematics device id

Default null
motiveVehicleIdstring or null

(optional) telematics device id

Default null
mtDataVehicleIdstring or null

(optional) telematics device id

Default null
samsaraVehicleIdstring or null

(optional) telematics device id

Default null
orbcommVehicleIdstring or null

(optional) telematics device id

Default null
mixTelematicsVehicleIdstring or null

(optional) telematics device id

Default null
labelsArray of strings

(optional) an array of labels use to generate the vehicle groups for routing template selection

Default []
readonlyFieldsobject

Specifies which field should not be touched by the user

physicalConfigurationobject(BulkPhysicalConfiguration)
tareWeightKgnumberDeprecated
Default 0
maxPayloadWeightKgnumberDeprecated
Default 0
heightMetresnumberDeprecated
Default 0
curl -i -X PUT \
  'https://developer.m2x.app/_mock/apis/publicapi/openapi/trailers/{trailerId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "T001",
    "disabled": false,
    "registration": "ABC123",
    "description": "Dog Trailer",
    "externalId": "Human searchable external id",
    "tareWeightKg": 0,
    "maxPayloadWeightKg": 0,
    "heightMetres": 0,
    "type": "Bulk",
    "properties": {},
    "metadata": {},
    "trackingProvider": "EROAD",
    "eroadVehicleId": null,
    "motiveVehicleId": null,
    "mtDataVehicleId": null,
    "samsaraVehicleId": null,
    "orbcommVehicleId": null,
    "mixTelematicsVehicleId": null,
    "labels": [],
    "readonlyFields": {
      "name": false,
      "labels": false,
      "registration": false,
      "type": false,
      "tareWeightKg": false,
      "maxPayloadWeightKg": false,
      "heightMetres": false,
      "description": false,
      "externalId": false,
      "telematics": false,
      "axleLoadingConfig": false,
      "compartments": false
    },
    "physicalConfiguration": {
      "heightMetres": 2.1,
      "tareWeightKg": 1000,
      "maxPayloadWeightKg": 30000,
      "axleLoadingConfig": null,
      "frontAxle": null,
      "distanceFromFrontAxle": 7800,
      "frontAxleMaxLoadKg": 6000,
      "frontTareKg": 4000,
      "rearAxleMaxLoadKg": 18000,
      "rearConnection": "Shared Axle",
      "rearTareKg": 6000,
      "wheelbase": 8000,
      "compartments": [
        {
          "compartmentId": "asd123",
          "name": 1,
          "volumeM3": 4,
          "offset": 1000
        }
      ]
    }
  }'

Responses

Successful operation

Bodyapplication/json
namestringrequired

Human identifier for the trailer

Example: "T001"
disabledbooleanrequired
Example: false
registrationstring or null
Example: "ABC123"
descriptionstring or null
Example: "Dog Trailer"
externalIdstring or null
Example: "Human searchable external id"
typestringrequired
Enum"Livestock""Bulk""Curtain Side""Dolly""Tanker""Skeletal""Flat Deck""Spreader"
Discriminator
propertiesobject

A key value store containing bespoke properties usable for pricing and optimisation

Default {}
metadataobject

Opaque passenger data

Default {}
trackingProviderstring or null

(optional) select which telematics to use (requires relevant telematics device id to be set)

Default "NONE"
Enum"EROAD""MOTIVE""MTDATA""SAMSARA""ORBCOMM""MIX_TELEMATICS""NONE"
eroadVehicleIdstring or null

(optional) telematics device id

Default null
motiveVehicleIdstring or null

(optional) telematics device id

Default null
mtDataVehicleIdstring or null

(optional) telematics device id

Default null
samsaraVehicleIdstring or null

(optional) telematics device id

Default null
orbcommVehicleIdstring or null

(optional) telematics device id

Default null
mixTelematicsVehicleIdstring or null

(optional) telematics device id

Default null
labelsArray of strings

(optional) an array of labels use to generate the vehicle groups for routing template selection

Default []
readonlyFieldsobject

Specifies which field should not be touched by the user

physicalConfigurationobject(BulkPhysicalConfiguration)
tareWeightKgnumberDeprecated
Default 0
maxPayloadWeightKgnumberDeprecated
Default 0
heightMetresnumberDeprecated
Default 0
Response
application/json
{ "name": "T001", "disabled": false, "registration": "ABC123", "description": "Dog Trailer", "externalId": "Human searchable external id", "tareWeightKg": 0, "maxPayloadWeightKg": 0, "heightMetres": 0, "type": "Bulk", "properties": {}, "metadata": {}, "trackingProvider": "EROAD", "eroadVehicleId": null, "motiveVehicleId": null, "mtDataVehicleId": null, "samsaraVehicleId": null, "orbcommVehicleId": null, "mixTelematicsVehicleId": null, "labels": [], "readonlyFields": { "name": false, "labels": false, "registration": false, "type": false, "tareWeightKg": false, "maxPayloadWeightKg": false, "heightMetres": false, "description": false, "externalId": false, "telematics": false, "axleLoadingConfig": false, "compartments": false }, "physicalConfiguration": { "heightMetres": 2.1, "tareWeightKg": 1000, "maxPayloadWeightKg": 30000, "axleLoadingConfig": null, "frontAxle": null, "distanceFromFrontAxle": 7800, "frontAxleMaxLoadKg": 6000, "frontTareKg": 4000, "rearAxleMaxLoadKg": 18000, "rearConnection": "Shared Axle", "rearTareKg": 6000, "wheelbase": 8000, "compartments": [ … ] } }
Operations
Operations

Vehicle Execution Statements

Unit of execution for trucks

OperationsWebhooks
Webhooks