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

Request

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

Responses

Successful operation

Bodyapplication/jsonArray [
subcontractorNamestringrequired

Subcontractor name

Example: "John"
disabledbooleanrequired
Example: false
carrierIdstring

Carrier id of the subcontractor

Example: "C001"
carrierNamestring

Carrier name of the subcontractor

Example: "Nice Subcontractor"
customerIdstring

Customer id of the subcontractor

Example: "C001"
emailstring
Example: "my@subcontractor.com"
externalIdstring
Example: "Human searchable external id"
subcontractorIdstring
Example: "C001"
vehicleExternalIdstring

External id of the subcontractor vehicle when dispatching

Example: "EXT001"
vehicleIdstring

Id of the subcontractor vehicle when dispatching

Example: "V001"
vehicleNamestring

Name of the subcontractor vehicle when dispatching

Example: "Nice Subcontractor Vehicle"
propertiesobject or null(CustomProperties)
readonlyFieldsobject

Specifies which field should not be touched by the user

idstring
Example: "D001"
]
Response
application/json
[ { "subcontractorName": "John", "disabled": false, "carrierId": "C001", "carrierName": "Nice Subcontractor", "customerId": "C001", "email": "my@subcontractor.com", "externalId": "Human searchable external id", "subcontractorId": "C001", "vehicleExternalId": "EXT001", "vehicleId": "V001", "vehicleName": "Nice Subcontractor Vehicle", "properties": null, "readonlyFields": { … }, "id": "D001" } ]

Request

Security
M2X_auth_application
Path
subcontractorIdstringrequired

The subcontractor Id

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

Responses

Successful operation

Bodyapplication/json
subcontractorNamestringrequired

Subcontractor name

Example: "John"
disabledbooleanrequired
Example: false
carrierIdstring

Carrier id of the subcontractor

Example: "C001"
carrierNamestring

Carrier name of the subcontractor

Example: "Nice Subcontractor"
customerIdstring

Customer id of the subcontractor

Example: "C001"
emailstring
Example: "my@subcontractor.com"
externalIdstring
Example: "Human searchable external id"
subcontractorIdstring
Example: "C001"
vehicleExternalIdstring

External id of the subcontractor vehicle when dispatching

Example: "EXT001"
vehicleIdstring

Id of the subcontractor vehicle when dispatching

Example: "V001"
vehicleNamestring

Name of the subcontractor vehicle when dispatching

Example: "Nice Subcontractor Vehicle"
propertiesobject or null(CustomProperties)
readonlyFieldsobject

Specifies which field should not be touched by the user

idstring
Example: "D001"
Response
application/json
{ "subcontractorName": "John", "disabled": false, "carrierId": "C001", "carrierName": "Nice Subcontractor", "customerId": "C001", "email": "my@subcontractor.com", "externalId": "Human searchable external id", "subcontractorId": "C001", "vehicleExternalId": "EXT001", "vehicleId": "V001", "vehicleName": "Nice Subcontractor Vehicle", "properties": null, "readonlyFields": { "subcontractorName": false, "email": false, "vehicleExternalId": false, "vehicleId": false, "vehicleName": false, "externalId": false, "properties": false }, "id": "D001" }

Request

Security
M2X_auth_application
Path
subcontractorIdstringrequired

The subcontractor Id

Bodyapplication/jsonrequired

Update for the subcontractor

subcontractorNamestringrequired

Subcontractor name

Example: "John"
disabledbooleanrequired
Example: false
carrierIdstring

Carrier id of the subcontractor

Example: "C001"
carrierNamestring

Carrier name of the subcontractor

Example: "Nice Subcontractor"
customerIdstring

Customer id of the subcontractor

Example: "C001"
emailstring
Example: "my@subcontractor.com"
externalIdstring
Example: "Human searchable external id"
subcontractorIdstring
Example: "C001"
vehicleExternalIdstring

External id of the subcontractor vehicle when dispatching

Example: "EXT001"
vehicleIdstring

Id of the subcontractor vehicle when dispatching

Example: "V001"
vehicleNamestring

Name of the subcontractor vehicle when dispatching

Example: "Nice Subcontractor Vehicle"
propertiesobject or null(CustomProperties)
readonlyFieldsobject

Specifies which field should not be touched by the user

curl -i -X PUT \
  'https://developer.m2x.app/_mock/apis/publicapi/openapi/subcontractors/{subcontractorId}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "subcontractorName": "John",
    "disabled": false,
    "carrierId": "C001",
    "carrierName": "Nice Subcontractor",
    "customerId": "C001",
    "email": "my@subcontractor.com",
    "externalId": "Human searchable external id",
    "subcontractorId": "C001",
    "vehicleExternalId": "EXT001",
    "vehicleId": "V001",
    "vehicleName": "Nice Subcontractor Vehicle",
    "properties": null,
    "readonlyFields": {
      "subcontractorName": false,
      "email": false,
      "vehicleExternalId": false,
      "vehicleId": false,
      "vehicleName": false,
      "externalId": false,
      "properties": false
    }
  }'

Responses

Successful operation

Bodyapplication/json
subcontractorNamestringrequired

Subcontractor name

Example: "John"
disabledbooleanrequired
Example: false
carrierIdstring

Carrier id of the subcontractor

Example: "C001"
carrierNamestring

Carrier name of the subcontractor

Example: "Nice Subcontractor"
customerIdstring

Customer id of the subcontractor

Example: "C001"
emailstring
Example: "my@subcontractor.com"
externalIdstring
Example: "Human searchable external id"
subcontractorIdstring
Example: "C001"
vehicleExternalIdstring

External id of the subcontractor vehicle when dispatching

Example: "EXT001"
vehicleIdstring

Id of the subcontractor vehicle when dispatching

Example: "V001"
vehicleNamestring

Name of the subcontractor vehicle when dispatching

Example: "Nice Subcontractor Vehicle"
propertiesobject or null(CustomProperties)
readonlyFieldsobject

Specifies which field should not be touched by the user

idstring
Example: "D001"
Response
application/json
{ "subcontractorName": "John", "disabled": false, "carrierId": "C001", "carrierName": "Nice Subcontractor", "customerId": "C001", "email": "my@subcontractor.com", "externalId": "Human searchable external id", "subcontractorId": "C001", "vehicleExternalId": "EXT001", "vehicleId": "V001", "vehicleName": "Nice Subcontractor Vehicle", "properties": null, "readonlyFields": { "subcontractorName": false, "email": false, "vehicleExternalId": false, "vehicleId": false, "vehicleName": false, "externalId": false, "properties": false }, "id": "D001" }

Tractor Unit

Tractor units information

Operations
Operations
Operations
Operations

Vehicle Execution Statements

Unit of execution for trucks

OperationsWebhooks
Webhooks