Skip to main content
GET
/
vehicle
/
{vehicleId}
Read vehicle by ID
curl --request GET \
  --url https://apiweb.mile.app/api/v3/vehicle/{vehicleId} \
  --header 'Authorization: Bearer <token>'
{
  "status": true,
  "message": "Success",
  "data": {
    "name": "Mini Van 34",
    "assignee": "leandro@mile.app",
    "speed": 30,
    "fixedCost": 15,
    "tags": [
      "Ganjil",
      "Depok",
      "B1124CC"
    ],
    "workingTime": {
      "startTime": "08:00",
      "endTime": "17:00",
      "multiday": 0
    },
    "capacity": {
      "width": {
        "min": 10,
        "max": 1000
      },
      "height": {
        "min": 10,
        "max": 1000
      }
    },
    "organizationId": "621dd813eb3ebf16b94dbde3",
    "hubId": "621dd813eb3ebf16b94d6969",
    "updatedTime": "2022-07-13T03:16:40+00:00",
    "createdTime": "2022-07-13T03:16:40+00:00",
    "_id": "62ce3918d3f3e1681a3a54b2"
  }
}

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

vehicleId
string
required

Unique identifier for the vehicle that generated by system. Example: 62ce3918d3f3e1681a3a54b2

Response

Success

status
boolean

Status of response.

data
object[]

Detail of object vehicle.

message
string

Message of API response.