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/fulfilmentRequests
- https://developer.m2x.app/apis/v0/fulfilmentRequests
- NZ Production server (uses live data)https://m2x.app/apis/v0/fulfilmentRequests
- US Production server (uses live data)https://us.m2x.app/apis/v0/fulfilmentRequests
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/fulfilmentRequests
- Sandbox serverhttps://staging.m2x.app/apis/v0/fulfilmentRequests
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.m2x.app/_mock/apis/publicapi/openapi/fulfilmentRequests \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"fulfilmentRequest": {
"externalReference": "string",
"externalNote": "string",
"internalNote": "string",
"backOrder": true,
"urgent": true,
"labels": [
"string"
],
"noPayment": false,
"noPrice": false,
"requestedQuantity": 0,
"massKgPerUnit": 0,
"spatialRequirementPerUnit": 0,
"fromDateAndTimeConstraint": {
"date": "2019-08-24",
"timezone": "Pacific/Auckland",
"timeConstraint": {}
},
"fromTimeWindows": [
{
"start": 0,
"end": 0
}
],
"fromContactDetails": {
"email": "string",
"phone": "string",
"name": "string"
},
"toContactDetails": {
"email": "string",
"phone": "string",
"name": "string"
},
"toDateAndTimeConstraint": {
"date": "2019-08-24",
"timezone": "Pacific/Auckland",
"timeConstraint": {}
},
"toTimeWindows": [
{
"start": 0,
"end": 0
}
],
"properties": null,
"metadata": null
},
"mappingRequests": {
"carrier": {
"carrierExternalId": "string"
},
"content": null,
"product": {
"productCode": null,
"productCodeExternalId": null,
"productDescription": null
},
"fromLocation": {
"locationId": null,
"addressText": null,
"locationExternalId": null,
"locationName": null,
"latitude": 0,
"longitude": 0,
"saveIfUnknown": false,
"locationNameResolutionEnabled": false,
"useDefaultParentGroup": false,
"parentGroupExternalId": null,
"parentGroupName": null,
"saveGroupIfUnknown": false
},
"fromLocationGroup": {
"groupId": null,
"externalId": null,
"usePrimaryLocation": false,
"subLocationExternalId": null
},
"toLocation": {
"locationId": null,
"addressText": null,
"locationExternalId": null,
"locationName": null,
"latitude": 0,
"longitude": 0,
"saveIfUnknown": false,
"locationNameResolutionEnabled": false,
"useDefaultParentGroup": false,
"parentGroupExternalId": null,
"parentGroupName": null,
"saveGroupIfUnknown": false
},
"toLocationGroup": {
"groupId": null,
"externalId": null,
"usePrimaryLocation": false,
"subLocationExternalId": null
}
}
}'Response
application/json
{ "success": true }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/fulfilmentRequests/{fulfilmentRequestId}
- https://developer.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/fulfilmentRequests/{fulfilmentRequestId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "string", "externalReference": "string", "externalNote": "string", "internalNote": "string", "remainerCanceled": true, "labels": [ "string" ], "noPayment": false, "noPrice": false, "carrierId": "string", "carrierExternalId": "string", "carrierName": "string", "corporateId": "string", "corporateName": "string", "backOrder": true, "urgent": true, "updated": "2019-08-24T14:15:22Z", "requestedQuantity": 0, "quantity": 0, "productSpatialRequirement": null, "productSpatialRequirementPerUnit": null, "productMassKg": null, "productMassKgPerUnit": null, "transportRequirementsId": "string", "productCode": null, "productCodeName": null, "productCodeExternalId": null, "content": null, "properties": null, "metadata": null, "fromLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "locationOwnerId": "string", "locationVersion": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "fromDateAndTimeConstraint": { "date": "2019-08-24", "timezone": "Pacific/Auckland", "timeConstraint": {} }, "fromTimeWindows": [ { … } ], "fromLocationGroup": { "groupId": "string", "code": "C123", "externalId": "asd-asd-asd", "name": "string" }, "fromContactDetails": { "email": "string", "phone": "string", "name": "string" }, "toLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "locationOwnerId": "string", "locationVersion": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "toDateAndTimeConstraint": { "date": "2019-08-24", "timezone": "Pacific/Auckland", "timeConstraint": {} }, "toTimeWindows": [ { … } ], "toLocationGroup": { "groupId": "string", "code": "C123", "externalId": "asd-asd-asd", "name": "string" }, "toContactDetails": { "email": "string", "phone": "string", "name": "string" }, "fulfilments": [ { … } ] }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/fulfilmentRequests/{fulfilmentRequestId}
- https://developer.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/fulfilmentRequests/{fulfilmentRequestId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"fulfilmentRequest": {
"externalReference": "string",
"externalNote": "string",
"internalNote": "string",
"backOrder": true,
"urgent": true,
"labels": [
"string"
],
"noPayment": false,
"noPrice": false,
"requestedQuantity": 0,
"massKgPerUnit": 0,
"spatialRequirementPerUnit": 0,
"fromDateAndTimeConstraint": {
"date": "2019-08-24",
"timezone": "Pacific/Auckland",
"timeConstraint": {}
},
"fromTimeWindows": [
{
"start": 0,
"end": 0
}
],
"fromContactDetails": {
"email": "string",
"phone": "string",
"name": "string"
},
"toContactDetails": {
"email": "string",
"phone": "string",
"name": "string"
},
"toDateAndTimeConstraint": {
"date": "2019-08-24",
"timezone": "Pacific/Auckland",
"timeConstraint": {}
},
"toTimeWindows": [
{
"start": 0,
"end": 0
}
],
"properties": null,
"metadata": null
},
"mappingRequests": {
"carrier": {
"carrierExternalId": "string"
},
"content": null,
"product": {
"productCode": null,
"productCodeExternalId": null,
"productDescription": null
},
"fromLocation": {
"locationId": null,
"addressText": null,
"locationExternalId": null,
"locationName": null,
"latitude": 0,
"longitude": 0,
"saveIfUnknown": false,
"locationNameResolutionEnabled": false,
"useDefaultParentGroup": false,
"parentGroupExternalId": null,
"parentGroupName": null,
"saveGroupIfUnknown": false
},
"fromLocationGroup": {
"groupId": null,
"externalId": null,
"usePrimaryLocation": false,
"subLocationExternalId": null
},
"toLocation": {
"locationId": null,
"addressText": null,
"locationExternalId": null,
"locationName": null,
"latitude": 0,
"longitude": 0,
"saveIfUnknown": false,
"locationNameResolutionEnabled": false,
"useDefaultParentGroup": false,
"parentGroupExternalId": null,
"parentGroupName": null,
"saveGroupIfUnknown": false
},
"toLocationGroup": {
"groupId": null,
"externalId": null,
"usePrimaryLocation": false,
"subLocationExternalId": null
}
}
}'Response
application/json
{ "success": true }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/fulfilmentRequests/{fulfilmentRequestId}/siteFulfilments
- https://developer.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}/siteFulfilments
- NZ Production server (uses live data)https://m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}/siteFulfilments
- US Production server (uses live data)https://us.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}/siteFulfilments
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}/siteFulfilments
- Sandbox serverhttps://staging.m2x.app/apis/v0/fulfilmentRequests/{fulfilmentRequestId}/siteFulfilments
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/fulfilmentRequests/{fulfilmentRequestId}/siteFulfilments' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "fulfilmentRequest": { … }, "site": { … }, "status": "string", "updated": "2019-08-24T14:15:22Z", "extras": { … }, "assignment": { … } } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Site Fulfilment
- https://developer.m2x.app/apis/v0/Site Fulfilment
- NZ Production server (uses live data)https://m2x.app/apis/v0/Site Fulfilment
- US Production server (uses live data)https://us.m2x.app/apis/v0/Site Fulfilment
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Site Fulfilment
- Sandbox serverhttps://staging.m2x.app/apis/v0/Site Fulfilment
application/json
{ "fulfilmentRequest": { "id": "string", "externalReference": "string", "externalNote": "string", "internalNote": "string", "remainerCanceled": true, "labels": [ … ], "noPayment": false, "noPrice": false, "carrierId": "string", "carrierExternalId": "string", "carrierName": "string", "corporateId": "string", "corporateName": "string", "backOrder": true, "urgent": true, "updated": "2019-08-24T14:15:22Z", "requestedQuantity": 0, "quantity": 0, "productSpatialRequirement": null, "productSpatialRequirementPerUnit": null, "productMassKg": null, "productMassKgPerUnit": null, "transportRequirementsId": "string", "productCode": null, "productCodeName": null, "productCodeExternalId": null, "content": null, "properties": null, "metadata": null, "fromLocation": { … }, "fromDateAndTimeConstraint": { … }, "fromTimeWindows": [ … ], "fromLocationGroup": { … }, "fromContactDetails": { … }, "toLocation": { … }, "toDateAndTimeConstraint": { … }, "toTimeWindows": [ … ], "toLocationGroup": { … }, "toContactDetails": { … }, "bookingId": "string", "acted": false, "done": false, "type": "cancel", "offerStatus": "None", "offerPriceFaf": null, "offerPriceTransport": null, "bookingPriceFaf": null, "bookingPriceTransport": null, "siteStatus": "pending", "siteOnHoldReason": null, "fulfilmentId": "string", "fulfilmentRequestId": "string" }, "site": { "description": "string", "name": "string", "siteId": "string", "locationGroupId": "string", "locationGroupName": "string" }, "status": "string", "updated": "2019-08-24T14:15:22Z", "extras": { "backOrder": true, "urgent": true, "bookingGroup": "string", "labels": [ … ] }, "assignment": { "name": "string", "operatorId": "string", "code": "string" } }
Bodyapplication/jsonrequired
Whether upon acceptance the carrier shall get a payment or not (e.g. freight forward)
Default false
Optional override for the volume per unit
Default null
Optional total weight override for the booking per unit
Default null
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Fulfilment Request
- https://developer.m2x.app/apis/v0/Fulfilment Request
- NZ Production server (uses live data)https://m2x.app/apis/v0/Fulfilment Request
- US Production server (uses live data)https://us.m2x.app/apis/v0/Fulfilment Request
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Fulfilment Request
- Sandbox serverhttps://staging.m2x.app/apis/v0/Fulfilment Request
application/json
{ "id": "string", "externalReference": "string", "externalNote": "string", "internalNote": "string", "remainerCanceled": true, "labels": [ "string" ], "noPayment": false, "noPrice": false, "carrierId": "string", "carrierExternalId": "string", "carrierName": "string", "corporateId": "string", "corporateName": "string", "backOrder": true, "urgent": true, "updated": "2019-08-24T14:15:22Z", "requestedQuantity": 0, "quantity": 0, "productSpatialRequirement": null, "productSpatialRequirementPerUnit": null, "productMassKg": null, "productMassKgPerUnit": null, "transportRequirementsId": "string", "productCode": null, "productCodeName": null, "productCodeExternalId": null, "content": null, "properties": null, "metadata": null, "fromLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "locationOwnerId": "string", "locationVersion": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "fromDateAndTimeConstraint": { "date": "2019-08-24", "timezone": "Pacific/Auckland", "timeConstraint": {} }, "fromTimeWindows": [ { … } ], "fromLocationGroup": { "groupId": "string", "code": "C123", "externalId": "asd-asd-asd", "name": "string" }, "fromContactDetails": { "email": "string", "phone": "string", "name": "string" }, "toLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "locationOwnerId": "string", "locationVersion": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "toDateAndTimeConstraint": { "date": "2019-08-24", "timezone": "Pacific/Auckland", "timeConstraint": {} }, "toTimeWindows": [ { … } ], "toLocationGroup": { "groupId": "string", "code": "C123", "externalId": "asd-asd-asd", "name": "string" }, "toContactDetails": { "email": "string", "phone": "string", "name": "string" }, "fulfilments": [ { … } ] }