API referenceEndpoints
Put a line under an authorization
Records that the authorization covers the line from a date. Several authorizations may cover one line at once — that is what a rotation is.
POST
/referential/v1/authorizations/authorized-linesRecords that the authorization covers the line from a date. Several authorizations may cover one line at once — that is what a rotation is.
Authorization
oauth2 AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/referential/v1/authorizations/authorized-lines" \ -H "Content-Type: application/json" \ -d '{ "lineId": "string", "transportAuthorizationId": "string", "effectiveFrom": "2019-08-24" }'{ "id": "string"}Assign an authorization to a carrier
Hands the authorization to a carrier from a date. Any holder in place is closed the day before, so the register keeps one answer per date.
Declare a transport authorization
Records one authorization number under a dossier, with its own série, categories and validity. The dossier is created on first use.