SmartGare
API referenceEndpoints

Declare a transport authorization

Records one authorization number under a dossier, with its own series, categories and validity. Classification codes must come from the service classification catalogs. The dossier is created on first use. The coach it names runs under it from its first day, or from today when it states none. **Required permission:** `referential.authorization:write`

POST/referential/v1/authorizations

Records one authorization number under a dossier, with its own series, categories and validity. Classification codes must come from the service classification catalogs. The dossier is created on first use. The coach it names runs under it from its first day, or from today when it states none.

Required permission: referential.authorization:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*DeclareTransportAuthorizationInput

Response Body

*/*

*/*

*/*

curl -X POST "https://example.com/referential/v1/authorizations" \  -H "Content-Type: application/json" \  -d '{    "dossier": "string",    "number": "string",    "service_type": "string",    "vehicle_id": "string"  }'
{  "id": "string"}