SmartGare
API referenceEndpoints

Check vehicle and line eligibility

One composed answer on the master data alone: every vehicle-side instrument and every candidate authorization covering the line, each assessed with every failed condition named. An unmatched reading is a REFUSED answer, never a 404. **Required permission:** `referential.checkpoint:read`

POST/referential/v1/checkpoints/{id}/eligibility

One composed answer on the master data alone: every vehicle-side instrument and every candidate authorization covering the line, each assessed with every failed condition named. An unmatched reading is a REFUSED answer, never a 404.

Required permission: referential.checkpoint:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CheckVehicleLineEligibilityRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/checkpoints/string/eligibility" \  -H "Content-Type: application/json" \  -d '{    "identifier_type": "string",    "line_id": "string",    "service_date": "2019-08-24",    "value": "string"  }'
{  "assessments": [    {      "checks": [        {          "name": "string",          "passed": true        }      ],      "instrument_id": "string",      "instrument_type": "VEHICLE_IDENTIFIER",      "reference": "string",      "service_categories": [        "string"      ]    }  ],  "grant_id": "string",  "status": "ALLOWED",  "vehicle_id": "string"}