- KEYSTONE API Standard
- Data Schema
- Paths & Endpoints
- Transport Operation
- Create new transport operation dataPOST
- Get all transport operation dataGET
- Get a specific transport operation data by IDGET
- Update data for a specific transport operation by IDPUT
- Delete specific transport operation data by IDDELETE
- Get schedule data related to a specific transport operation by IDGET
- Update schedule data for a specific transport operation by IDPUT
- Get all phase data related to a specific transport operation by IDGET
- Append phase data for a specific transport operation by IDPATCH
- Get specific phase data by transport operation ID and phase IDGET
- Update specific phase data by transport operation ID and phase IDPUT
- Get all international consignment notes related to a specific transport operation by IDGET
- Append international consignment notes data for a specific transport operation by IDPATCH
- Get specific international consignment notes data by transport operation ID and reference codeGET
- Update specific international consignment notes data by transport operation ID and reference codePUT
- Delete specific international consignment notes data by transport operation ID and reference codeDELETE
- Get specific transport operation data by country code and license plate numberGET
- Get details about the schedule of specific transport operation by country code and license plate numberGET
- Get details about all the phases of specific transport operation by country code and license plate numberGET
- Get specific phase data by country code, license plate number, and phase IDGET
- Get all international consignment notes related to a specific transport operation by country code and license plate numberGET
- Get specific international consignment notes data by country code, license plate number, and reference codeGET
- Vehicle
- Create new vehicle data
- Get all vehicle data
- Get vehicle data by country code and license plate number
- Update vehicle data by country code and license plate number
- Delete specific vehicle data by country code and license plate number
- Get details about the geolocation of vehicle by country code and license plate number
- Append new vehicle's geolocation data by country code and license plate number
- Get details about the owner of vehicle by country code and license plate number
- Get details about the insurances of vehicle by country code and license plate number
- Get details about the insurance of vehicle by country code, license plate number and insurance id
- Get details about the revisions of vehicle by country code and license plate number
- Get details about the revision of vehicle by country code, license plate number and revision id
- Driver
- Create new driver data
- Get all driver data
- Get driver data by country code and vat number
- Update driver data by country code and vat number
- Delete specific driver data
- Get details about the driver's license by country code and vat number
- Get details about the driver's traffic violations by country code and vat number
- Get specific driver's traffic violation data by country code, vat number and traffic violation id
- Get details about the driver's tachograph cards data by country code and vat number
- Get specific driver's tachograph card data by country code, vat number and tachograph card id
- Transport Operation
Get specific transport operation data by country code and license plate number
GET
/transport-operations/{countryCode}/{plateNumber}/
Transport Operation
Request
Path Params
countryCode
string
required
plateNumber
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.company-server/v1/transport-operations///'
Responses
🟢200OK
application/json
Body
Details about the transport operation.
id
integer <int64>
required
>= 1
Example:
123456789
operator
object (Organization)
required
name
string
required
>= 1 characters<= 20 characters
Example:
ABC Logistics
countryCode
string
required
Example:
IT
Match pattern:
^[A-Z]{2,4}$
vat
string
optional
>= 2 characters<= 13 characters
Example:
IT1234567890
address
string
optional
>= 1 characters<= 100 characters
Example:
123 Main St, City, Country
schedule
object (Schedule)
required
departureDateTime
string <date-time>
required
Example:
2023-06-25T10:00:00Z
Match pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
realDepartureDateTime
string <date-time>
optional
Example:
2023-06-27T10:30:00Z
Match pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
estimatedDateTimeOfArrival
string <date-time>
required
Example:
2023-06-27T17:00:00Z
Match pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
realArrivalDateTime
string <date-time>
optional
Example:
2023-06-27T17:20:00Z
Match pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
driver
object (Driver)
required
id
integer <int64>
required
>= 1
Example:
123456789
firstName
string
required
>= 1 characters<= 20 characters
Example:
John
lastName
string
required
>= 1 characters<= 20 characters
Example:
Doe
countryCode
string
required
Example:
IT
Match pattern:
^[A-Z]{2,4}$
vat
string
required
>= 2 characters<= 13 characters
Example:
IT0011228901
license
object (License)
required
trafficViolation
array[object (TrafficViolation) {10}]
optional
tachographCard
array[object (TachographCard) {2}]
optional
vehicle
object (Vehicle)
required
id
integer <int64>
required
>= 1
Example:
123456789
countryCode
string
required
Example:
IT
Match pattern:
^[A-Z]{2,4}$
plateNumber
string
required
>= 1 characters<= 20 characters
Example:
AA1232
type
string
optional
>= 1 characters<= 20 characters
Example:
Truck
model
string
optional
>= 1 characters<= 20 characters
Example:
XX Model
geolocation
array[object (Geolocation) {2}]
optional
owner
object (Owner)
required
insurance
array[object (Insurance) {7}]
required
revision
array[object (Revision) {6}]
required
phase
array[object (Phase) {5}]
optional
id
integer <int32>
required
>= 1
Example:
1
location
object (Location)
required
dateTime
string <date-time>
required
Example:
2023-06-25T10:00:00Z
Match pattern:
^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$
state
enum<string>
required
Allowed values:
PLANNINGIN_PROGRESSARRIVED_AT_PICKUPARRIVED_AT_DESTINATIONLOADINGUNLOADINGIN_TRANSITCOMPLETEDDELAYEDCANCELED
Example:
IN_TRANSIT
payload
object (Payload)
optional
Example:
{"additionInformation":"Information XX"}
document
array[object (Document) {8}]
required
referenceCode
string
required
>= 1 characters<= 20 characters
Example:
DOC-123456789
senderOrganization
object (Organization)
required
receiverOrganization
object (Organization)
required
startingPoint
object (Location)
required
endingPoint
object (Location)
required
load
object (Load)
required
report
string <file>
optional
Example:
report.pdf
payload
object (Payload)
optional
Example:
{"additionInformation":"Information XX"}
payload
object (Payload)
optional
Example:
{"additionInformation":"Information XX"}
Example
{
"id": 123456789,
"operator": {
"name": "ABC Logistics",
"countryCode": "IT",
"vat": "IT1234567890",
"address": "123 Main St, City, Country"
},
"schedule": {
"departureDateTime": "2023-06-25T10:00:00Z",
"realDepartureDateTime": "2023-06-27T10:30:00Z",
"estimatedDateTimeOfArrival": "2023-06-27T17:00:00Z",
"realArrivalDateTime": "2023-06-27T17:20:00Z"
},
"driver": {
"id": 123456789,
"firstName": "John",
"lastName": "Doe",
"countryCode": "IT",
"vat": "IT0011228901",
"license": {
"id": "IT1234567890",
"countryCode": "IT",
"category": [
{
"type": "AM",
"description": "Goods Vehicle",
"issueDate": "2020-01-01",
"expiryDate": "2025-12-31",
"status": "VALID",
"code95": "95 (13.02.25)"
}
]
},
"trafficViolation": [
{
"id": 123456789,
"description": "Speeding",
"code": "SV-123",
"countryCode": "IT",
"fine": 150,
"paymentDueDate": "2023-07-15",
"paymentDate": "2023-07-10",
"isPaid": true,
"validityPoints": 1,
"payload": {
"additionInformation": "Information XX"
}
}
],
"tachographCard": [
{
"id": "IT1234567890123456",
"drivingInterval": [
{
"startDateTime": "2023-06-20T08:00:00Z",
"endDateTime": "2023-06-20T18:00:00Z",
"etl": [
{
"type": "Daily driving limit",
"hours": 1,
"minutes": 1,
"seconds": 20
}
]
}
]
}
]
},
"vehicle": {
"id": 123456789,
"countryCode": "IT",
"plateNumber": "AA1232",
"type": "Truck",
"model": "XX Model",
"geolocation": [
{
"dateTime": "2023-06-25T10:00:00Z",
"coordinates": {
"latitude": 34.052235,
"longitude": -118.243683
}
}
],
"owner": {
"id": 123456789,
"name": "Acme Trucking",
"vat": "IT2345678901",
"payload": {
"additionInformation": "Information XX"
}
},
"insurance": [
{
"id": 123456789,
"name": "AB Insurance",
"number": "KST-123456789",
"isInsured": true,
"activationDate": "2023-01-15",
"expirationDate": "2024-01-14",
"payload": {
"additionInformation": "Information XX"
}
}
],
"revision": [
{
"id": 123456789,
"name": "Revision Comp",
"number": "A-2211",
"executionDate": "2023-01-15",
"expirationDate": "2024-01-14",
"payload": {
"additionInformation": "Information XX"
}
}
]
},
"phase": [
{
"id": 1,
"location": {
"id": 123456789,
"description": "Place X",
"mode": "GENERIC",
"coordinates": {
"latitude": 34.052235,
"longitude": -118.243683
}
},
"dateTime": "2023-06-25T10:00:00Z",
"state": "PLANNING",
"payload": {
"additionInformation": "Information XX"
}
}
],
"document": [
{
"referenceCode": "DOC-123456789",
"senderOrganization": {
"name": "ABC Logistics",
"countryCode": "IT",
"vat": "IT1234567890",
"address": "123 Main St, City, Country"
},
"receiverOrganization": {
"name": "ABC Logistics",
"countryCode": "IT",
"vat": "IT1234567890",
"address": "123 Main St, City, Country"
},
"startingPoint": {
"id": 123456789,
"description": "Place X",
"mode": "GENERIC",
"coordinates": {
"latitude": 34.052235,
"longitude": -118.243683
}
},
"endingPoint": {
"id": 123456789,
"description": "Place X",
"mode": "GENERIC",
"coordinates": {
"latitude": 34.052235,
"longitude": -118.243683
}
},
"load": {
"type": "Electronics",
"description": "Laptops, tablets, and smartphones",
"weight": 500,
"umWeight": "kg",
"component": [
{
"type": "Laptop",
"description": "Brand X Laptop",
"width": 30,
"height": 20,
"depth": 5,
"unitary": true,
"um": "cm"
}
]
},
"report": "report.pdf",
"payload": {
"additionInformation": "Information XX"
}
}
],
"payload": {
"additionInformation": "Information XX"
}
}
🟠400Bad Request
🟠404Record Not Found
🔴500Server Error