Trailers
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
A page number within the paginated result set.
Search by license plate or fleet number
Comma separated list of trailer ids
123,456Filter trailers with or without a license plate
Comma separated list of tag ids
10,20Filter own fleet or dedicated trailers
Carrier id to filter on
Get successful
1GET /api/v4/trailers/ HTTP/1.1
Host: api.dashdoc.eu
Authentication: YOUR_API_KEY
Accept: */*
Get successful
{
"count": 1,
"next": "text",
"previous": "text",
"results": [
{
"pk": 928,
"original": 1,
"carrier": 928,
"license_plate": "WE749RM",
"fleet_number": "TRAILER120",
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"used_for_qualimat_transports": true,
"tags": [
{
"pk": 1,
"name": "Urgent",
"color": "#E5291D",
"tag_group_id": 1
}
],
"technical_control_deadline": "2020-12-22T15:31:39.26167Z",
"country": "FR",
"unavailability": [
{
"id": 928,
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"start_date": "2020-07-30T21:10:06.44551Z",
"end_date": "2020-07-30T21:10:06.44551Z",
"unavailability_type": "paid_vacation",
"unavailability_note": "I'm on vacation"
}
],
"events": [
{}
]
}
]
}Adds a trailer in the requester's company fleet
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The ID of the trailer in your system.
tr123type1Your trailer fleet number. It has to be unique among all your trailers. When filled, fleet number will be displayed in the web and mobile app next to license plate number. It can also be used for searches.
TRUCK120License plate number (has to be unique)
WE749RMTrue if the trailer can be used for Qualimat transport. This value is used to add a Qualimat logo next to the trailer in forms, in order to help the user selecting the trailer when creating a transport. The is no control on the value. You can create a Qualimat transport with a trailer that is not flagged for Qualimat. In this case a warning is displayed in the transport detail.
Create successful
Dashdoc's internal id
928Ignore. Dashdoc technical data
Dashdoc's internal id of the carrier owning the trailer
928License plate number
WE749RMYour trailer fleet number
TRAILER120The ID of the trailer in your system
tr123type1Date of creation on our server
2020-07-30T21:10:06.44551ZTrue if the trailer can be used for Qualimat transport (only used for visual help and warnings)
2020-12-22T15:31:39.26167ZOnly the 2-character codification is accepted (ISO 3166-1 alpha-2)
FRIgnore. Dashdoc technical data.
POST /api/v4/trailers/ HTTP/1.1
Host: api.dashdoc.eu
Authentication: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 183
{
"remote_id": "tr123type1",
"fleet_number": "TRUCK120",
"license_plate": "WE749RM",
"used_for_qualimat_transports": true,
"tags": [
{
"pk": 1,
"name": "Urgent",
"color": "#E5291D",
"tag_group_id": 1
}
]
}Create successful
{
"pk": 928,
"original": 1,
"carrier": 928,
"license_plate": "WE749RM",
"fleet_number": "TRAILER120",
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"used_for_qualimat_transports": true,
"tags": [
{
"pk": 1,
"name": "Urgent",
"color": "#E5291D",
"tag_group_id": 1
}
],
"technical_control_deadline": "2020-12-22T15:31:39.26167Z",
"country": "FR",
"unavailability": [
{
"id": 928,
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"start_date": "2020-07-30T21:10:06.44551Z",
"end_date": "2020-07-30T21:10:06.44551Z",
"unavailability_type": "paid_vacation",
"unavailability_note": "I'm on vacation"
}
],
"events": [
{}
]
}Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Dashdoc pk or your remote_id. With a remote_id, you must add lookup_field=remote_id to the query parameters.
{"summary":"Dashdoc pk","value":1234}Used to specify what field is used in the URL to identify the object you're requesting, e.g. with the remote_id (see path parameters)
Get successful
Dashdoc's internal id
928Ignore. Dashdoc technical data
Dashdoc's internal id of the carrier owning the trailer
928License plate number
WE749RMYour trailer fleet number
TRAILER120The ID of the trailer in your system
tr123type1Date of creation on our server
2020-07-30T21:10:06.44551ZTrue if the trailer can be used for Qualimat transport (only used for visual help and warnings)
2020-12-22T15:31:39.26167ZOnly the 2-character codification is accepted (ISO 3166-1 alpha-2)
FRIgnore. Dashdoc technical data.
GET /api/v4/trailers/{pk_or_remote_id}/ HTTP/1.1
Host: api.dashdoc.eu
Authentication: YOUR_API_KEY
Accept: */*
Get successful
{
"pk": 928,
"original": 1,
"carrier": 928,
"license_plate": "WE749RM",
"fleet_number": "TRAILER120",
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"used_for_qualimat_transports": true,
"tags": [
{
"pk": 1,
"name": "Urgent",
"color": "#E5291D",
"tag_group_id": 1
}
],
"technical_control_deadline": "2020-12-22T15:31:39.26167Z",
"country": "FR",
"unavailability": [
{
"id": 928,
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"start_date": "2020-07-30T21:10:06.44551Z",
"end_date": "2020-07-30T21:10:06.44551Z",
"unavailability_type": "paid_vacation",
"unavailability_note": "I'm on vacation"
}
],
"events": [
{}
]
}Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Dashdoc pk or your remote_id. With a remote_id, you must add lookup_field=remote_id to the query parameters.
{"summary":"Dashdoc pk","value":1234}Used to specify what field is used in the URL to identify the object you're requesting, e.g. with the remote_id (see path parameters)
Empty body
No content
DELETE /api/v4/trailers/{pk_or_remote_id}/ HTTP/1.1
Host: api.dashdoc.eu
Authentication: YOUR_API_KEY
Accept: */*
Empty body
No content
Update information for a trailer in the requester's company fleet
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Dashdoc pk or your remote_id. With a remote_id, you must add lookup_field=remote_id to the query parameters.
{"summary":"Dashdoc pk","value":1234}Used to specify what field is used in the URL to identify the object you're requesting, e.g. with the remote_id (see path parameters)
The ID of the trailer in your system.
tr123type1Your trailer fleet number. It has to be unique among all your trailers. When filled, fleet number will be displayed in the web and mobile app next to license plate number. It can also be used for searches.
TRUCK120License plate number
WE749RMTrue if the trailer can be used for Qualimat transport. This value is used to add a Qualimat logo next to the trailer in forms, in order to help the user selecting the trailer when creating a transport. The is no control on the value. You can create a Qualimat transport with a trailer that is not flagged for Qualimat. In this case a warning is displayed in the transport detail.
Get successful
Dashdoc's internal id
928Ignore. Dashdoc technical data
Dashdoc's internal id of the carrier owning the trailer
928License plate number
WE749RMYour trailer fleet number
TRAILER120The ID of the trailer in your system
tr123type1Date of creation on our server
2020-07-30T21:10:06.44551ZTrue if the trailer can be used for Qualimat transport (only used for visual help and warnings)
2020-12-22T15:31:39.26167ZOnly the 2-character codification is accepted (ISO 3166-1 alpha-2)
FRIgnore. Dashdoc technical data.
PATCH /api/v4/trailers/{pk_or_remote_id}/ HTTP/1.1
Host: api.dashdoc.eu
Authentication: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 183
{
"remote_id": "tr123type1",
"fleet_number": "TRUCK120",
"license_plate": "WE749RM",
"used_for_qualimat_transports": true,
"tags": [
{
"pk": 1,
"name": "Urgent",
"color": "#E5291D",
"tag_group_id": 1
}
]
}Get successful
{
"pk": 928,
"original": 1,
"carrier": 928,
"license_plate": "WE749RM",
"fleet_number": "TRAILER120",
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"used_for_qualimat_transports": true,
"tags": [
{
"pk": 1,
"name": "Urgent",
"color": "#E5291D",
"tag_group_id": 1
}
],
"technical_control_deadline": "2020-12-22T15:31:39.26167Z",
"country": "FR",
"unavailability": [
{
"id": 928,
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"start_date": "2020-07-30T21:10:06.44551Z",
"end_date": "2020-07-30T21:10:06.44551Z",
"unavailability_type": "paid_vacation",
"unavailability_note": "I'm on vacation"
}
],
"events": [
{}
]
}A trailer can be marked as unavailable for a given period of time for various reasons. These unavailabilities are marked on the planning or can be accessed by API by fetching the trailer.
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The trailer's primary key
The ID of the unavailability in your system
tr123type1Date of creation on our server
2020-07-30T21:10:06.44551ZStart date of the unavailability
2020-07-30T21:10:06.44551ZEnd date of the unavailability
2020-07-30T21:10:06.44551ZType of unavailability
Notes about the unavailability
I'm on vacationSuccessfully created the unavailability, returns the trailer, which contains the unavailability.
Dashdoc's internal id
928Ignore. Dashdoc technical data
Dashdoc's internal id of the carrier owning the trailer
928License plate number
WE749RMYour trailer fleet number
TRAILER120The ID of the trailer in your system
tr123type1Date of creation on our server
2020-07-30T21:10:06.44551ZTrue if the trailer can be used for Qualimat transport (only used for visual help and warnings)
2020-12-22T15:31:39.26167ZOnly the 2-character codification is accepted (ISO 3166-1 alpha-2)
FRIgnore. Dashdoc technical data.
POST /api/v4/trailers/{pk}/unavailability/ HTTP/1.1
Host: api.dashdoc.eu
Authentication: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 225
{
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"start_date": "2020-07-30T21:10:06.44551Z",
"end_date": "2020-07-30T21:10:06.44551Z",
"unavailability_type": "paid_vacation",
"unavailability_note": "I'm on vacation"
}Successfully created the unavailability, returns the trailer, which contains the unavailability.
{
"pk": 928,
"original": 1,
"carrier": 928,
"license_plate": "WE749RM",
"fleet_number": "TRAILER120",
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"used_for_qualimat_transports": true,
"tags": [
{
"pk": 1,
"name": "Urgent",
"color": "#E5291D",
"tag_group_id": 1
}
],
"technical_control_deadline": "2020-12-22T15:31:39.26167Z",
"country": "FR",
"unavailability": [
{
"id": 928,
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"start_date": "2020-07-30T21:10:06.44551Z",
"end_date": "2020-07-30T21:10:06.44551Z",
"unavailability_type": "paid_vacation",
"unavailability_note": "I'm on vacation"
}
],
"events": [
{}
]
}Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The trailer's primary key
The unavailability's primary key
Empty body
No content
DELETE /api/v4/trailers/{pk}/unavailability/{pk_unavailability}/ HTTP/1.1
Host: api.dashdoc.eu
Authentication: YOUR_API_KEY
Accept: */*
Empty body
No content
Partially update an unavailability for a trailer
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
The trailer's primary key
The unavailability's primary key
The ID of the unavailability in your system
tr123type1Date of creation on our server
2020-07-30T21:10:06.44551ZStart date of the unavailability
2020-07-30T21:10:06.44551ZEnd date of the unavailability
2020-07-30T21:10:06.44551ZType of unavailability
Notes about the unavailability
I'm on vacationSuccessfully updated the unavailability, returns the trailer, which contains the unavailability.
Dashdoc's internal id
928Ignore. Dashdoc technical data
Dashdoc's internal id of the carrier owning the trailer
928License plate number
WE749RMYour trailer fleet number
TRAILER120The ID of the trailer in your system
tr123type1Date of creation on our server
2020-07-30T21:10:06.44551ZTrue if the trailer can be used for Qualimat transport (only used for visual help and warnings)
2020-12-22T15:31:39.26167ZOnly the 2-character codification is accepted (ISO 3166-1 alpha-2)
FRIgnore. Dashdoc technical data.
PATCH /api/v4/trailers/{pk}/unavailability/{pk_unavailability}/ HTTP/1.1
Host: api.dashdoc.eu
Authentication: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 225
{
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"start_date": "2020-07-30T21:10:06.44551Z",
"end_date": "2020-07-30T21:10:06.44551Z",
"unavailability_type": "paid_vacation",
"unavailability_note": "I'm on vacation"
}Successfully updated the unavailability, returns the trailer, which contains the unavailability.
{
"pk": 928,
"original": 1,
"carrier": 928,
"license_plate": "WE749RM",
"fleet_number": "TRAILER120",
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"used_for_qualimat_transports": true,
"tags": [
{
"pk": 1,
"name": "Urgent",
"color": "#E5291D",
"tag_group_id": 1
}
],
"technical_control_deadline": "2020-12-22T15:31:39.26167Z",
"country": "FR",
"unavailability": [
{
"id": 928,
"remote_id": "tr123type1",
"created": "2020-07-30T21:10:06.44551Z",
"start_date": "2020-07-30T21:10:06.44551Z",
"end_date": "2020-07-30T21:10:06.44551Z",
"unavailability_type": "paid_vacation",
"unavailability_note": "I'm on vacation"
}
],
"events": [
{}
]
}Last updated
Was this helpful?