SmartGare
API referenceEndpoints

Receive the ministry's authorization file

Keeps each line as a proposal and reports what became of each; nothing enters the register. CSV with a header row: dossier and number required; lineCode, holderCarrierCode, vehiclePlate, serviceType, seriesCode, categoryCodes (';'), validFrom, validUntil, sourceDocument, sourcePage and sourceRow read when present. A line received before is kept once. **Required permission:** `referential.authorization:write`

POST/referential/v1/authorization-proposals/receipts

Keeps each line as a proposal and reports what became of each; nothing enters the register. CSV with a header row: dossier and number required; lineCode, holderCarrierCode, vehiclePlate, serviceType, seriesCode, categoryCodes (';'), validFrom, validUntil, sourceDocument, sourcePage and sourceRow read when present. A line received before is kept once.

Required permission: referential.authorization:write

AuthorizationBearer <token>

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/authorization-proposals/receipts" \  -F file="string"
{  "already_kept": 0,  "kept": 0,  "lines": [    {      "field": "string",      "line": 0,      "outcome": "string",      "proposal_id": "string",      "reason": "string"    }  ],  "unreadable": 0}