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

Request

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

Responses

Successful operation

Bodyapplication/jsonArray [
namestringrequired

Driver name

Example: "John"
disabledbooleanrequired
Example: false
mobilestring

Driver phone number

Example: "+33 123"
descriptionstring
Example: "Nice Guy"
externalIdstring
Example: "Human searchable external id"
propertiesobject or null(CustomProperties)
metadataobject or null(Metadata)
readonlyFieldsobject

Specifies which field should not be touched by the user

idstring
Example: "D001"
]
Response
application/json
[ { "name": "John", "disabled": false, "mobile": "+33 123", "description": "Nice Guy", "externalId": "Human searchable external id", "properties": null, "metadata": null, "readonlyFields": { … }, "id": "D001" } ]

Request

Security
M2X_auth_application
Path
driverIdstringrequired

The driver Id

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

Responses

Successful operation

Bodyapplication/json
namestringrequired

Driver name

Example: "John"
disabledbooleanrequired
Example: false
mobilestring

Driver phone number

Example: "+33 123"
descriptionstring
Example: "Nice Guy"
externalIdstring
Example: "Human searchable external id"
propertiesobject or null(CustomProperties)
metadataobject or null(Metadata)
readonlyFieldsobject

Specifies which field should not be touched by the user

idstring
Example: "D001"
Response
application/json
{ "name": "John", "disabled": false, "mobile": "+33 123", "description": "Nice Guy", "externalId": "Human searchable external id", "properties": null, "metadata": null, "readonlyFields": { "name": false, "mobile": false, "description": false, "externalId": false }, "id": "D001" }

Request

Security
M2X_auth_application
Path
driverIdstringrequired

The driver Id

Bodyapplication/jsonrequired

Update for the driver

namestringrequired

Driver name

Example: "John"
disabledbooleanrequired
Example: false
mobilestring

Driver phone number

Example: "+33 123"
descriptionstring
Example: "Nice Guy"
externalIdstring
Example: "Human searchable external id"
propertiesobject or null(CustomProperties)
metadataobject or null(Metadata)
readonlyFieldsobject

Specifies which field should not be touched by the user

curl -i -X PUT \
  'https://developer.m2x.app/_mock/apis/publicapi/openapi/drivers/{driverId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "John",
    "disabled": false,
    "mobile": "+33 123",
    "description": "Nice Guy",
    "externalId": "Human searchable external id",
    "properties": null,
    "metadata": null,
    "readonlyFields": {
      "name": false,
      "mobile": false,
      "description": false,
      "externalId": false
    }
  }'

Responses

Successful operation

Bodyapplication/json
namestringrequired

Driver name

Example: "John"
disabledbooleanrequired
Example: false
mobilestring

Driver phone number

Example: "+33 123"
descriptionstring
Example: "Nice Guy"
externalIdstring
Example: "Human searchable external id"
propertiesobject or null(CustomProperties)
metadataobject or null(Metadata)
readonlyFieldsobject

Specifies which field should not be touched by the user

idstring
Example: "D001"
Response
application/json
{ "name": "John", "disabled": false, "mobile": "+33 123", "description": "Nice Guy", "externalId": "Human searchable external id", "properties": null, "metadata": null, "readonlyFields": { "name": false, "mobile": false, "description": false, "externalId": false }, "id": "D001" }
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
Operations
Operations

Vehicle Execution Statements

Unit of execution for trucks

OperationsWebhooks
Webhooks