Aller au contenu principal

Suivi des envois

Récupérez l'historique de suivi en temps réel pour un colis DPD, incluant tous les événements de statut, horodatages et informations de localisation.

Point de terminaison: GET /api/v1/tracking/{parcelNumber} Authentification: Jeton JWT Bearer requis


Requête

Paramètre de chemin :

ParamètreTypeObligatoireExemple
parcelNumberStringOui05305000123456

Paramètre de requête :

ParamètreTypeObligatoireDescription
localeStringNonLocalise les descriptions — de_CH, en_US, fr_CH, it_CH
# Basique
curl -X GET "https://label-print-shipments.dpd.ch/api/v1/tracking/05305000123456" \
-H "Authorization: Bearer <jwt_token>"

# Avec locale
curl -X GET "https://label-print-shipments.dpd.ch/api/v1/tracking/05305000123456?locale=fr_CH" \
-H "Authorization: Bearer <jwt_token>"

Réponse

200 OK :

{
"shipmentInfo": {
"type": "shipment",
"service": "PSD",
"product": "DPD Classic"
},
"statusInfo": [
{
"name": "ACCEPTED",
"displayName": "Parcel handed to DPD",
"description": "DPD has received your parcel.",
"location": "",
"date": "2025-10-29 14:30:00",
"hasBeenReached": true,
"isCurrent": false
},
{
"name": "AT_SENDING_DEPOT",
"displayName": "In transit",
"description": "The parcel is at the parcel dispatch centre.",
"location": "Bern Hub",
"date": "2025-10-30 08:15:00",
"hasBeenReached": true,
"isCurrent": true
},
{
"name": "DELIVERED",
"displayName": "Parcel delivered",
"description": "Your parcel has been delivered successfully.",
"location": "",
"date": "",
"hasBeenReached": false,
"isCurrent": false
}
]
}

Champs statusInfo

ChampTypeDescription
nameStringIdentifiant du code de statut
displayNameStringLibellé de statut traduit
descriptionStringDescription détaillée traduite
locationStringLieu où l'événement s'est produit
dateStringHorodatage (yyyy-MM-dd HH:mm:ss), vide si pas encore atteint
hasBeenReachedBooleanIndique si ce statut a été atteint
isCurrentBooleanIndique s'il s'agit du statut actuel

Codes de statut

StatutAnglais (en_US)Allemand (de_CH)Français (fr_CH)Italien (it_CH)
ACCEPTEDParcel handed to DPDPaket an DPD übergebenColis reçuPacco ricevuto
AT_SENDING_DEPOTIn transitPaket unterwegsColis en cours d'acheminementPacco in viaggio
ON_THE_ROADAt parcel delivery centreIm PaketzustellzentrumColis au centre de triPacco nel centro consegne pacchi
AT_DELIVERY_DEPOTParcel out for deliveryIn ZustellungColis livréPacco consegnato
DELIVEREDParcel deliveredPaket zugestelltColis livréPacco consegnato

Flux de statut typique

ACCEPTED → AT_SENDING_DEPOT → ON_THE_ROAD → AT_DELIVERY_DEPOT → DELIVERED

Codes de statut HTTP

CodeDescription
200 OKDonnées de suivi retournées
401 UnauthorizedJeton manquant ou invalide
404 Not FoundNuméro de colis introuvable