Vérifier une attestation
Cette API sera dépréciée en v3.2 et ne sera pas remplacée.
Path parameters
-
Identifiant de l'attestation précédemment créé.
GET
/certificates/{uuid}
curl \
-X GET https://api.covoiturage.beta.gouv.fr/v3.1/certificates/9415300a-7a51-4296-96d1-68636e46485d
Response examples (200)
{
"type": "ok",
"uuid": "8a9d2da9-39e3-4db7-be8e-12b4d2179fda",
"tz": "Europe/Paris",
"start_at": "2020-01-01T00:00:00+0100",
"end_at": "2020-01-01T00:00:00+0100",
"created_at": "2020-01-01T00:00:00+0100",
"identity": {
"uuid": "string"
},
"operator": {
"_id": 42,
"uuid": "string",
"name": "string"
},
"positions": [
{
"lat": 47.682821,
"lon": -0.557483
}
],
"driver": {
"total": {
"trips": 42,
"week_trips": 42,
"weekend_trips": 42,
"distance": 42.0,
"amount": 42.0
},
"trips": [
{
"type": "driver",
"datetime": "2024-05-04T09:42:00+00:00",
"trips": 42,
"distance": 42.0,
"amount": 42.0
}
]
},
"passenger": {
"total": {
"trips": 42,
"week_trips": 42,
"weekend_trips": 42,
"distance": 42.0,
"amount": 42.0
},
"trips": [
{
"type": "driver",
"datetime": "2024-05-04T09:42:00+00:00",
"trips": 42,
"distance": 42.0,
"amount": 42.0
}
]
}
}
Response examples (401)
{
"id": 1,
"error": {
"code": -32501,
"data": "Unauthorized application",
"message": "Unauthorized Error"
},
"jsonrpc": "2.0"
}
Response examples (403)
{
"id": 1,
"error": {
"code": -32503,
"data": "Invalid permissions",
"message": "Forbidden Error"
},
"jsonrpc": "2.0"
}
Response examples (404)
{
"code": 404,
"error": "Not found"
}