curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/transports \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/transports"
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', 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",
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"
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")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/transports")
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>",
"transport_id": "<string>",
"status": "scheduled",
"cancelled": true,
"created_at": "<string>",
"pickup": {
"address": "<string>",
"date": "<string>"
},
"delivery": {
"address": "<string>",
"date": "<string>"
},
"vehicle": {
"registration": "<string>",
"type": "<string>"
},
"price": {
"currency": "EUR",
"amount_ht": 123
},
"has_return": true
}
],
"next_cursor": "<string>"
}{
"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": "Too Many Requests",
"status": 429,
"detail": "Rate limit (key) exceeded."
}{
"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"
}Lister les missions du groupe
curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/transports \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/transports"
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', 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",
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"
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")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/transports")
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>",
"transport_id": "<string>",
"status": "scheduled",
"cancelled": true,
"created_at": "<string>",
"pickup": {
"address": "<string>",
"date": "<string>"
},
"delivery": {
"address": "<string>",
"date": "<string>"
},
"vehicle": {
"registration": "<string>",
"type": "<string>"
},
"price": {
"currency": "EUR",
"amount_ht": 123
},
"has_return": true
}
],
"next_cursor": "<string>"
}{
"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": "Too Many Requests",
"status": 429,
"detail": "Rate limit (key) exceeded."
}{
"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 requête
Taille de page (défaut 50, max 200).
1 <= x <= 200Curseur opaque renvoyé par next_cursor de la page précédente.
Filtre sur un statut public. cancelled renvoie les missions annulées ;
completed renvoie les missions terminées et exclut les missions
annulées.
Statut public stable d'une mission (ou de sa jambe retour) :
scheduled (planifiée, en attente de convoyeur), assigned (convoyeur
attribué, véhicule pas encore enlevé), in_transit (aller en cours),
in_transit_return (retour en cours), awaiting_documents (en attente des
PV / documents), under_review (documents en validation), completed
(terminée, jamais une mission annulée), incident (anomalie signalée),
cancelled (mission annulée).
scheduled, assigned, in_transit, in_transit_return, awaiting_documents, under_review, completed, incident, cancelled 