GET /api/truck/{id}

GET /api/truck/{id}

Path parameters

  • id integer(int64) Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • id integer(int64)
    • number string
    • carrier object

      Additional properties are allowed.

      Hide carrier attributes Show carrier attributes object
      • id integer(int64)
      • name string
      • fleet_id string
      • authorized boolean
      • scac string
      • usdot string
      • rfc string
      • email string
      • address string
      • created_by string
      • created_at string(date-time)
      • last_modified_by string
      • last_modified_at string(date-time)
    • fuel_type string

      Values are DIESEL, ELECTRIC, CNG, or HYDROGEN.

    • type string

      Values are PICKUP, BOX, or SEMI.

  • 401

    Not Authorized

  • 403

    Not Allowed

GET /api/truck/{id}
curl \
 --request GET 'https://api-dev.gatego.io/api/truck/{id}'
Response examples (200)
{
  "id": 42,
  "number": "string",
  "carrier": {
    "id": 42,
    "name": "string",
    "fleet_id": "string",
    "authorized": true,
    "scac": "string",
    "usdot": "string",
    "rfc": "string",
    "email": "string",
    "address": "string",
    "created_by": "string",
    "created_at": "2022-03-10T16:15:50Z",
    "last_modified_by": "string",
    "last_modified_at": "2022-03-10T16:15:50Z"
  },
  "fuel_type": "DIESEL",
  "type": "PICKUP"
}