Our full API documentation can be found here for OTMS. It describes our endpoints and the way we accept data.
Events - like actions - model dynamic entities that couple various static entities at a certain moment in time. Events are used for either real-time updates, or updates on earlier provided data. Notice that in both event types these are updates on earlier provided data, whereas actions are usually used together with the entities they dynamically couple.
Goods are the items to be transported as part of a consignment. Goods can be divided into two sub-types of goods, depending on the use case and the level of detail. Goods either consists of items, describing the actual goods to be transported. Or a transport equipment, which is equipment used to carry the actual goods to be transported. Transport equipment is (usually) a means to an end, not something that needs to be transported on itself, such as pallets.
TransportEquipment are the items to be transported as part of a consignment. TransportEquipment can be divided into two sub-types of transportEquipment, depending on the use case and the level of detail. TransportEquipment either consists of items, describing the actual transportEquipment to be transported. Or a transport equipment, which is equipment used to carry the actual transportEquipment to be transported. Transport equipment is (usually) a means to an end, not something that needs to be transported on itself, such as pallets.
Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.
curl -i -X PUT \ https://docs.transportial.com/_mock/apis/widget \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "nonce": "string", "name": "string", "type": "map", "credentials": {}, "apiAccessIntegration": { "nonce": "string", "type": "manual", "name": "string", "description": "string", "schedule": { "integrationSchedulerScheduleValue": 0, "integrationSchedulerScheduleType": "seconds", "milliseconds": 0 }, "dataSources": [ { "nonce": "string", "directionType": "in", "connectionType": "api", "requestMethod": "get", "dataType": "xml", "entityType": "action", "url": "string", "port": 0, "path": "string", "token": "string", "query": "string", "parameters": [ { "sequenceNr": 0, "type": "constant", "regex": "string", "format": "string", "locale": "string", "zoneId": "string", "incomingPath": "string", "outgoingPath": "string", "fields": [ {} ], "filters": [ { "filters": [] } ], "options": [ "identifier" ] } ], "allowedIps": [ "string" ], "hasAuthentication": true, "credentials": { "nonce": "string", "authenticationMethod": "apiKey", "username": "string", "password": "string", "accessKey": "string", "secretKey": "string", "clientId": "string", "clientSecret": "string", "grantType": "string", "scope": "string", "apiKey": "string", "bearer": "string", "sshKey": { "nonce": "string", "url": "string", "path": "string", "name": "string", "originalName": "string", "size": 0, "purpose": "string", "type": "IMAGE", "mimeType": "string", "extension": "string", "uploadedAt": "2019-08-24T14:15:22Z" }, "sshTunnel": true, "sshHost": "string", "sshUsername": "string", "sshPassword": "string", "externalAttributes": { "property1": {}, "property2": {} }, "headers": { "property1": {}, "property2": {} }, "oauthUrl": "string", "oAuthCache": "string", "oAuthCacheCreationDate": "2019-08-24T14:15:22Z", "openIdToken": "string", "openIdRefreshToken": "string", "openIdAccessToken": "string", "openIdExpiration": "2019-08-24T14:15:22Z" }, "otm": true, "fields": [ { "sequenceNr": 0, "type": "constant", "regex": "string", "format": "string", "locale": "string", "zoneId": "string", "incomingPath": "string", "outgoingPath": "string", "fields": [ {} ], "filters": [ { "filters": [] } ], "options": [ "identifier" ] } ], "filters": [ { "selector": "string", "comparisonType": "equal", "value": "string", "linkType": "and", "filters": [ {} ], "sequenceNr": 0 } ], "template": true } ], "enabled": true, "lastHandled": "2019-08-24T14:15:22Z", "integration": [ { "nonce": "string", "author": { "nonce": "string", "hasAgreedToPrice": true, "type": "user", "username": "string", "firstName": "string", "lastName": "string", "email": "string", "phone": "string", "passwordModified": "2019-08-24T14:15:22Z", "twoFactorAuthentication": true, "status": "DELETED", "loginMethod": "DEFAULT", "accountType": "default", "standardLoadingSize": 10, "timezone": "string", "vehicleGroups": [ { "nonce": "string", "name": "string", "vehicles": [ null ] } ] }, "name": "string", "text": "string" } ], "triggerType": "trigger", "triggerEvent": "afterCreatingTrip", "filters": [ { "selector": "string", "comparisonType": "equal", "value": "string", "linkType": "and", "filters": [ {} ], "sequenceNr": 0 } ], "accessKey": "string", "secretKey": "string", "allowedIps": [ "string" ], "permissions": [ { "nonce": "string", "name": "string", "read": true, "write": true, "delete": true, "permissionScope": "PUBLIC", "isObjectPermission": true } ], "maxRequestsPerMinute": 0 }, "hostNames": [ { "nonce": "string", "hostName": "string" } ], "ips": [ { "nonce": "string", "hostName": "string" } ], "styling": "string", "active": true, "code": "string", "data": "string" }'
{ "success": true, "message": "string", "code": 0, "widget": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "type": "map", "credentials": {}, "apiAccessIntegration": { … }, "hostNames": [ … ], "ips": [ … ], "styling": "string", "active": true, "code": "string", "data": "string" } }
curl -i -X POST \ https://docs.transportial.com/_mock/apis/widget \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "nonce": "string", "name": "string", "type": "map", "credentials": {}, "apiAccessIntegration": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "type": "manual", "name": "string", "description": "string", "schedule": { "integrationSchedulerScheduleValue": 0, "integrationSchedulerScheduleType": "seconds", "milliseconds": 0 }, "dataSources": [ { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "directionType": "in", "connectionType": "api", "requestMethod": "get", "dataType": "xml", "entityType": "action", "url": "string", "port": 0, "path": "string", "token": "string", "query": "string", "parameters": [ { "sequenceNr": 0, "type": "constant", "regex": "string", "format": "string", "locale": "string", "zoneId": "string", "incomingPath": "string", "outgoingPath": "string", "fields": [ {} ], "filters": [ { "filters": [] } ], "options": [ "identifier" ] } ], "allowedIps": [ "string" ], "hasAuthentication": true, "credentials": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "authenticationMethod": "apiKey", "username": "string", "password": "string", "accessKey": "string", "secretKey": "string", "clientId": "string", "clientSecret": "string", "grantType": "string", "scope": "string", "apiKey": "string", "bearer": "string", "sshKey": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "url": "string", "path": "string", "name": "string", "originalName": "string", "size": 0, "purpose": "string", "type": "IMAGE", "mimeType": "string", "extension": "string", "uploadedAt": "2019-08-24T14:15:22Z" }, "sshTunnel": true, "sshHost": "string", "sshUsername": "string", "sshPassword": "string", "externalAttributes": { "property1": {}, "property2": {} }, "headers": { "property1": {}, "property2": {} }, "oauthUrl": "string", "oAuthCache": "string", "oAuthCacheCreationDate": "2019-08-24T14:15:22Z", "openIdToken": "string", "openIdRefreshToken": "string", "openIdAccessToken": "string", "openIdExpiration": "2019-08-24T14:15:22Z" }, "otm": true, "fields": [ { "sequenceNr": 0, "type": "constant", "regex": "string", "format": "string", "locale": "string", "zoneId": "string", "incomingPath": "string", "outgoingPath": "string", "fields": [ {} ], "filters": [ { "filters": [] } ], "options": [ "identifier" ] } ], "filters": [ { "selector": "string", "comparisonType": "equal", "value": "string", "linkType": "and", "filters": [ {} ], "sequenceNr": 0 } ], "template": true } ], "enabled": true, "lastHandled": "2019-08-24T14:15:22Z", "notes": [ { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "author": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "type": "user", "username": "string", "avatar": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "url": "string", "path": "string", "name": "string", "originalName": "string", "size": 0, "purpose": "string", "type": "IMAGE", "mimeType": "string", "extension": "string", "uploadedAt": "2019-08-24T14:15:22Z" }, "firstName": "string", "lastName": "string", "email": "string", "phone": "string", "passwordModified": "2019-08-24T14:15:22Z", "twoFactorAuthentication": true, "status": "DELETED", "loginMethod": "DEFAULT", "timezone": "string", "vehicleGroups": [ { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "vehicles": [ null ] } ], "activeAdministration": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "primary": true, "business": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "relationType": "string", "alias": "string", "description": "string", "transportLicenseNumber": "string", "eori": "string", "scacCode": "string", "industry": {}, "website": "string", "coc": "string", "vat": "string", "verified": true, "documents": [ null ], "logo": {}, "banners": [ null ], "locations": [ null ], "identification": [ null ], "contactDetails": [ null ], "contactPersons": [ null ], "administration": {}, "pricingConfigurationCount": 0, "hasAgreedToPrice": true }, "currency": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "short": "string", "sign": "string", "decimalDelimiter": "string", "thousandDelimiter": "string", "enabled": true }, "balance": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "amount": 0.1, "currency": {}, "taxRate": { "identifiers": [] }, "inclusiveOfTax": true }, "numberFormat": "string", "numberLength": 0, "dueDays": 0, "invoiceNumberIndex": { "property1": 0, "property2": 0 }, "quoteNumberIndex": { "property1": 0, "property2": 0 }, "automaticallySendReminders": true, "invoiceTermsAndConditions": "string", "quoteTermsAndConditions": "string", "invoiceNumbering": 0, "quoteNumbering": 0 }, "accountType": "default", "standardLoadingSize": 0 }, "name": "string", "text": "string" } ], "accessKey": "string", "secretKey": "string", "allowedIps": [ "string" ], "permissions": [ { "nonce": "string", "name": "string", "read": true, "write": true, "delete": true, "permissionScope": "PUBLIC", "isObjectPermission": true } ], "maxRequestsPerMinute": 0 }, "hostNames": [ { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "hostName": "string" } ], "ips": [ { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "hostName": "string" } ], "styling": "string", "active": true, "code": "string", "data": "string" }'
{ "success": true, "message": "string", "code": 0, "widget": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "type": "map", "credentials": {}, "apiAccessIntegration": { … }, "hostNames": [ … ], "ips": [ … ], "styling": "string", "active": true, "code": "string", "data": "string" } }
curl -i -X GET \ 'https://docs.transportial.com/_mock/apis/widget/{id}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "success": true, "message": "string", "code": 0, "widget": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "type": "map", "credentials": {}, "apiAccessIntegration": { … }, "hostNames": [ … ], "ips": [ … ], "styling": "string", "active": true, "code": "string", "data": "string" } }
curl -i -X DELETE \ 'https://docs.transportial.com/_mock/apis/widget/{id}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "success": true, "message": "string", "code": 0, "widget": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "type": "map", "credentials": {}, "apiAccessIntegration": { … }, "hostNames": [ … ], "ips": [ … ], "styling": "string", "active": true, "code": "string", "data": "string" } }
curl -i -X GET \ 'https://docs.transportial.com/_mock/apis/widget/public/{id}/{publicKey}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "success": true, "message": "string", "code": 0, "widget": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "type": "map", "credentials": {}, "apiAccessIntegration": { … }, "hostNames": [ … ], "ips": [ … ], "styling": "string", "active": true, "code": "string", "data": "string" } }
curl -i -X GET \ 'https://docs.transportial.com/_mock/apis/widgets/{offset}/{amount}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "success": true, "message": "string", "code": 0, "totalResults": 0, "widgets": [ { … } ] }
curl -i -X POST \ 'https://docs.transportial.com/_mock/apis/widgets/{offset}/{amount}' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>'
{ "success": true, "message": "string", "code": 0, "totalResults": 0, "widgets": [ { … } ] }
Nonce, a field that is not saved and returns exactly the same value you sent. This ensures you can identify your object that has been updated or created.
curl -i -X POST \ 'https://docs.transportial.com/_mock/apis/widget/{id}/submission' \ -H 'Authorization: Bearer <YOUR_JWT_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "nonce": "string", "name": "string", "type": "map", "credentials": {}, "apiAccessIntegration": { "nonce": "string", "type": "manual", "name": "string", "description": "string", "schedule": { "integrationSchedulerScheduleValue": 0, "integrationSchedulerScheduleType": "seconds", "milliseconds": 0 }, "dataSources": [ { "nonce": "string", "directionType": "in", "connectionType": "api", "requestMethod": "get", "dataType": "xml", "entityType": "action", "url": "string", "port": 0, "path": "string", "token": "string", "query": "string", "parameters": [ { "sequenceNr": 0, "type": "constant", "regex": "string", "format": "string", "locale": "string", "zoneId": "string", "incomingPath": "string", "outgoingPath": "string", "fields": [ {} ], "filters": [ { "filters": [] } ], "options": [ "identifier" ] } ], "allowedIps": [ "string" ], "hasAuthentication": true, "credentials": { "nonce": "string", "authenticationMethod": "apiKey", "username": "string", "password": "string", "accessKey": "string", "secretKey": "string", "clientId": "string", "clientSecret": "string", "grantType": "string", "scope": "string", "apiKey": "string", "bearer": "string", "sshKey": { "nonce": "string", "url": "string", "path": "string", "name": "string", "originalName": "string", "size": 0, "purpose": "string", "type": "IMAGE", "mimeType": "string", "extension": "string", "uploadedAt": "2019-08-24T14:15:22Z" }, "sshTunnel": true, "sshHost": "string", "sshUsername": "string", "sshPassword": "string", "externalAttributes": { "property1": {}, "property2": {} }, "headers": { "property1": {}, "property2": {} }, "oauthUrl": "string", "oAuthCache": "string", "oAuthCacheCreationDate": "2019-08-24T14:15:22Z", "openIdToken": "string", "openIdRefreshToken": "string", "openIdAccessToken": "string", "openIdExpiration": "2019-08-24T14:15:22Z" }, "otm": true, "fields": [ { "sequenceNr": 0, "type": "constant", "regex": "string", "format": "string", "locale": "string", "zoneId": "string", "incomingPath": "string", "outgoingPath": "string", "fields": [ {} ], "filters": [ { "filters": [] } ], "options": [ "identifier" ] } ], "filters": [ { "selector": "string", "comparisonType": "equal", "value": "string", "linkType": "and", "filters": [ {} ], "sequenceNr": 0 } ], "template": true } ], "enabled": true, "lastHandled": "2019-08-24T14:15:22Z", "integration": [ { "nonce": "string", "author": { "nonce": "string", "hasAgreedToPrice": true, "type": "user", "username": "string", "firstName": "string", "lastName": "string", "email": "string", "phone": "string", "passwordModified": "2019-08-24T14:15:22Z", "twoFactorAuthentication": true, "status": "DELETED", "loginMethod": "DEFAULT", "accountType": "default", "standardLoadingSize": 10, "timezone": "string", "vehicleGroups": [ { "nonce": "string", "name": "string", "vehicles": [ null ] } ] }, "name": "string", "text": "string" } ], "triggerType": "trigger", "triggerEvent": "afterCreatingTrip", "filters": [ { "selector": "string", "comparisonType": "equal", "value": "string", "linkType": "and", "filters": [ {} ], "sequenceNr": 0 } ], "accessKey": "string", "secretKey": "string", "allowedIps": [ "string" ], "permissions": [ { "nonce": "string", "name": "string", "read": true, "write": true, "delete": true, "permissionScope": "PUBLIC", "isObjectPermission": true } ], "maxRequestsPerMinute": 0 }, "hostNames": [ { "nonce": "string", "hostName": "string" } ], "ips": [ { "nonce": "string", "hostName": "string" } ], "styling": "string", "active": true, "code": "string", "data": "string" }'
{ "success": true, "message": "string", "code": 0, "widget": { "id": "string", "nonce": "string", "uuid": "string", "primaryPlatformId": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "type": "map", "credentials": {}, "apiAccessIntegration": { … }, "hostNames": [ … ], "ips": [ … ], "styling": "string", "active": true, "code": "string", "data": "string" } }