M2X APIs
/
Update/create offers bulk
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/offers
- https://developer.m2x.app/apis/v0/offers
- NZ Production server (uses live data)https://m2x.app/apis/v0/offers
- US Production server (uses live data)https://us.m2x.app/apis/v0/offers
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/offers
- Sandbox serverhttps://staging.m2x.app/apis/v0/offers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/offers?start=2019-08-24T14%3A15%3A22Z&end=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "id": "string", "references": [ … ], "offerVersion": "string", "bookingId": "string", "canceled": true, "carrierId": "string", "carrierExternalId": "string", "carrierName": "string", "corporateId": "string", "corporateName": "string", "corporateSubaccountId": "string", "corporateSubaccountName": "string", "corporateSubaccountIntegrationId": "string", "transportRequirementsId": "string", "productCode": null, "productCodeName": null, "productCodeExternalId": null, "properties": null, "productSpatialRequirement": null, "productMassKg": null, "content": [ … ], "quantity": 0, "noPayment": false, "distanceKm": 0, "sourceId": "string", "priceTransport": null, "priceFaf": null, "priceStrategy": "Deferred", "priceTransportAdjustmentReasons": [ … ], "priceTransportAdjustment": null, "fromLocation": { … }, "fromLocationDistrict": "string", "fromLocationDistrictId": "string", "fromLocationRegion": "string", "toLocation": { … }, "toLocationDistrict": "string", "toLocationDistrictId": "string", "toLocationRegion": "string", "transportTimestamp": "2019-08-24T14:15:22Z", "settled": true, "queried": true, "status": "Delivered" } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/offers
- https://developer.m2x.app/apis/v0/offers
- NZ Production server (uses live data)https://m2x.app/apis/v0/offers
- US Production server (uses live data)https://us.m2x.app/apis/v0/offers
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/offers
- Sandbox serverhttps://staging.m2x.app/apis/v0/offers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.m2x.app/_mock/apis/publicapi/openapi/offers \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"offer": {
"references": [
"string"
],
"offerVersion": "string",
"bookingId": "string",
"carrierId": "string",
"quantity": 0,
"properties": null,
"noPayment": false,
"productSpatialRequirement": null,
"productMassKg": null,
"metadata": null,
"priceTransport": null,
"priceFaf": null,
"fromLocation": {
"addressText": "string",
"latitude": 0,
"longitude": 0,
"locationName": "string",
"locationId": "string",
"externalId": "string",
"timezone": "Pacific/Auckland",
"properties": null
},
"toLocation": {
"addressText": "string",
"latitude": 0,
"longitude": 0,
"locationName": "string",
"locationId": "string",
"externalId": "string",
"timezone": "Pacific/Auckland",
"properties": null
},
"transportTimestamp": "2019-08-24T14:15:22Z"
},
"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
}
},
"cancel": true,
"settled": true
}'Response
application/json
{ "batchId": "XYZ123", "id": "ABC123" }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/offers/{offerId}
- https://developer.m2x.app/apis/v0/offers/{offerId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/offers/{offerId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/offers/{offerId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/offers/{offerId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/offers/{offerId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/offers/{offerId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
[ { "id": "string", "references": [ … ], "offerVersion": "string", "bookingId": "string", "canceled": true, "carrierId": "string", "carrierExternalId": "string", "carrierName": "string", "corporateId": "string", "corporateName": "string", "corporateSubaccountId": "string", "corporateSubaccountName": "string", "corporateSubaccountIntegrationId": "string", "transportRequirementsId": "string", "productCode": null, "productCodeName": null, "productCodeExternalId": null, "properties": null, "productSpatialRequirement": null, "productMassKg": null, "content": [ … ], "quantity": 0, "noPayment": false, "distanceKm": 0, "sourceId": "string", "priceTransport": null, "priceFaf": null, "priceStrategy": "Deferred", "priceTransportAdjustmentReasons": [ … ], "priceTransportAdjustment": null, "fromLocation": { … }, "fromLocationDistrict": "string", "fromLocationDistrictId": "string", "fromLocationRegion": "string", "toLocation": { … }, "toLocationDistrict": "string", "toLocationDistrictId": "string", "toLocationRegion": "string", "transportTimestamp": "2019-08-24T14:15:22Z", "settled": true, "queried": true, "status": "Delivered" } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/offers/{offerId}
- https://developer.m2x.app/apis/v0/offers/{offerId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/offers/{offerId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/offers/{offerId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/offers/{offerId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/offers/{offerId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/offers/{offerId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"offer": {
"references": [
"string"
],
"offerVersion": "string",
"bookingId": "string",
"carrierId": "string",
"quantity": 0,
"properties": null,
"noPayment": false,
"productSpatialRequirement": null,
"productMassKg": null,
"metadata": null,
"priceTransport": null,
"priceFaf": null,
"fromLocation": {
"addressText": "string",
"latitude": 0,
"longitude": 0,
"locationName": "string",
"locationId": "string",
"externalId": "string",
"timezone": "Pacific/Auckland",
"properties": null
},
"toLocation": {
"addressText": "string",
"latitude": 0,
"longitude": 0,
"locationName": "string",
"locationId": "string",
"externalId": "string",
"timezone": "Pacific/Auckland",
"properties": null
},
"transportTimestamp": "2019-08-24T14:15:22Z"
},
"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
}
},
"cancel": true,
"settled": true
}'Response
application/json
{ "batchId": "XYZ123" }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/offers/{offerId}
- https://developer.m2x.app/apis/v0/offers/{offerId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/offers/{offerId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/offers/{offerId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/offers/{offerId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/offers/{offerId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/offers/{offerId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "batchId": "XYZ123" }
Bodyapplication/jsonArray [ ]
Whether upon acceptance the carrier shall get a payment or not (e.g. freight forward)
Default false
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/offers/bulk
- https://developer.m2x.app/apis/v0/offers/bulk
- NZ Production server (uses live data)https://m2x.app/apis/v0/offers/bulk
- US Production server (uses live data)https://us.m2x.app/apis/v0/offers/bulk
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/offers/bulk
- Sandbox serverhttps://staging.m2x.app/apis/v0/offers/bulk
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.m2x.app/_mock/apis/publicapi/openapi/offers/bulk \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"id": "string",
"offer": {
"references": [
"string"
],
"offerVersion": "string",
"bookingId": "string",
"carrierId": "string",
"quantity": 0,
"properties": null,
"noPayment": false,
"productSpatialRequirement": null,
"productMassKg": null,
"metadata": null,
"priceTransport": null,
"priceFaf": null,
"fromLocation": {
"addressText": "string",
"latitude": 0,
"longitude": 0,
"locationName": "string",
"locationId": "string",
"externalId": "string",
"timezone": "Pacific/Auckland",
"properties": null
},
"toLocation": {
"addressText": "string",
"latitude": 0,
"longitude": 0,
"locationName": "string",
"locationId": "string",
"externalId": "string",
"timezone": "Pacific/Auckland",
"properties": null
},
"transportTimestamp": "2019-08-24T14:15:22Z"
},
"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
}
},
"cancel": true,
"settled": true
}
]'Response
application/json
{ "success": true, "batchId": "ABC123" }
Bodyapplication/jsonrequired
Whether upon acceptance the carrier shall get a payment or not (e.g. freight forward)
Default false
The pricing strategy for the offer
Default null
Enum"Deferred""Fixed""Group""Precision""Provided"
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Offer
- https://developer.m2x.app/apis/v0/Offer
- NZ Production server (uses live data)https://m2x.app/apis/v0/Offer
- US Production server (uses live data)https://us.m2x.app/apis/v0/Offer
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Offer
- Sandbox serverhttps://staging.m2x.app/apis/v0/Offer
application/json
{ "id": "string", "references": [ "string" ], "offerVersion": "string", "bookingId": "string", "canceled": true, "carrierId": "string", "carrierExternalId": "string", "carrierName": "string", "corporateId": "string", "corporateName": "string", "corporateSubaccountId": "string", "corporateSubaccountName": "string", "corporateSubaccountIntegrationId": "string", "transportRequirementsId": "string", "productCode": null, "productCodeName": null, "productCodeExternalId": null, "properties": null, "productSpatialRequirement": null, "productMassKg": null, "content": [ null ], "quantity": 0, "noPayment": false, "distanceKm": 0, "sourceId": "string", "priceTransport": null, "priceFaf": null, "priceStrategy": "Deferred", "priceTransportAdjustmentReasons": [ "string" ], "priceTransportAdjustment": null, "fromLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "fromLocationDistrict": "string", "fromLocationDistrictId": "string", "fromLocationRegion": "string", "toLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "toLocationDistrict": "string", "toLocationDistrictId": "string", "toLocationRegion": "string", "transportTimestamp": "2019-08-24T14:15:22Z", "settled": true, "queried": true, "status": "Delivered" }