- Introduction
- Getting Started
- Authentication
- Error Handling
- Contact Support
- Modaltrans API
- Get Auth Token
- Accounting
- Customs
- Logistics
- Depot
- Fleet Management
- Drivers
- Vehicles
- Gps Service Controller
- Service Logs
- Periodic Documents
- CRM
- Timelines
- S3 Files
- Notifications
- User Details
Retrieve a Vehicle
Developing
Testing Env
https://demo.modaltrans.com
Testing Env
https://demo.modaltrans.com
GET
/api/v1/vehicles/{code}{uuid}
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Path Params
code
string
required
uuid
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://demo.modaltrans.com/api/v1/vehicles/'
Responses
🟢200Success
application/json
Body
code
string
required
name
string
required
model_year
integer
required
uuid
string
required
periodocs
array [object {8}]
required
uuid
string
required
periodoc_type_id
integer
required
doc_no
string
required
doc_date
string <date>
required
start_date
string <date>
required
due_date
string <date>
required
status
string
required
periodoc_type_name
string
required
Example
{
"code": "34AB124",
"name": "34 AB 124 VOLVO FH 42 TB 2007 Çekici Alçak",
"model_year": 2007,
"uuid": "fdda9a56-b689-4a2f-9bf7-5f55bc504637",
"periodocs": [
{
"uuid": "55fc6c03-2db6-48ff-806a-5b1eb5d99f0c",
"periodoc_type_id": 137,
"doc_no": "ESFDDFG",
"doc_date": "2019-12-29",
"start_date": "2019-12-01",
"due_date": "2019-12-31",
"status": "passive",
"periodoc_type_name": "MUAYENE"
}
]
}
🟠400Bad Request
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-08-23 13:37:07