SmartGare
API referenceEndpoints

Check whether a coach would be let in

Answers the decision the station entry would take for the coach at the time asked (now when absent): let in or refused, with every reason, the services today that make it eligible and the grants it may run. Assumes a fresh presentation identifies the coach. Records nothing and orders no barrier. **Required permission:** `cycle.coach-cycle:read`

POST/cycle/v1/checkpoints/{id}/entry-check

Answers the decision the station entry would take for the coach at the time asked (now when absent): let in or refused, with every reason, the services today that make it eligible and the grants it may run. Assumes a fresh presentation identifies the coach. Records nothing and orders no barrier.

Required permission: cycle.coach-cycle:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CheckEntryRequest

Response Body

*/*

curl -X POST "https://example.com/cycle/v1/checkpoints/string/entry-check" \  -H "Content-Type: application/json" \  -d '{    "vehicle_id": "string"  }'
{  "admitted": true,  "assessed_at": "2019-08-24T14:15:22Z",  "assumption": "string",  "blocks": [    {      "kind": "string",      "reference": "string",      "since": "2019-08-24T14:15:22Z"    }  ],  "checkpoint_id": "string",  "eligible_grants": [    "string"  ],  "reasons": [    "STATION_CLOSED"  ],  "requested_at": "2019-08-24T14:15:22Z",  "services": [    {      "call_at": "2019-08-24T14:15:22Z",      "closed": true,      "departure_id": "string",      "grant_id": "string",      "kind": "string",      "line_id": "string",      "tie": "TIMETABLE"    }  ],  "station_date": "2019-08-24",  "station_opening": "string",  "unavailable": [    "string"  ],  "vehicle_id": "string"}