Passa al contenuto principale

ParcelLifeCycleService

Versione: 2.0 · Dicembre 2025

Il ParcelLifeCycleService recupera i dati completi di tracciamento del collo, inclusi gli eventi di scansione, lo stato e le informazioni di consegna.

note

È necessario richiamare prima LoginService per ottenere un authToken, da passare poi nell'header di autenticazione di ogni richiesta.


Prima di inviare una richiesta​

Ottenere un token di autenticazione da LoginService e associarlo alla richiesta di tracciamento.

Login SOAP:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://dpd.com/common/service/types/LoginService/2.1">
<soapenv:Header/>
<soapenv:Body>
<ns:getAuth>
<delisId>String</delisId>
<password>String</password>
<messageLanguage>en_EN</messageLanguage>
</ns:getAuth>
</soapenv:Body>
</soapenv:Envelope>

Login REST:

{
"delisId": "String",
"password": "String",
"messageLanguage": "en_CH"
}

Metodi​

MetodoDescrizione
getTrackingDataRestituisce i dati di tracciamento del collo per un dato numero di etichetta del collo

getTrackingData​

Action: http://dpd.com/common/service/ParcelLifeCycleService/2.0/getTrackingData

Input:

NomeElemento
authentication (header)types_authentication:authentication
parameterstypes:getTrackingData

Output:

NomeElemento
parameterstypes:getTrackingDataResponse

Fault:

NomeElemento
authenticationFaulttypes_authentication:authenticationFault

Esempi​

getTrackingData — SOAP​

POST {baseUrl}/services/ParcelLifeCycleService

Corpo della richiesta:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://dpd.com/common/service/types/Authentication/2.0"
xmlns:ns1="http://dpd.com/common/service/types/ParcelLifeCycleService/2.0">
<soapenv:Header>
<ns:authentication>
<delisId>{your delisId}</delisId>
<authToken>{your authToken}</authToken>
<messageLanguage>de_CH</messageLanguage>
</ns:authentication>
</soapenv:Header>
<soapenv:Body>
<ns1:getTrackingData>
<parcelLabelNumber>06081234567890</parcelLabelNumber>
</ns1:getTrackingData>
</soapenv:Body>
</soapenv:Envelope>

Risposta (successo):

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soap:Body>
<getTrackingDataResponse xmlns="http://dpd.com/common/service/types/ParcelLifeCycleService/2.0">
<trackingresult>
<shipmentInfo>
<serviceDescription>
<label>
<content>DPD service:</content>
<bold>false</bold>
<paragraph>false</paragraph>
</label>
<content>
<content>N/A</content>
<bold>false</bold>
<paragraph>false</paragraph>
</content>
</serviceDescription>
<status>SHIPMENT</status>
<statusHasBeenReached>false</statusHasBeenReached>
<isCurrentStatus>false</isCurrentStatus>
<showContactInfo>false</showContactInfo>
</shipmentInfo>
<statusInfo>
<status>AT_SENDING_DEPOT</status>
<label>
<content>Paket unterwegs</content>
<bold>true</bold>
<paragraph>false</paragraph>
</label>
<description>
<content>
<content>Das Paket befindet sich im Paketversandzentrum.</content>
<bold>false</bold>
<paragraph>false</paragraph>
</content>
</description>
<statusHasBeenReached>true</statusHasBeenReached>
<isCurrentStatus>false</isCurrentStatus>
<showContactInfo>true</showContactInfo>
<location>
<content>Unknown Location (Buchs (CH))</content>
<bold>true</bold>
<paragraph>false</paragraph>
</location>
<date>
<content>28/09/2026, 18:01</content>
<bold>true</bold>
<paragraph>false</paragraph>
</date>
</statusInfo>
<statusInfo>
<status>ON_THE_ROAD</status>
<label>
<content>Paket unterwegs</content>
<bold>true</bold>
<paragraph>false</paragraph>
</label>
<description>
<content>
<content>Das Paket befindet sich auf dem Weg zum Paketzustellzentrum.</content>
<bold>false</bold>
<paragraph>false</paragraph>
</content>
</description>
<statusHasBeenReached>true</statusHasBeenReached>
<isCurrentStatus>false</isCurrentStatus>
<showContactInfo>true</showContactInfo>
<location>
<content>Unknown Location (Möhlin (CH))</content>
<bold>true</bold>
<paragraph>false</paragraph>
</location>
<date>
<content>29/09/2026, 00:59</content>
<bold>true</bold>
<paragraph>false</paragraph>
</date>
</statusInfo>
<statusInfo>
<status>AT_DELIVERY_DEPOT</status>
<label>
<content>In Zustellung</content>
<bold>true</bold>
<paragraph>false</paragraph>
</label>
<description>
<content>
<content>Das Paket hat das Paketzustellzentrum verlassen und befindet sich auf dem Weg zum Empfänger.</content>
<bold>false</bold>
<paragraph>false</paragraph>
</content>
</description>
<statusHasBeenReached>true</statusHasBeenReached>
<isCurrentStatus>false</isCurrentStatus>
<showContactInfo>true</showContactInfo>
<location>
<content>Unknown Location (Möhlin (CH))</content>
<bold>true</bold>
<paragraph>false</paragraph>
</location>
<date>
<content>29/09/2026, 07:33</content>
<bold>true</bold>
<paragraph>false</paragraph>
</date>
</statusInfo>
<statusInfo>
<status>DELIVERED</status>
<label>
<content>Paket zugestellt</content>
<bold>true</bold>
<paragraph>false</paragraph>
</label>
<description>
<content>
<content>Das Paket wurde erfolgreich zugestellt.</content>
<bold>false</bold>
<paragraph>false</paragraph>
</content>
</description>
<statusHasBeenReached>true</statusHasBeenReached>
<isCurrentStatus>true</isCurrentStatus>
<showContactInfo>true</showContactInfo>
<location>
<content>Unknown Location (Möhlin (CH))</content>
<bold>true</bold>
<paragraph>false</paragraph>
</location>
<date>
<content>29/09/2026, 14:20</content>
<bold>true</bold>
<paragraph>false</paragraph>
</date>
</statusInfo>
</trackingresult>
</getTrackingDataResponse>
</soap:Body>
</soap:Envelope>

getTrackingData — REST​

POST {baseUrl}/services/ParcelLifeCycleService/getTrackingData

{
"authentication": {
"delisId": "{your delisId}",
"authToken": "{your authToken}",
"messageLanguage": "en_CH"
},
"getTrackingData": {
"parcelLabelNumber": "06081234567890"
}
}

Risposta (successo):

{
"getTrackingDataResponse": {
"trackingResult": {
"shipmentInfo": {
"serviceDescription": {
"content": [{ "content": "DPD CLASSIC (option Predict)", "bold": false }]
},
"status": "SHIPMENT"
},
"statusInfo": [
{
"status": "ACCEPTED",
"label": { "content": "Parcel handed to DPD", "bold": true },
"statusHasBeenReached": true,
"isCurrentStatus": false,
"location": null,
"date": null
},
{
"status": "AT_SENDING_DEPOT",
"label": { "content": "In transit", "bold": true },
"statusHasBeenReached": true,
"location": { "content": "Buchs (CH)", "bold": true },
"date": { "content": "22/04/2020, 03:08 Uhr", "bold": true }
},
{
"status": "AT_DELIVERY_DEPOT",
"label": { "content": "Parcel out for delivery", "bold": true },
"statusHasBeenReached": true,
"location": { "content": "Buchs (CH)", "bold": true },
"date": { "content": "24/04/2020, 09:23 Uhr", "bold": true }
},
{
"status": "DELIVERED",
"label": { "content": "Parcel delivered", "bold": true },
"statusHasBeenReached": true,
"isCurrentStatus": true,
"location": { "content": "Buchs (CH)", "bold": true },
"date": { "content": "24/04/2020, 13:49 Uhr", "bold": true }
}
]
}
},
"status": { "type": "OK", "code": "200", "message": "valid" }
}

Tipi complessi​

Namespace: types​

URL: http://dpd.com/common/service/types/ParcelLifeCycleService/2.0

ShipmentInfo​

Contiene le informazioni generali della spedizione.

CampoTipo / OccorrenzaDescrizione
receivertypes:ContentItem / 0..1Destinatario del collo
predictInformationtypes:ContentItem / 0..1Orario di consegna stimato (DPD Predict)
serviceDescriptiontypes:ContentItem / 0..1Nome del prodotto DPD (es. DPD Classic)
additionalServiceElementstypes:ContentItem / 0..1Servizi aggiuntivi
trackingPropertytypes:TrackingProperty / 0..*Proprietà
statusxsd:string / 1..1Uno tra: SHIPMENT, ACCEPTED, AT_SENDING_DEPOT, ON_THE_ROAD, AT_DELIVERY_DEPOT, DELIVERED
labeltypes:ContentLine / 1..1Nome dello stato
descriptiontypes:ContentItem / 1..1Descrizione dello stato
statusHasBeenReachedxsd:boolean / 1..1Se questo stato è stato raggiunto
isCurrentStatusxsd:boolean / 1..1Se questo è lo stato corrente
showContactInfoxsd:boolean / 1..1Se visualizzare le informazioni di contatto
locationtypes:ContentLine / 0..1Luogo dell'ultima scansione
datetypes:ContentLine / 0..1Data e ora dell'ultima scansione
normalItemstypes:ContentItem / 0..*Eventi classificati come NORMAL
importantItemstypes:ContentItem / 0..*Eventi classificati come IMPORTANT
errorItemstypes:ContentItem / 0..*Eventi classificati come ERROR

StatusInfo​

Contiene tutti i dati di scansione di uno stato.

CampoTipo / OccorrenzaDescrizione
statusxsd:string / 1..1Codice dello stato
labeltypes:ContentLine / 1..1Nome dello stato
descriptiontypes:ContentItem / 1..1Descrizione dello stato
statusHasBeenReachedxsd:boolean / 1..1Se lo stato è stato raggiunto
isCurrentStatusxsd:boolean / 1..1Se questo è lo stato corrente
showContactInfoxsd:boolean / 1..1Se visualizzare le informazioni di contatto
locationtypes:ContentLine / 0..1Luogo dell'ultima scansione
datetypes:ContentLine / 0..1Data e ora
normalItemstypes:ContentItem / 0..*Eventi NORMAL
importantItemstypes:ContentItem / 0..*Eventi IMPORTANT
errorItemstypes:ContentItem / 0..*Eventi ERROR

TrackingResult​

CampoTipo / OccorrenzaDescrizione
shipmentInfotypes:ShipmentInfo / 0..1Informazioni generali della spedizione
statusInfotypes:StatusInfo / 0..*Storico degli stati
contactInfotypes:ContentItem / 0..3Informazioni di contatto

getTrackingData​

CampoTipo / OccorrenzaDescrizione
parcelLabelNumberxsd:string / 1..1 · length 14Numero di etichetta del collo

ContentItem​

CampoTipo / OccorrenzaDescrizione
labeltypes:ContentLine / 0..1Identificatore dell'elemento di contenuto
contenttypes:ContentLine / 1..*Righe di contenuto
linkTargetxsd:string / 0..1Se impostato, viene creato un link dall'elemento di contenuto

ContentLine​

CampoTipo / OccorrenzaDescrizione
contentxsd:string / 1..1Contenuto testuale
boldxsd:boolean / 1..1Se visualizzare in grassetto
paragraphxsd:boolean / 1..1Se rendere come paragrafo

Namespace: types_authentication​

URL: http://dpd.com/common/service/types/Authentication/2.0

authentication​

CampoTipo / OccorrenzaDescrizione
delisIdxsd:string / 1..1 · 8–10 caratteriID utente DELIS
authTokenxsd:string / 1..1 · 0–64 caratteriToken da LoginService.getAuth
messageLanguagexsd:string / 1..1 · length 5de_CH, fr_CH, it_CH o en_CH

Codici di stato del collo​

StatoDescrizione
SHIPMENTSpedizione creata
ACCEPTEDCollo consegnato a DPD
AT_SENDING_DEPOTIn transito presso il depot di partenza
ON_THE_ROADIn viaggio verso il depot di consegna
AT_DELIVERY_DEPOTIn consegna
DELIVEREDCollo consegnato

Punti di accesso​

AmbienteProtocolloURL
StageSOAPhttps://shivah-st.dpd.ch/external/soap/services/ParcelLifeCycleService
LiveSOAPhttps://shivah.dpd.ch/external/soap/services/ParcelLifeCycleService
StageRESThttps://shivah-st.dpd.ch/external/rest/services/ParcelLifeCycleService/getTrackingData
LiveRESThttps://shivah.dpd.ch/external/rest/services/ParcelLifeCycleService/getTrackingData