curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"offer_id": "<string>",
"status": "pending",
"inspection_type": "one_way",
"source": "med",
"vehicle": {
"plate": "<string>",
"brand": "<string>",
"model": "<string>",
"vin": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"completed_at": "<string>",
"pdf": {
"depart": {
"url": "<string>",
"generated_at": "<string>",
"photos_ok": 123,
"photos_total": 123
},
"arrivee": {
"url": "<string>",
"generated_at": "<string>",
"photos_ok": 123,
"photos_total": 123
}
},
"phases": {
"depart": {
"started_at": "<string>",
"completed_at": "<string>",
"location": {
"lat": 123,
"lng": 123,
"accuracy_m": 123,
"address": "<string>"
},
"photos": [
{
"id": "<string>",
"label": "<string>",
"url": "<string>",
"kind": "shot",
"damage_type": "<string>",
"positions": [
{
"x": 123,
"y": 123,
"type": "<string>"
}
]
}
],
"fields": [
{
"id": "<string>",
"label": "<string>",
"type": "text",
"value": "<string>"
}
]
},
"arrivee": {
"started_at": "<string>",
"completed_at": "<string>",
"location": {
"lat": 123,
"lng": 123,
"accuracy_m": 123,
"address": "<string>"
},
"photos": [
{
"id": "<string>",
"label": "<string>",
"url": "<string>",
"kind": "shot",
"damage_type": "<string>",
"positions": [
{
"x": 123,
"y": 123,
"type": "<string>"
}
]
}
],
"fields": [
{
"id": "<string>",
"label": "<string>",
"type": "text",
"value": "<string>"
}
]
}
}
}
}{
"data": null
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid API key."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "Missing required scope: transports:write"
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Transport not found."
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "An internal error occurred. Quote the reference when contacting support.",
"reference": "3b9f6c1e-8a2d-4f5b-9c7e-1d2a3b4c5e6f"
}Rapport d'inspection (PV digitalisé) de la mission
Renvoie le rapport d’inspection (PV digitalisé) lié à la mission : état des
deux phases (depart, arrivee), horodatages, géolocalisation, champs du
formulaire, photos, et liens PDF.
- Les liens PDF (
pdf.depart.url,pdf.arrivee.url) sont des URLs signées fraîches (TTL 24h), re-signées à chaque appel. Ne les mettez pas en cache au-delà de leur durée de vie. - Les photos sont des liens Firebase Storage tokenisés.
completed_at(niveau racine) n’est renseigné que lorsquestatus == completed(dérivé : max descompleted_atde phase).- Si l’inspection n’a pas encore démarré pour cette mission, l’API renvoie
202avecdata: null(la mission existe, le PV n’est pas prêt).
curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/transports/{id}/inspection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "<string>",
"offer_id": "<string>",
"status": "pending",
"inspection_type": "one_way",
"source": "med",
"vehicle": {
"plate": "<string>",
"brand": "<string>",
"model": "<string>",
"vin": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"completed_at": "<string>",
"pdf": {
"depart": {
"url": "<string>",
"generated_at": "<string>",
"photos_ok": 123,
"photos_total": 123
},
"arrivee": {
"url": "<string>",
"generated_at": "<string>",
"photos_ok": 123,
"photos_total": 123
}
},
"phases": {
"depart": {
"started_at": "<string>",
"completed_at": "<string>",
"location": {
"lat": 123,
"lng": 123,
"accuracy_m": 123,
"address": "<string>"
},
"photos": [
{
"id": "<string>",
"label": "<string>",
"url": "<string>",
"kind": "shot",
"damage_type": "<string>",
"positions": [
{
"x": 123,
"y": 123,
"type": "<string>"
}
]
}
],
"fields": [
{
"id": "<string>",
"label": "<string>",
"type": "text",
"value": "<string>"
}
]
},
"arrivee": {
"started_at": "<string>",
"completed_at": "<string>",
"location": {
"lat": 123,
"lng": 123,
"accuracy_m": 123,
"address": "<string>"
},
"photos": [
{
"id": "<string>",
"label": "<string>",
"url": "<string>",
"kind": "shot",
"damage_type": "<string>",
"positions": [
{
"x": 123,
"y": 123,
"type": "<string>"
}
]
}
],
"fields": [
{
"id": "<string>",
"label": "<string>",
"type": "text",
"value": "<string>"
}
]
}
}
}
}{
"data": null
}{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid API key."
}{
"type": "about:blank",
"title": "Forbidden",
"status": 403,
"detail": "Missing required scope: transports:write"
}{
"type": "about:blank",
"title": "Not Found",
"status": 404,
"detail": "Transport not found."
}{
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "An internal error occurred. Quote the reference when contacting support.",
"reference": "3b9f6c1e-8a2d-4f5b-9c7e-1d2a3b4c5e6f"
}Autorisations
Clé API liée à un groupe (med_live_… en production, med_test_… en test).
Fournie en clair une seule fois à la création depuis le profil client.
Paramètres de chemin
Identifiant de la mission (offer_id).
Paramètres de requête
Restreint la réponse à une seule phase.
depart, arrivee Inclure le détail des champs du formulaire (phases.*.fields). Défaut true.
Mettre false pour un payload plus léger (photos + horodatages seuls).
Réponse
Rapport d'inspection.
Rapport d'inspection (PV digitalisé) lié à une mission MED. Allow-list stricte : aucun champ interne (créateur, tenant, métadonnées, jetons de partage) n'est exposé.
Show child attributes
Show child attributes
