Trailers

List all trailers

get
Authorizations
AuthenticationstringRequired

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/"
Query parameters
pageintegerOptional

A page number within the paginated result set.

textstringOptional

Search by license plate or fleet number

id__instringOptional

Comma separated list of trailer ids

Example: 123,456
has_license_platebooleanOptional

Filter trailers with or without a license plate

tags__instringOptional

Comma separated list of tag ids

Example: 10,20
categorystringOptional

Filter own fleet or dedicated trailers

carrierintegerOptional

Carrier id to filter on

Responses
chevron-right
200

Get successful

application/json
countintegerOptionalExample: 1
nextstring Β· nullableOptional
previousstring Β· nullableOptional
get
/trailers/
200

Get successful

Create a trailer

post

Adds a trailer in the requester's company fleet

Authorizations
AuthenticationstringRequired

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/"
Body
remote_idstringOptional

The ID of the trailer in your system.

Example: tr123type1
fleet_numberstring Β· max: 10Optional

Your 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.

Example: TRUCK120
license_platestring Β· max: 200Optional

License plate number (has to be unique)

Example: WE749RM
used_for_qualimat_transportsbooleanOptional

True 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.

Responses
post
/trailers/
201

Create successful

Delete a trailer

delete
Authorizations
AuthenticationstringRequired

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/"
Path parameters
pknumberRequired
remote_idstringOptional

If you choose to identify an object with its remote_id instead of its pk then

  • replace the pk value with the remote_id value in the URL

  • specify lookup_field=remote_id in the query parameters

Query parameters
lookup_fieldstringOptional

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)

Responses
delete
/trailers/{pk}/
204

Empty body

No content

Read a trailer

get
Authorizations
AuthenticationstringRequired

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/"
Path parameters
pknumberRequired
remote_idstringOptional

If you choose to identify an object with its remote_id instead of its pk then

  • replace the pk value with the remote_id value in the URL

  • specify lookup_field=remote_id in the query parameters

Query parameters
lookup_fieldstringOptional

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)

Responses
chevron-right
200

Get successful

application/json
pknumberOptional

Dashdoc's internal id

Example: 928
originalnumberOptional

Ignore. Dashdoc technical data

carriernumberOptional

Dashdoc's internal id of the carrier owning the trailer

Example: 928
license_platestringOptional

License plate number

Example: WE749RM
fleet_numberstringOptional

Your trailer fleet number

Example: TRAILER120
remote_idstringOptional

The ID of the trailer in your system

Example: tr123type1
createdstring Β· date-timeOptional

Date of creation on our server

Example: 2020-07-30T21:10:06.44551Z
used_for_qualimat_transportsbooleanOptional

True if the trailer can be used for Qualimat transport (only used for visual help and warnings)

technical_control_deadlinestring Β· date-timeOptionalExample: 2020-12-22T15:31:39.26167Z
countrystringOptional

Only the 2-character codification is accepted (ISO 3166-1 alpha-2)

Example: FR
eventsobject[]Optional

Ignore. Dashdoc technical data.

get
/trailers/{pk}/
200

Get successful

Partially update a trailer

patch

Update information for a trailer in the requester's company fleet

Authorizations
AuthenticationstringRequired

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/"
Path parameters
pknumberRequired
remote_idstringOptional

If you choose to identify an object with its remote_id instead of its pk then

  • replace the pk value with the remote_id value in the URL

  • specify lookup_field=remote_id in the query parameters

Query parameters
lookup_fieldstringOptional

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)

Body
remote_idstringOptional

The ID of the trailer in your system.

Example: tr123type1
fleet_numberstring Β· max: 10Optional

Your 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.

Example: TRUCK120
license_platestring Β· max: 200Optional

License plate number

Example: WE749RM
used_for_qualimat_transportsbooleanOptional

True 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.

Responses
chevron-right
200

Get successful

application/json
pknumberOptional

Dashdoc's internal id

Example: 928
originalnumberOptional

Ignore. Dashdoc technical data

carriernumberOptional

Dashdoc's internal id of the carrier owning the trailer

Example: 928
license_platestringOptional

License plate number

Example: WE749RM
fleet_numberstringOptional

Your trailer fleet number

Example: TRAILER120
remote_idstringOptional

The ID of the trailer in your system

Example: tr123type1
createdstring Β· date-timeOptional

Date of creation on our server

Example: 2020-07-30T21:10:06.44551Z
used_for_qualimat_transportsbooleanOptional

True if the trailer can be used for Qualimat transport (only used for visual help and warnings)

technical_control_deadlinestring Β· date-timeOptionalExample: 2020-12-22T15:31:39.26167Z
countrystringOptional

Only the 2-character codification is accepted (ISO 3166-1 alpha-2)

Example: FR
eventsobject[]Optional

Ignore. Dashdoc technical data.

patch
/trailers/{pk}/
200

Get successful

Last updated

Was this helpful?