État des livraisons webhook
curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/webhooks/deliveries \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/webhooks/deliveries"
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/webhooks/deliveries', 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/webhooks/deliveries",
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/webhooks/deliveries"
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/webhooks/deliveries")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/webhooks/deliveries")
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>",
"event_id": "<string>",
"endpoint_id": "<string>",
"status": "pending",
"attempts": 123,
"last_status_code": 123,
"last_error": "<string>",
"next_attempt_at": "<string>",
"delivered_at": "<string>",
"created_at": "<string>"
}
],
"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"
}Événements
État des livraisons webhook
GET
/
webhooks
/
deliveries
État des livraisons webhook
curl --request GET \
--url https://sandbox.myexpressdriver.com/v1/webhooks/deliveries \
--header 'X-Api-Key: <api-key>'import requests
url = "https://sandbox.myexpressdriver.com/v1/webhooks/deliveries"
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/webhooks/deliveries', 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/webhooks/deliveries",
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/webhooks/deliveries"
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/webhooks/deliveries")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.myexpressdriver.com/v1/webhooks/deliveries")
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>",
"event_id": "<string>",
"endpoint_id": "<string>",
"status": "pending",
"attempts": 123,
"last_status_code": 123,
"last_error": "<string>",
"next_attempt_at": "<string>",
"delivered_at": "<string>",
"created_at": "<string>"
}
],
"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).
Plage requise:
1 <= x <= 200Curseur opaque renvoyé par next_cursor de la page précédente.
Filtre sur le statut de livraison.
Options disponibles:
pending, delivering, succeeded, failed, dead 