M2X APIs
- Get bookings list
M2X APIS (1.0.0)
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/carrierBookings
- https://developer.m2x.app/apis/v0/carrierBookings
- NZ Production server (uses live data)https://m2x.app/apis/v0/carrierBookings
- US Production server (uses live data)https://us.m2x.app/apis/v0/carrierBookings
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/carrierBookings
- Sandbox serverhttps://staging.m2x.app/apis/v0/carrierBookings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/carrierBookings?requestedDay=2019-08-24&requestedWeek=string&requestedWeekStartingSunday=string&requestedMonth=string&selectPickup=false' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
Indicates whether the booking has been unallocated from the carrier. Note: This field does not reflect whether the booking itself has been canceled within the enterprise system. It only represents that the carrier is no longer assigned to the booking
Whether upon acceptance the carrier shall get a payment or not (e.g. freight forward)
The sub components of the product if present
The sub components of the product if present
The relevant master booking information for this booking
Status of the Exception Flag Resolution action
Status of the Exception Flag Resolution action
[ { "agent": { … }, "id": "string", "externalReference": "string", "externalNote": "string", "canceled": true, "completed": true, "acknowledged": true, "tentative": true, "status": "string", "slaQuality": 0, "slaStatus": "string", "awardCreated": "2019-08-24T14:15:22Z", "requestCreated": "2019-08-24T14:15:22Z", "updated": "2019-08-24T14:15:22Z", "latestDeliveryTimestamp": "2019-08-24T14:15:22Z", "earliestPickupTimestamp": "2019-08-24T14:15:22Z", "fulfilments": [ … ], "acceptanceState": { … }, "noPayment": false, "noPrice": false, "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, "metadata": null, "content": {}, "quantity": 0, "productSpatialRequirement": null, "productMassKg": null, "productNetWeightKg": null, "productTareWeightKg": null, "distanceKm": 0, "sourceId": "string", "groupPricingStrategyGroupId": null, "priceTransport": null, "priceFaf": null, "offerStatus": "None", "priceFafOffer": null, "priceTransportOffer": null, "fromLocation": { … }, "fromLocationDistrict": "string", "fromLocationDistrictId": "string", "fromLocationRegion": "string", "fromDateAndTimeConstraint": { … }, "fromTimeWindows": [ … ], "fromLocationGroup": { … }, "fromContactDetails": { … }, "toLocation": { … }, "toLocationDistrict": "string", "toLocationDistrictId": "string", "toLocationRegion": "string", "toDateAndTimeConstraint": { … }, "toTimeWindows": [ … ], "toLocationGroup": { … }, "toContactDetails": { … }, "masterBooking": { … }, "exceptionFlagState": {} } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/carrierBookings/{bookingId}
- https://developer.m2x.app/apis/v0/carrierBookings/{bookingId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/carrierBookings/{bookingId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/carrierBookings/{bookingId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/carrierBookings/{bookingId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/carrierBookings/{bookingId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/carrierBookings/{bookingId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
Indicates whether the booking has been unallocated from the carrier. Note: This field does not reflect whether the booking itself has been canceled within the enterprise system. It only represents that the carrier is no longer assigned to the booking
Whether upon acceptance the carrier shall get a payment or not (e.g. freight forward)
The sub components of the product if present
The sub components of the product if present
The relevant master booking information for this booking
{ "agent": { "email": "string", "uid": "string", "phone": "string", "name": "string", "externalId": "string" }, "id": "string", "externalReference": "string", "externalNote": "string", "canceled": true, "completed": true, "acknowledged": true, "tentative": true, "status": "string", "slaQuality": 0, "slaStatus": "string", "awardCreated": "2019-08-24T14:15:22Z", "requestCreated": "2019-08-24T14:15:22Z", "updated": "2019-08-24T14:15:22Z", "latestDeliveryTimestamp": "2019-08-24T14:15:22Z", "earliestPickupTimestamp": "2019-08-24T14:15:22Z", "fulfilments": [ { … } ], "acceptanceState": { "acceptanceDeadline": "2019-08-24T14:15:22Z", "actioned": "2019-08-24T14:15:22Z", "accepted": true, "acceptable": true, "declined": true, "declinable": true, "retractable": true }, "noPayment": false, "noPrice": false, "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, "metadata": null, "content": {}, "quantity": 0, "productSpatialRequirement": null, "productMassKg": null, "productNetWeightKg": null, "productTareWeightKg": null, "distanceKm": 0, "sourceId": "string", "groupPricingStrategyGroupId": null, "priceTransport": null, "priceFaf": null, "offerStatus": "None", "priceFafOffer": null, "priceTransportOffer": null, "fromLocation": { "addressText": "string", "latitude": 0, "longitude": 0, "locationName": "string", "locationId": "string", "locationOwnerId": "string", "locationVersion": "string", "externalId": "string", "timezone": "Pacific/Auckland", "properties": null }, "fromLocationDistrict": "string", "fromLocationDistrictId": "string", "fromLocationRegion": "string", "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 }, "toLocationDistrict": "string", "toLocationDistrictId": "string", "toLocationRegion": "string", "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" }, "masterBooking": { "masterBookingId": "string", "type": "string", "shipmentId": "string", "transportMode": "string", "properties": null, "metadata": null, "containerNumber": "string", "containerSealNumber": "string", "shippingBookingReference": "string", "customerOrderNumber": "string", "salesOrderNumber": "string", "purchaseOrderNumber": "string", "shippingTemperature": 0, "specialInstructions": "string", "releaseNumber": "string", "feederVessel": "string", "feederVoyageNumber": "string", "oceanVessel": "string", "oceanVoyageNumber": "string", "shippingCarrier": "string", "dangerousGoods": true, "unNumber": "string", "activeRefrigeration": true, "ambientTimeHours": 0, "powerOffDateTime": "string", "vesselArrivalDateTime": "string", "vesselDepartureDateTime": "string", "packDate": "2019-08-24", "availableDate": "2019-08-24", "portEarliestReceivalDateTime": "2019-08-24T14:15:22Z", "movementSequence": 0, "movementType": "string", "movementTotal": 0, "customerName": "string", "productType": "Bulk", "emptyReleaseNumber": "string", "shipCutOffDateTime": "2019-08-24T14:15:22Z", "commodityCode": "string", "commodityDescription": "string", "connectedMovements": { … } }, "exceptionFlagState": {} }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/carrierBookings/{bookingId}/acceptance
- https://developer.m2x.app/apis/v0/carrierBookings/{bookingId}/acceptance
- NZ Production server (uses live data)https://m2x.app/apis/v0/carrierBookings/{bookingId}/acceptance
- US Production server (uses live data)https://us.m2x.app/apis/v0/carrierBookings/{bookingId}/acceptance
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/carrierBookings/{bookingId}/acceptance
- Sandbox serverhttps://staging.m2x.app/apis/v0/carrierBookings/{bookingId}/acceptance
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/carrierBookings/{bookingId}/acceptance' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"acceptance": false
}'{ "success": true }