SmartGare
API referenceEndpoints

Get a coach cycle

Returns one visit by id. **Required permission:** `cycle.coach-cycle:read`

GET/cycle/v1/coach-cycles/{id}

Returns one visit by id.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

*/*

curl -X GET "https://example.com/cycle/v1/coach-cycles/string"
{  "closed_at": "2019-08-24T14:15:22Z",  "current_stage": "ENTRY",  "current_stay": {    "corrections": [      {        "boundary_sequence": 0,        "corrected_at": "2019-08-24T14:15:22Z",        "cycle_id": "string",        "id": "string",        "previous_at": "2019-08-24T14:15:22Z",        "reason": "string",        "recorded_at": "2019-08-24T14:15:22Z",        "recorded_by": "string"      }    ],    "duration": "string",    "entered_at": "2019-08-24T14:15:22Z",    "left_at": "2019-08-24T14:15:22Z",    "stage": "ENTRY",    "timing": {      "limit": "string",      "limit_at": "2019-08-24T14:15:22Z",      "limit_state": "RESOLVED",      "overstay": "string",      "planned_end": {        "at": "2019-08-24T14:15:22Z",        "basis": "ARRIVAL",        "departure_id": "string"      },      "status": "WITHIN_LIMIT",      "vehicle_type": "string"    }  },  "entry_access_point_id": "string",  "id": "string",  "identification": "FULL",  "last_access_point_id": "string",  "last_transition_at": "2019-08-24T14:15:22Z",  "late": {    "departure_id": "string",    "late_by_minutes": 0,    "late_by_seconds": 0,    "reached_at": "2019-08-24T14:15:22Z",    "scheduled_at": "2019-08-24T14:15:22Z"  },  "observed_plate": "string",  "opened_at": "2019-08-24T14:15:22Z",  "opened_by": "string",  "status": "OPEN",  "subject": "CONFIRMED_VEHICLE",  "under_review": true,  "vehicle_id": "string"}