M2X APIs
M2X APIS (1.0.0)
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups
- https://developer.m2x.app/apis/v0/billingGroups
- NZ Production server (uses live data)https://m2x.app/apis/v0/billingGroups
- US Production server (uses live data)https://us.m2x.app/apis/v0/billingGroups
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/billingGroups
- Sandbox serverhttps://staging.m2x.app/apis/v0/billingGroups
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups?start=2019-08-24&end=2019-08-24&state=Booked&customerId=string&inactive=false' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
A list of vehicle external Ids involved in a billing group execution
A list of vehicle involved in the execution at the tome of the snapshot
A list of subcontractor external Ids involved in a billing group execution
A list of subcontractor Names involved in a billing group execution
A list of subcontractor involved in the execution at the tome of the snapshot
[ { "id": "string", "humanReadableId": "string", "date": "2019-08-24", "priceManual": 0, "priceStorage": 0, "priceProduct": 0, "priceFaf": 0, "priceTransport": 0, "priceTotal": 0, "from": "string", "to": "string", "productDescription": "string", "properties": null, "customerId": "string", "customerName": "string", "customerIntegrationId": "string", "customerExternalId": "string", "inactive": true, "status": "string", "vehicles": [ … ], "vehicleExternalIds": [ … ], "vehicleNames": [ … ], "vehiclesSnapshot": [ … ], "subcontractors": [ … ], "subcontractorExternalIds": [ … ], "subcontractorNames": [ … ], "subcontractorsSnapshot": [ … ], "transport": [ … ], "storage": [ … ], "products": [ … ], "manual": [ … ] } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/bulkStatusUpdate
- https://developer.m2x.app/apis/v0/billingGroups/bulkStatusUpdate
- NZ Production server (uses live data)https://m2x.app/apis/v0/billingGroups/bulkStatusUpdate
- US Production server (uses live data)https://us.m2x.app/apis/v0/billingGroups/bulkStatusUpdate
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/billingGroups/bulkStatusUpdate
- Sandbox serverhttps://staging.m2x.app/apis/v0/billingGroups/bulkStatusUpdate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/bulkStatusUpdate \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '[
{
"billingGroupId": "string",
"deleteStatus": false,
"status": "Booked"
}
]'{ "success": true }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/{billingGroupId}
- https://developer.m2x.app/apis/v0/billingGroups/{billingGroupId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/billingGroups/{billingGroupId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/billingGroups/{billingGroupId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/billingGroups/{billingGroupId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/billingGroups/{billingGroupId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/{billingGroupId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Successful operation
A list of vehicle external Ids involved in a billing group execution
A list of vehicle involved in the execution at the tome of the snapshot
A list of subcontractor external Ids involved in a billing group execution
A list of subcontractor Names involved in a billing group execution
A list of subcontractor involved in the execution at the tome of the snapshot
{ "id": "string", "humanReadableId": "string", "date": "2019-08-24", "priceManual": 0, "priceStorage": 0, "priceProduct": 0, "priceFaf": 0, "priceTransport": 0, "priceTotal": 0, "from": "string", "to": "string", "productDescription": "string", "properties": null, "customerId": "string", "customerName": "string", "customerIntegrationId": "string", "customerExternalId": "string", "inactive": true, "status": "string", "vehicles": [ "string" ], "vehicleExternalIds": [ "string" ], "vehicleNames": [ "string" ], "vehiclesSnapshot": [ { … } ], "subcontractors": [ "string" ], "subcontractorExternalIds": [ "string" ], "subcontractorNames": [ "string" ], "subcontractorsSnapshot": [ { … } ], "transport": [ { … } ], "storage": [ { … } ], "products": [ { … } ], "manual": [ { … } ] }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/{billingGroupId}/status
- https://developer.m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- NZ Production server (uses live data)https://m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- US Production server (uses live data)https://us.m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- Sandbox serverhttps://staging.m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/{billingGroupId}/status' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"status": "Booked"
}'{ "success": true }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/{billingGroupId}/status
- https://developer.m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- NZ Production server (uses live data)https://m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- US Production server (uses live data)https://us.m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- Sandbox serverhttps://staging.m2x.app/apis/v0/billingGroups/{billingGroupId}/status
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/{billingGroupId}/status' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "success": true }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/{billingGroupId}/details
- https://developer.m2x.app/apis/v0/billingGroups/{billingGroupId}/details
- NZ Production server (uses live data)https://m2x.app/apis/v0/billingGroups/{billingGroupId}/details
- US Production server (uses live data)https://us.m2x.app/apis/v0/billingGroups/{billingGroupId}/details
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/billingGroups/{billingGroupId}/details
- Sandbox serverhttps://staging.m2x.app/apis/v0/billingGroups/{billingGroupId}/details
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/billingGroups/{billingGroupId}/details' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "id": "string", "humanReadableId": "string", "branches": [ { … } ], "customerId": "string", "customerName": "string", "customerIntegrationId": "string", "customerExternalId": "string", "crnNumberByCustomerId": {}, "inactive": true, "status": "string", "date": "2019-08-24", "properties": null, "jobs": [ { … } ], "transportRevenues": [ { … } ], "storageRevenues": [ { … } ], "productRevenues": [ { … } ], "manualRevenues": [ { … } ] }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/invoices
- https://developer.m2x.app/apis/v0/invoices
- NZ Production server (uses live data)https://m2x.app/apis/v0/invoices
- US Production server (uses live data)https://us.m2x.app/apis/v0/invoices
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/invoices
- Sandbox serverhttps://staging.m2x.app/apis/v0/invoices
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/invoices?createdSince=2019-08-24&updatedSince=2019-08-24&limit=100&page=0' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'[ { "billingGroupIds": [ … ], "created": "2019-08-24T14:15:22Z", "updated": "2019-08-24T14:15:22Z", "status": "string", "invoicedBy": { … }, "id": "string", "invoiceDate": "string" } ]
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/invoices/{invoiceId}
- https://developer.m2x.app/apis/v0/invoices/{invoiceId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/invoices/{invoiceId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/invoices/{invoiceId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/invoices/{invoiceId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/invoices/{invoiceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/invoices/{invoiceId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "billingGroups": [ { … } ], "created": "2019-08-24T14:15:22Z", "invoicedBy": { "uid": "string", "email": "string", "name": "string" }, "updated": "2019-08-24T14:15:22Z", "status": "string", "id": "string", "invoiceDate": "string" }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/invoicesBillingGroupDetailsSnapshot/{invoiceId}
- https://developer.m2x.app/apis/v0/invoicesBillingGroupDetailsSnapshot/{invoiceId}
- NZ Production server (uses live data)https://m2x.app/apis/v0/invoicesBillingGroupDetailsSnapshot/{invoiceId}
- US Production server (uses live data)https://us.m2x.app/apis/v0/invoicesBillingGroupDetailsSnapshot/{invoiceId}
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/invoicesBillingGroupDetailsSnapshot/{invoiceId}
- Sandbox serverhttps://staging.m2x.app/apis/v0/invoicesBillingGroupDetailsSnapshot/{invoiceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://developer.m2x.app/_mock/apis/publicapi/openapi/invoicesBillingGroupDetailsSnapshot/{invoiceId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "billingGroupDetails": [ { … } ], "created": "2019-08-24T14:15:22Z", "invoicedBy": { "uid": "string", "email": "string", "name": "string" }, "updated": "2019-08-24T14:15:22Z", "status": "string", "id": "string", "invoiceDate": "string" }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Invoice
- https://developer.m2x.app/apis/v0/Invoice
- NZ Production server (uses live data)https://m2x.app/apis/v0/Invoice
- US Production server (uses live data)https://us.m2x.app/apis/v0/Invoice
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Invoice
- Sandbox serverhttps://staging.m2x.app/apis/v0/Invoice
{ "billingGroups": [ { … } ], "created": "2019-08-24T14:15:22Z", "invoicedBy": { "uid": "string", "email": "string", "name": "string" }, "updated": "2019-08-24T14:15:22Z", "status": "string", "id": "string", "invoiceDate": "string" }
- Mock serverhttps://developer.m2x.app/_mock/apis/publicapi/openapi/Billing Group Details
- https://developer.m2x.app/apis/v0/Billing Group Details
- NZ Production server (uses live data)https://m2x.app/apis/v0/Billing Group Details
- US Production server (uses live data)https://us.m2x.app/apis/v0/Billing Group Details
- AUS Production server (uses live data)https://au.m2x.app/apis/v0/Billing Group Details
- Sandbox serverhttps://staging.m2x.app/apis/v0/Billing Group Details
{ "id": "string", "humanReadableId": "string", "branches": [ { … } ], "customerId": "string", "customerName": "string", "customerIntegrationId": "string", "customerExternalId": "string", "crnNumberByCustomerId": {}, "inactive": true, "status": "string", "date": "2019-08-24", "properties": null, "jobs": [ { … } ], "transportRevenues": [ { … } ], "storageRevenues": [ { … } ], "productRevenues": [ { … } ], "manualRevenues": [ { … } ] }