SmartGare
API referenceEndpoints

Issue a transport authorization's driver fallback code

Draws the code the driver types at the gate when the plate is read but the RFID tag is not (RG-111, RG-303) — digits of the station's length — and replaces any previous one. **The code is in this answer and nowhere else**: only a one-way copy is kept, so it cannot be read back, and an operator who loses it issues another. The history keeps who, when and why, never the code. **Required permission:** `referential.authorization:write`

POST/referential/v1/authorizations/{id}/driver-code

Draws the code the driver types at the gate when the plate is read but the RFID tag is not (RG-111, RG-303) — digits of the station's length — and replaces any previous one. The code is in this answer and nowhere else: only a one-way copy is kept, so it cannot be read back, and an operator who loses it issues another. The history keeps who, when and why, never the code.

Required permission: referential.authorization:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*IssueTransportAuthorizationDriverCodeRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/authorizations/string/driver-code" \  -H "Content-Type: application/json" \  -d '{    "reason": "string"  }'
{  "driver_code": "string",  "issued_at": "2019-08-24T14:15:22Z"}